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_; }
unsigned long version_
The version of the constraint in the slot.
unsigned long version() const
Return the version number of the constraint/variable in the slot.
Standard pools without constraint duplication.
The master of the optimization.
BaseType * conVar_
A pointer to the constraint/variable.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
the master of the optimization.
Forms the virtual base class for all possible constraints given in pool format.
Master * master()
Returns a pointer to the corresponding master of the optimization.
int softDelete()
Tries to remove the item from the slot.
BaseType * conVar() const
Returns a pointer to the constraint/variable in the pool slot.
void removeConVarFromPool()
Removes the constraint contained in this slot from its pool.
Master * master_
A pointer to the corresponding master of the optimization.
Pool< BaseType, CoType > * pool_
A pointer to the corresponding pool.
Base class for constraint/variabe pools.
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
Forms the virtual base class for all possible variables given in pool format.
Stores a pointer to a pool slot with version number.
Stores constraints and variables.
const Master * master() const
Returns a const pointer to the corresponding master of the optimization.
void hardDelete()
Deletes the constraint/variable in the slot.