Open
Graph Drawing
Framework
v. 2023.09 (Elderberry)
Overview
Class Hierarchy
Class Index
Class List
Members
Namespaces
Source Files
numvar.h
Go to the documentation of this file.
1
30
#pragma once
31
32
#include <
ogdf/lib/abacus/variable.h
>
33
34
#pragma GCC visibility push(default)
35
namespace
abacus
{
36
37
39
43
class
OGDF_EXPORT
NumVar
:
public
Variable
{
44
public
:
45
47
64
NumVar
(
Master
*master,
65
const
Sub
*sub,
66
int
number,
67
bool
dynamic,
68
bool
local,
69
double
obj,
70
double
lBound,
71
double
uBound,
72
VarType::TYPE
type
)
73
:
Variable
(master, sub, dynamic, local, obj, lBound, uBound,
type
), number_(number)
74
{ }
75
77
virtual
~NumVar
() { }
78
80
86
friend
std::ostream &
operator<<
(std::ostream &out,
const
NumVar
&rhs) {
87
return
out <<
'('
<< rhs.
number_
<<
')'
<< std::endl;
88
}
89
91
int
number
()
const
{
return
number_; }
92
93
protected
:
94
96
int
number_
;
97
};
98
99
}
100
#pragma GCC visibility pop
abacus::NumVar::number
int number() const
Returns the number of the variable.
Definition:
numvar.h:91
abacus
Definition:
ILPClusterPlanarity.h:50
abacus::NumVar::NumVar
NumVar(Master *master, const Sub *sub, int number, bool dynamic, bool local, double obj, double lBound, double uBound, VarType::TYPE type)
The constructor.
Definition:
numvar.h:64
abacus::NumVar::operator<<
friend std::ostream & operator<<(std::ostream &out, const NumVar &rhs)
Writes the number of the variable to an output stream.
Definition:
numvar.h:86
backward::Color::type
type
Definition:
backward.hpp:1716
abacus::NumVar::~NumVar
virtual ~NumVar()
The destructor.
Definition:
numvar.h:77
abacus::Variable
Forms the virtual base class for all possible variables given in pool format.
Definition:
variable.h:60
variable.h
variable.
abacus::NumVar
Variables identified by a number.
Definition:
numvar.h:43
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition:
config.h:117
abacus::Sub
The subproblem.
Definition:
sub.h:69
abacus::VarType::TYPE
TYPE
The enumeration with the different variable types.
Definition:
vartype.h:48
abacus::NumVar::number_
int number_
The identification number of the variable.
Definition:
numvar.h:96
abacus::Master
The master of the optimization.
Definition:
master.h:70
include
ogdf
lib
abacus
numvar.h
This site is powered by Netlify.
© 1999–2024
The OGDF Team