|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
41 template<
class BaseType,
class CoType>
class Pool;
42 template<
class BaseType,
class CoType>
class PoolSlotRef;
43 template<
class BaseType,
class CoType>
class StandardPool;
44 template<
class BaseType,
class CoType>
class NonDuplPool;
45 template<
class BaseType,
class CoType>
class CutBuffer;
77 template<
class BaseType,
class CoType>
class OGDF_EXPORT PoolSlot :
public AbacusRoot {
80 friend class Pool<BaseType,CoType>;
110 BaseType *convar = 0);
115 BaseType *
conVar()
const {
return conVar_; }
126 void insert(BaseType *convar);
135 if (conVar_ ==
nullptr)
137 if (conVar_->deletable() ==
false)
154 pool_->removeConVar(
this);
158 unsigned long version()
const {
return version_; }
Standard pools without constraint duplication.
Stores a pointer to a pool slot with version number.
BaseType * conVar_
A pointer to the constraint/variable.
BaseType * conVar() const
Returns a pointer to the constraint/variable in the pool slot.
void hardDelete()
Deletes the constraint/variable in the slot.
Master * master()
Returns a pointer to the corresponding master of the optimization.
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
Base class for constraint/variabe pools.
Pool< BaseType, CoType > * pool_
A pointer to the corresponding pool.
void removeConVarFromPool()
Removes the constraint contained in this slot from its pool.
int softDelete()
Tries to remove the item from the slot.
Forms the virtual base class for all possible variables given in pool format.
Master * master_
A pointer to the corresponding master of the optimization.
the master of the optimization.
unsigned long version() const
Return the version number of the constraint/variable in the slot.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Forms the virtual base class for all possible constraints given in pool format.
Stores constraints and variables.
unsigned long version_
The version of the constraint in the slot.
const Master * master() const
Returns a const pointer to the corresponding master of the optimization.
The master of the optimization.