Bcps 0.95.1
Loading...
Searching...
No Matches
BcpsVariablePool Class Reference

#include <BcpsObjectPool.h>

+ Inheritance diagram for BcpsVariablePool:
+ Collaboration diagram for BcpsVariablePool:

Public Member Functions

 BcpsVariablePool ()
 
virtual ~BcpsVariablePool ()
 
void addVariable (BcpsVariable *var)
 Add a variable to pool.
 
void deleteVariable (int k)
 Delete variable k from pool.
 
int getNumVariables () const
 Query how many variables are in the pool.
 
const std::vector< AlpsKnowledge * > & getVariables () const
 Get the vector of variables.
 
AlpsKnowledge * getVariable (int k) const
 Get the vector of variables.
 
- Public Member Functions inherited from BcpsObjectPool
 BcpsObjectPool ()
 Default construct.
 
virtual ~BcpsObjectPool ()
 
void freeGuts ()
 Free object pointers.
 
void clear ()
 Reset to empty.
 
virtual void addKnowledge (AlpsKnowledge *nk, double priority)
 Add a knowledge to pool.
 
virtual int getNumKnowledges () const
 Query how many knowledges are in the pool.
 
virtual std::pair< AlpsKnowledge *, double > getKnowledge () const
 Query a knowledge, but doesn't remove it from the pool.
 
virtual bool hasKnowledge () const
 Check whether the pool has knowledge.
 
void deleteObject (int k)
 Delete object k from pool.
 
const std::vector< AlpsKnowledge * > & getObjects () const
 Get all objects.
 
AlpsKnowledge * getObject (int k) const
 Get a object.
 

Additional Inherited Members

- Protected Attributes inherited from BcpsObjectPool
std::vector< AlpsKnowledge * > objects_
 

Detailed Description

Definition at line 128 of file BcpsObjectPool.h.

Constructor & Destructor Documentation

◆ BcpsVariablePool()

BcpsVariablePool::BcpsVariablePool ( )
inline

Definition at line 130 of file BcpsObjectPool.h.

◆ ~BcpsVariablePool()

virtual BcpsVariablePool::~BcpsVariablePool ( )
inlinevirtual

Definition at line 131 of file BcpsObjectPool.h.

Member Function Documentation

◆ addVariable()

void BcpsVariablePool::addVariable ( BcpsVariable * var)
inline

Add a variable to pool.

Definition at line 134 of file BcpsObjectPool.h.

◆ deleteVariable()

void BcpsVariablePool::deleteVariable ( int k)
inline

Delete variable k from pool.

Definition at line 137 of file BcpsObjectPool.h.

◆ getNumVariables()

int BcpsVariablePool::getNumVariables ( ) const
inline

Query how many variables are in the pool.

Definition at line 140 of file BcpsObjectPool.h.

◆ getVariables()

const std::vector< AlpsKnowledge * > & BcpsVariablePool::getVariables ( ) const
inline

Get the vector of variables.

Definition at line 143 of file BcpsObjectPool.h.

◆ getVariable()

AlpsKnowledge * BcpsVariablePool::getVariable ( int k) const
inline

Get the vector of variables.

Definition at line 146 of file BcpsObjectPool.h.


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