Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::Module Class Reference

Base class for modules. More...

#include <ogdf/basic/Module.h>

+ Inheritance diagram for ogdf::Module:

Public Types

enum class  ReturnType { Feasible , Optimal , NoFeasibleSolution , TimeoutFeasible , TimeoutInfeasible , Error }
 The return type of a module. More...
 

Public Member Functions

 Module ()
 Initializes a module.
 
virtual ~Module ()
 

Static Public Member Functions

static bool isSolution (ReturnType ret)
 Returns true iff ret indicates that the module returned a feasible solution.
 

Detailed Description

Base class for modules.

A module represents an algorithm that implements a certain interface. There are various specific module types present in the OGDF, which all inherit Module as a base class. These module types define the interface implemented by the module.

Definition at line 47 of file Module.h.

Member Enumeration Documentation

◆ ReturnType

The return type of a module.

Enumerator
Feasible 

The solution is feasible.

Optimal 

The solution is optimal.

NoFeasibleSolution 

There exists no feasible solution.

TimeoutFeasible 

The solution is feasible, but there was a timeout.

TimeoutInfeasible 

The solution is not feasible due to a timeout.

Error 

Computation was aborted due to an error.

Definition at line 50 of file Module.h.

Constructor & Destructor Documentation

◆ Module()

ogdf::Module::Module ( )
inline

Initializes a module.

Definition at line 60 of file Module.h.

◆ ~Module()

virtual ogdf::Module::~Module ( )
inlinevirtual

Definition at line 62 of file Module.h.

Member Function Documentation

◆ isSolution()

static bool ogdf::Module::isSolution ( ReturnType  ret)
inlinestatic

Returns true iff ret indicates that the module returned a feasible solution.

Definition at line 65 of file Module.h.


The documentation for this class was generated from the following file: