6.29 ABA_POOL< BaseType, CoType > Class Template Reference

The public enumerations of ABA_POOL.

#include <pool.h>

Inheritance diagram for ABA_POOL< BaseType, CoType >::


PIC


Public Types

Public Member Functions

Protected Member Functions

Protected Attributes

6.29.1 Detailed Description

template<class BaseType, class CoType> class ABA_POOL< BaseType, CoType >

The public enumerations of ABA_POOL.

Definition at line 65 of file pool.h.

6.29.2 Member Enumeration Documentation

6.29.2.1 template<class BaseType, class CoType> enum ABA_POOL::RANKING

Enumerator:

NO_RANK
RANK
ABS_RANK

Definition at line 67 of file pool.h.

6.29.3 Constructor & Destructor Documentation

6.29.3.1 template<class BaseType, class CoType> ABA_POOL< BaseType, CoType >::ABA_POOL (ABA_MASTER * master)

The constructor initializes an empty pool.

Parameters:

master
A pointer to the corresponding master of the optimization.

6.29.3.2 template<class BaseType, class CoType> virtual ABA_POOL< BaseType, CoType >::~ABA_POOL () [virtual]

The destructor.

6.29.4 Member Function Documentation

6.29.4.1 template<class BaseType, class CoType> 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 >.

6.29.4.2 template<class BaseType, class 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.

Parameters:

slot
The pool slot from which the constraint/variable is removed.

6.29.4.3 template<class BaseType, class CoType> int ABA_POOL< BaseType, CoType >::number () const

Returns:

The current number of items in the pool.

6.29.4.4 template<class BaseType, class CoType> 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 >.

6.29.4.5 template<class BaseType, class 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.

Returns:

0 If the constraint/variable could be deleted.

1 otherwise.

Parameters:

slot
A pointer to the pool slot from wich the constraint/variable should be deleted.

Reimplemented in ABA_NONDUPLPOOL< BaseType, CoType >.

6.29.4.6 template<class BaseType, class 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.

Parameters:

slot
A pointer to the pool slot from wich the constraint/variable should be deleted.

Reimplemented in ABA_NONDUPLPOOL< BaseType, CoType >.

6.29.4.7 template<class BaseType, class CoType> virtual ABA_POOLSLOT<BaseType, CoType>*ABA_POOL< BaseType, CoType >::getSlot () [protected, pure virtual]

Implemented in ABA_STANDARDPOOL< BaseType, CoType >, ABA_STANDARDPOOL< ABA_VARIABLE, ABA_CONSTRAINT >, and ABA_STANDARDPOOL< ABA_CONSTRAINT, ABA_VARIABLE >.

6.29.4.8 template<class BaseType, class CoType> virtual void ABA_POOL< BaseType, CoType >::putSlot (ABA_POOLSLOT< BaseType, CoType > * slot) [protected, pure virtual]

Implemented in ABA_STANDARDPOOL< BaseType, CoType >.

6.29.5 Member Data Documentation

6.29.5.1 template<class BaseType, class CoType> ABA_MASTER*ABA_POOL< BaseType, CoType >::master_ [protected]

Definition at line 136 of file pool.h.

6.29.5.2 template<class BaseType, class CoType> int ABA_POOL< BaseType, CoType >::number_ [protected]

Definition at line 137 of file pool.h.

The documentation for this class was generated from the following file: