 |
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
37 #pragma GCC visibility push(default)
42 template<
class BaseType,
class CoType>
class Pool;
43 template<
class BaseType,
class CoType>
class PoolSlotRef;
44 template<
class BaseType,
class CoType>
class StandardPool;
45 template<
class BaseType,
class CoType>
class NonDuplPool;
46 template<
class BaseType,
class CoType>
class CutBuffer;
78 template<
class BaseType,
class CoType>
class PoolSlot :
public AbacusRoot {
81 friend class Pool<BaseType,CoType>;
111 BaseType *convar = 0);
127 void insert(BaseType *convar);
138 if (
conVar_->deletable() ==
false)
155 pool_->removeConVar(
this);
183 #pragma GCC visibility pop
Standard pools without constraint duplication.
Stores a pointer to a pool slot with version number.
BaseType * conVar_
A pointer to the constraint/variable.
PoolSlot(Master *master, Pool< BaseType, CoType > *pool, BaseType *convar=0)
Creates a pool slot and inserts convar.
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.
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.
void insert(BaseType *convar)
Inserts a constraint/variable in the slot and updates the version number.
const PoolSlot< BaseType, CoType > & operator=(const PoolSlot< BaseType, CoType > &rhs)
const Master * master() const
Returns a const pointer to the corresponding master of the optimization.
The master of the optimization.