Alps
2.0.2
|
The subtree pool is used to store subtrees. More...
#include <AlpsSubTreePool.h>
Public Member Functions | |
Constructor and destructor. | |
AlpsSubTreePool () | |
Default constructor. More... | |
virtual | ~AlpsSubTreePool () |
Destructor. More... | |
Querry methods | |
virtual int | getNumKnowledges () const |
Query the number of subtrees in the pool. More... | |
virtual std::pair< AlpsKnowledge *, double > | getKnowledge () const |
Get a subtree from subtree pool, doesn't remove it from the pool. More... | |
virtual bool | hasKnowledge () const |
Check whether there is a subtree in the subtree pool. More... | |
virtual int | getMaxNumKnowledges () const |
Query the quantity limit of knowledges. More... | |
virtual std::pair< AlpsKnowledge *, double > | getBestKnowledge () const |
Query the best knowledge in the pool. More... | |
virtual void | getAllKnowledges (std::vector< std::pair< AlpsKnowledge *, double > > &kls) const |
Get a reference to all the knowledges in the pool.*/. More... | |
Knowledge manipulation | |
virtual void | addKnowledge (AlpsKnowledge *subTree, double priority) |
Add a subtree to the subtree pool. More... | |
virtual void | popKnowledge () |
Remove a subtree from the pool. More... | |
Public Member Functions inherited from AlpsKnowledgePool | |
AlpsKnowledgePool (AlpsKnowledgePoolType type) | |
Default constructor. More... | |
virtual | ~AlpsKnowledgePool () |
Destructor. More... | |
Private Attributes | |
AlpsPriorityQueue< AlpsSubTree * > | subTreeList_ |
Other functions | |
virtual void | setMaxNumKnowledges (int num) |
Set the quantity limit of knowledges that can be stored in the pool. More... | |
virtual const AlpsPriorityQueue< AlpsSubTree * > & | getSubTreeList () const |
Return the container of subtrees. More... | |
void | setComparison (AlpsSearchStrategy< AlpsSubTree * > &compare) |
Set comparison function and resort heap. More... | |
void | deleteGuts () |
Delete the subtrees in the pool. More... | |
double | getBestQuality () |
Get the quality of the best subtree. More... | |
AlpsSubTreePool (AlpsSubTreePool const &) | |
Disable copy constructor. More... | |
AlpsSubTreePool & | operator= (const AlpsSubTreePool &) |
Disable copy assignment operator. More... | |
The subtree pool is used to store subtrees.
Definition at line 39 of file AlpsSubTreePool.h.
AlpsSubTreePool::AlpsSubTreePool | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
private |
Disable copy constructor.
|
virtual |
Query the number of subtrees in the pool.
Implements AlpsKnowledgePool.
|
virtual |
Get a subtree from subtree pool, doesn't remove it from the pool.
Implements AlpsKnowledgePool.
|
inlinevirtual |
Check whether there is a subtree in the subtree pool.
Implements AlpsKnowledgePool.
Definition at line 58 of file AlpsSubTreePool.h.
|
inlinevirtual |
Query the quantity limit of knowledges.
Implements AlpsKnowledgePool.
Definition at line 60 of file AlpsSubTreePool.h.
|
virtual |
Query the best knowledge in the pool.
Implements AlpsKnowledgePool.
|
virtual |
Get a reference to all the knowledges in the pool.*/.
Implements AlpsKnowledgePool.
|
virtual |
Add a subtree to the subtree pool.
Implements AlpsKnowledgePool.
|
inlinevirtual |
Remove a subtree from the pool.
Implements AlpsKnowledgePool.
Definition at line 73 of file AlpsSubTreePool.h.
|
virtual |
Set the quantity limit of knowledges that can be stored in the pool.
Implements AlpsKnowledgePool.
|
virtual |
Return the container of subtrees.
void AlpsSubTreePool::setComparison | ( | AlpsSearchStrategy< AlpsSubTree * > & | compare | ) |
Set comparison function and resort heap.
void AlpsSubTreePool::deleteGuts | ( | ) |
Delete the subtrees in the pool.
double AlpsSubTreePool::getBestQuality | ( | ) |
Get the quality of the best subtree.
|
private |
Disable copy assignment operator.
|
private |
Definition at line 40 of file AlpsSubTreePool.h.