Bcps 0.94.5
Loading...
Searching...
No Matches
Public Member Functions | List of all members
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. More...
 
void deleteVariable (int k)
 Delete variable k from pool. More...
 
int getNumVariables () const
 Query how many variables are in the pool. More...
 
const std::vector< AlpsKnowledge * > & getVariables () const
 Get the vector of variables. More...
 
AlpsKnowledgegetVariable (int k) const
 Get the vector of variables. More...
 
- Public Member Functions inherited from BcpsObjectPool
 BcpsObjectPool ()
 Default construct. More...
 
virtual ~BcpsObjectPool ()
 
void freeGuts ()
 Free object pointers. More...
 
void clear ()
 Reset to empty. More...
 
virtual void addKnowledge (AlpsKnowledge *nk, double priority)
 Add a knowledge to pool. More...
 
virtual int getNumKnowledges () const
 Query how many knowledges are in the pool. More...
 
virtual std::pair< AlpsKnowledge *, double > getKnowledge () const
 Query a knowledge, but doesn't remove it from the pool. More...
 
virtual bool hasKnowledge () const
 Check whether the pool has knowledge. More...
 
void deleteObject (int k)
 Delete object k from pool. More...
 
const std::vector< AlpsKnowledge * > & getObjects () const
 Get all objects. More...
 
AlpsKnowledgegetObject (int k) const
 Get a object. More...
 
- Public Member Functions inherited from AlpsKnowledgePool
 AlpsKnowledgePool ()
 
virtual ~AlpsKnowledgePool ()
 
virtual void addKnowledge (AlpsKnowledge *nk, double priority)=0
 
virtual int getNumKnowledges () const=0
 
virtual std::pair< AlpsKnowledge *, double > getKnowledge () const=0
 
virtual void popKnowledge ()
 
virtual bool hasKnowledge () const
 
virtual void setMaxNumKnowledges (int num)
 
virtual int getMaxNumKnowledges () const
 
virtual std::pair< AlpsKnowledge *, double > getBestKnowledge () const
 
virtual void getAllKnowledges (std::vector< std::pair< AlpsKnowledge *, double > > &kls) const
 

Additional Inherited Members

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

Detailed Description

Definition at line 127 of file BcpsObjectPool.h.

Constructor & Destructor Documentation

◆ BcpsVariablePool()

BcpsVariablePool::BcpsVariablePool ( )
inline

Definition at line 129 of file BcpsObjectPool.h.

◆ ~BcpsVariablePool()

virtual BcpsVariablePool::~BcpsVariablePool ( )
inlinevirtual

Definition at line 130 of file BcpsObjectPool.h.

Member Function Documentation

◆ addVariable()

void BcpsVariablePool::addVariable ( BcpsVariable var)
inline

Add a variable to pool.

Definition at line 133 of file BcpsObjectPool.h.

◆ deleteVariable()

void BcpsVariablePool::deleteVariable ( int  k)
inline

Delete variable k from pool.

Definition at line 136 of file BcpsObjectPool.h.

◆ getNumVariables()

int BcpsVariablePool::getNumVariables ( ) const
inline

Query how many variables are in the pool.

Definition at line 139 of file BcpsObjectPool.h.

◆ getVariables()

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

Get the vector of variables.

Definition at line 142 of file BcpsObjectPool.h.

◆ getVariable()

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

Get the vector of variables.

Definition at line 145 of file BcpsObjectPool.h.


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