|
Bcps 0.95.1
|
#include <BcpsObjectPool.h>
Inheritance diagram for BcpsConstraintPool:
Collaboration diagram for BcpsConstraintPool:Public Member Functions | |
| BcpsConstraintPool () | |
| virtual | ~BcpsConstraintPool () |
| void | addConstraint (BcpsConstraint *con) |
| Add a constraint to pool. | |
| void | deleteConstraint (int k) |
| Delete constraint k from pool. | |
| int | getNumConstraints () const |
| Query how many constraints are in the pool. | |
| const std::vector< AlpsKnowledge * > & | getConstraints () const |
| Get the vector of constraints. | |
| AlpsKnowledge * | getConstraint (int k) const |
| Get a constraints. | |
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 105 of file BcpsObjectPool.h.
|
inline |
Definition at line 107 of file BcpsObjectPool.h.
|
inlinevirtual |
Definition at line 108 of file BcpsObjectPool.h.
|
inline |
Add a constraint to pool.
Definition at line 111 of file BcpsObjectPool.h.
|
inline |
Delete constraint k from pool.
Definition at line 114 of file BcpsObjectPool.h.
|
inline |
Query how many constraints are in the pool.
Definition at line 117 of file BcpsObjectPool.h.
|
inline |
Get the vector of constraints.
Definition at line 120 of file BcpsObjectPool.h.
|
inline |
Get a constraints.
Definition at line 123 of file BcpsObjectPool.h.