ABA_POOL< BaseType, CoType > Class Template Reference

The public enumerations of ABA_POOL. More...

#include <pool.h>

Inheritance diagram for ABA_POOL< BaseType, CoType >:

ABA_ABACUSROOT ABA_STANDARDPOOL< BaseType, CoType > ABA_NONDUPLPOOL< BaseType, CoType > List of all members.

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_MASTERmaster_
int number_

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.


Member Enumeration Documentation

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

Enumerator:
NO_RANK 
RANK 
ABS_RANK 

Definition at line 67 of file pool.h.


Constructor & Destructor Documentation

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.

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

The destructor.


Member Function Documentation

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 >.

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.

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

Returns:
The current number of items in the pool.

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 >.

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 >.

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 >.

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 >.

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 >.


Member Data Documentation

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

Definition at line 136 of file pool.h.

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:
Generated on Tue Aug 14 18:09:58 2007 for ABACUS by  doxygen 1.5.1