#include <pool.h>
Inheritance diagram for ABA_POOL< BaseType, CoType >:
Public Types | |
enum | RANKING { NO_RANK, RANK, ABS_RANK } |
Public Member Functions | |
ABA_POOL (ABA_MASTER *master) | |
virtual | ~ABA_POOL () |
The destructor. | |
virtual ABA_POOLSLOT< BaseType, CoType > * | insert (BaseType *cv)=0 |
void | removeConVar (ABA_POOLSLOT< BaseType, CoType > *slot) |
Removes the constraint/variable stored in a pool slot and adds the slot to the list of free slots. | |
int | number () const |
virtual int | separate (double *z, ABA_ACTIVE< CoType, BaseType > *active, ABA_SUB *sub, ABA_CUTBUFFER< BaseType, CoType > *cutBuffer, double minAbsViolation=0.001, int ranking=0)=0 |
Protected Member Functions | |
virtual int | softDeleteConVar (ABA_POOLSLOT< BaseType, CoType > *slot) |
Removes the constraint/variable stored in the pool slot slot from the pool if the constraint/variable can be deleted. | |
virtual void | hardDeleteConVar (ABA_POOLSLOT< BaseType, CoType > *slot) |
Removes a constraint/variable from the pool and adds the slot to the set of free slots. | |
virtual ABA_POOLSLOT< BaseType, CoType > * | getSlot ()=0 |
virtual void | putSlot (ABA_POOLSLOT< BaseType, CoType > *slot)=0 |
Protected Attributes | |
ABA_MASTER * | master_ |
int | number_ |
Definition at line 65 of file pool.h.
enum ABA_POOL::RANKING |
ABA_POOL< BaseType, CoType >::ABA_POOL | ( | ABA_MASTER * | master | ) |
The constructor initializes an empty pool.
master | A pointer to the corresponding master of the optimization. |
virtual ABA_POOL< BaseType, CoType >::~ABA_POOL | ( | ) | [virtual] |
The destructor.
virtual ABA_POOLSLOT<BaseType, CoType>* ABA_POOL< BaseType, CoType >::insert | ( | BaseType * | cv | ) | [pure virtual] |
Implemented in ABA_NONDUPLPOOL< BaseType, CoType >, and ABA_STANDARDPOOL< BaseType, CoType >.
void ABA_POOL< BaseType, CoType >::removeConVar | ( | ABA_POOLSLOT< BaseType, CoType > * | slot | ) |
Removes the constraint/variable stored in a pool slot and adds the slot to the list of free slots.
slot | The pool slot from which the constraint/variable is removed. |
int ABA_POOL< BaseType, CoType >::number | ( | ) | const |
virtual int ABA_POOL< BaseType, CoType >::separate | ( | double * | z, | |
ABA_ACTIVE< CoType, BaseType > * | active, | |||
ABA_SUB * | sub, | |||
ABA_CUTBUFFER< BaseType, CoType > * | cutBuffer, | |||
double | minAbsViolation = 0.001 , |
|||
int | ranking = 0 | |||
) | [pure virtual] |
Implemented in ABA_STANDARDPOOL< BaseType, CoType >.
virtual int ABA_POOL< BaseType, CoType >::softDeleteConVar | ( | ABA_POOLSLOT< BaseType, CoType > * | slot | ) | [protected, virtual] |
Removes the constraint/variable stored in the pool slot slot from the pool if the constraint/variable can be deleted.
If the constraint/variable can be removed the slot is added to the set of free slots.
1 otherwise.
slot | A pointer to the pool slot from wich the constraint/variable should be deleted. |
Reimplemented in ABA_NONDUPLPOOL< BaseType, CoType >.
virtual void ABA_POOL< BaseType, CoType >::hardDeleteConVar | ( | ABA_POOLSLOT< BaseType, CoType > * | slot | ) | [protected, virtual] |
Removes a constraint/variable from the pool and adds the slot to the set of free slots.
slot | A pointer to the pool slot from wich the constraint/variable should be deleted. |
Reimplemented in ABA_NONDUPLPOOL< BaseType, CoType >.
virtual ABA_POOLSLOT<BaseType, CoType>* ABA_POOL< BaseType, CoType >::getSlot | ( | ) | [protected, pure virtual] |
virtual void ABA_POOL< BaseType, CoType >::putSlot | ( | ABA_POOLSLOT< BaseType, CoType > * | slot | ) | [protected, pure virtual] |
Implemented in ABA_STANDARDPOOL< BaseType, CoType >.
ABA_MASTER* ABA_POOL< BaseType, CoType >::master_ [protected] |