 |
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
37 #pragma GCC visibility push(default)
40 template<
class BaseType,
class CoType>
43 template<
class BaseType,
class CoType>
44 std::ostream &
operator<< (std::ostream &out,
const PoolSlotRef<BaseType, CoType> &slot);
54 template<
class BaseType,
class CoType>
55 class PoolSlotRef :
public AbacusRoot {
130 return slot_->conVar();
175 #pragma GCC visibility pop
void addReference()
Indicates that there is a new reference to the pool slot storing this constraint/variable.
Stores a pointer to a pool slot with version number.
void removeReference()
Is the counterpart of the function addReference() and indicates the removal of a reference to this co...
PoolSlotRef(PoolSlot< BaseType, CoType > *slot)
Creates an object referencing a pool slot slot.
std::ostream & operator<<(std::ostream &out, const Active< BaseType, CoType > &rhs)
unsigned long version() const
Returns the version number of the constraint/variable stored in the referenced slot at construction t...
~PoolSlotRef()
The destructor.
BaseType * conVar() const
Returns a pointer to the constraint/variable stored in the referenced slot.
PoolSlot< BaseType, CoType > * slot_
A pointer to the referenced pool slot.
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
PoolSlotRef(const PoolSlotRef< BaseType, CoType > &rhs)
Copy constructor.
unsigned long version_
The version number of the slot at construction/initialization time of this reference.
Common base class for constraints (Constraint) and variables (Variable).
const PoolSlotRef< BaseType, CoType > & operator=(const PoolSlotRef< BaseType, CoType > &rhs)
Master * master_
A pointer to the corresponding master of the optimization.
the master of the optimization.
Stores constraints and variables.
void printDifferentVersionError() const
PoolSlot< BaseType, CoType > * slot() const
Returns a pointer to the referenced slot.
The master of the optimization.
PoolSlotRef(Master *master)
Creates an object referencing no pool slot.