#include <poolslot.h>
Inheritance diagram for ABA_POOLSLOT< BaseType, CoType >:
Definition at line 76 of file poolslot.h.
ABA_POOLSLOT< BaseType, CoType >::ABA_POOLSLOT | ( | ABA_MASTER * | master, | |
ABA_POOL< BaseType, CoType > * | pool, | |||
BaseType * | convar = 0 | |||
) |
The constructor sets the version number to 1, if already a constraint is inserted in this slot, otherwise it is set to 0.
master | A pointer to the corresponding master of the optimization. | |
pool | The pool this slot belongs to. | |
conVar | The constraint/variable inserted in this slot if not 0. The default value is 0. |
ABA_POOLSLOT< BaseType, CoType >::~ABA_POOLSLOT | ( | ) |
The destructor for the poolslot must not be called if there are references to its constraint/variable.
ABA_POOLSLOT< BaseType, CoType >::ABA_POOLSLOT | ( | const ABA_POOLSLOT< BaseType, CoType > & | rhs | ) | [private] |
BaseType* ABA_POOLSLOT< BaseType, CoType >::conVar | ( | ) | const |
void ABA_POOLSLOT< BaseType, CoType >::insert | ( | BaseType * | convar | ) | [private] |
Inserts a constraint/variable in the slot, and updates the version number.
If the slot still contains a constraint, the program stops.
The constant ULONG_MAX is defined in the file { limits.h}.
conVar | The constraint/variable that is inserted. |
int ABA_POOLSLOT< BaseType, CoType >::softDelete | ( | ) | [private] |
Tries to remove the item from the slot.
This is possible if the function ABA_CONVAR::deletable() returns true.
1 otherwise.
void ABA_POOLSLOT< BaseType, CoType >::hardDelete | ( | ) | [private] |
Deletes the constraint/variable in the slot.
void ABA_POOLSLOT< BaseType, CoType >::removeConVarFromPool | ( | ) | [private] |
Removes the constraint contained in this ABA_POOLSLOT from its own ABA_POOL.
unsigned long ABA_POOLSLOT< BaseType, CoType >::version | ( | ) | const [private] |
ABA_MASTER* ABA_POOLSLOT< BaseType, CoType >::master | ( | ) | [private] |
const ABA_POOLSLOT<BaseType, CoType>& ABA_POOLSLOT< BaseType, CoType >::operator= | ( | const ABA_POOLSLOT< BaseType, CoType > & | rhs | ) | [private] |
friend class ABA_POOLSLOTREF< BaseType, CoType > [friend] |
Definition at line 77 of file poolslot.h.
friend class ABA_POOL< BaseType, CoType > [friend] |
Definition at line 78 of file poolslot.h.
friend class ABA_STANDARDPOOL< BaseType, CoType > [friend] |
Definition at line 79 of file poolslot.h.
friend class ABA_CUTBUFFER< BaseType, CoType > [friend] |
Definition at line 80 of file poolslot.h.
friend class ABA_SUB [friend] |
Definition at line 82 of file poolslot.h.
friend class ABA_POOLSLOTREF< ABA_CONSTRAINT, ABA_VARIABLE > [friend] |
Definition at line 83 of file poolslot.h.
friend class ABA_POOLSLOTREF< ABA_VARIABLE, ABA_CONSTRAINT > [friend] |
Definition at line 84 of file poolslot.h.
friend class ABA_POOL< ABA_CONSTRAINT, ABA_VARIABLE > [friend] |
Definition at line 85 of file poolslot.h.
friend class ABA_POOL< ABA_VARIABLE, ABA_CONSTRAINT > [friend] |
Definition at line 86 of file poolslot.h.
friend class ABA_STANDARDPOOL< ABA_CONSTRAINT, ABA_VARIABLE > [friend] |
Definition at line 87 of file poolslot.h.
friend class ABA_STANDARDPOOL< ABA_VARIABLE, ABA_CONSTRAINT > [friend] |
Definition at line 88 of file poolslot.h.
friend class ABA_NONDUPLPOOL< ABA_CONSTRAINT, ABA_VARIABLE > [friend] |
Definition at line 89 of file poolslot.h.
friend class ABA_NONDUPLPOOL< ABA_VARIABLE, ABA_CONSTRAINT > [friend] |
Definition at line 90 of file poolslot.h.
friend class ABA_CUTBUFFER< ABA_CONSTRAINT, ABA_VARIABLE > [friend] |
Definition at line 91 of file poolslot.h.
friend class ABA_CUTBUFFER< ABA_VARIABLE, ABA_CONSTRAINT > [friend] |
Definition at line 92 of file poolslot.h.
ABA_MASTER* ABA_POOLSLOT< BaseType, CoType >::master_ [private] |
A pointer to the corresponding master of the optimization.
Definition at line 182 of file poolslot.h.
BaseType* ABA_POOLSLOT< BaseType, CoType >::conVar_ [private] |
A pointer to the constraint/variable.
Definition at line 186 of file poolslot.h.
unsigned long ABA_POOLSLOT< BaseType, CoType >::version_ [private] |
The version of the constraint in the slot.
Definition at line 190 of file poolslot.h.
ABA_POOL<BaseType, CoType>* ABA_POOLSLOT< BaseType, CoType >::pool_ [private] |
A pointer to the corresponding pool.
Definition at line 194 of file poolslot.h.