|
Bcps 0.95.1
|
#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_ |
Definition at line 128 of file BcpsObjectPool.h.
|
inline |
Definition at line 130 of file BcpsObjectPool.h.
|
inlinevirtual |
Definition at line 131 of file BcpsObjectPool.h.
|
inline |
Add a variable to pool.
Definition at line 134 of file BcpsObjectPool.h.
|
inline |
Delete variable k from pool.
Definition at line 137 of file BcpsObjectPool.h.
|
inline |
Query how many variables are in the pool.
Definition at line 140 of file BcpsObjectPool.h.
|
inline |
Get the vector of variables.
Definition at line 143 of file BcpsObjectPool.h.
|
inline |
Get the vector of variables.
Definition at line 146 of file BcpsObjectPool.h.