39template<
class BaseType,
class CoType>
42template<
class BaseType,
class CoType>
53template<
class BaseType,
class CoType>
129 return slot_->conVar();
Base class of all other classes of ABACUS.
Common base class for constraints (Constraint) and variables (Variable).
void addReference()
Indicates that there is a new reference to the pool slot storing this constraint/variable.
void removeReference()
Is the counterpart of the function addReference() and indicates the removal of a reference to this co...
The master of the optimization.
Stores constraints and variables.
Stores a pointer to a pool slot with version number.
BaseType * conVar() const
Returns a pointer to the constraint/variable stored in the referenced slot.
PoolSlotRef(Master *master)
Creates an object referencing no pool slot.
Master * master_
A pointer to the corresponding master of the optimization.
~PoolSlotRef()
The destructor.
const PoolSlotRef< BaseType, CoType > & operator=(const PoolSlotRef< BaseType, CoType > &rhs)
unsigned long version_
The version number of the slot at construction/initialization time of this reference.
PoolSlotRef(const PoolSlotRef< BaseType, CoType > &rhs)
Copy constructor.
void printDifferentVersionError() const
PoolSlot< BaseType, CoType > * slot_
A pointer to the referenced pool slot.
PoolSlot< BaseType, CoType > * slot() const
Returns a pointer to the referenced slot.
PoolSlotRef(PoolSlot< BaseType, CoType > *slot)
Creates an object referencing a pool slot slot.
void slot(PoolSlot< BaseType, CoType > *s)
Initializes the referenced pool slot with s.
unsigned long version() const
Returns the version number of the constraint/variable stored in the referenced slot at construction t...
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
the master of the optimization.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
std::ostream & operator<<(std::ostream &out, const Active< BaseType, CoType > &rhs)