The subtree pool is used to store subtrees. More...
#include <AlpsSubTreePool.h>
Public Member Functions | |
AlpsSubTreePool () | |
virtual | ~AlpsSubTreePool () |
int | getNumKnowledges () const |
Query the number of subtrees in the pool. More... | |
bool | hasKnowledge () const |
Check whether there is a subtree in the subtree pool. More... | |
std::pair< AlpsKnowledge *, double > | getKnowledge () const |
Get a subtree from subtree pool, doesn't remove it from the pool. More... | |
void | popKnowledge () |
Remove a subtree from the pool. More... | |
void | addKnowledge (AlpsKnowledge *subTree, double priority) |
Add a subtree to the subtree pool. More... | |
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... | |
![]() | |
AlpsKnowledgePool () | |
virtual | ~AlpsKnowledgePool () |
virtual void | setMaxNumKnowledges (int num) |
Set the quantity limit of knowledges that can be stored in the 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... | |
Private Member Functions | |
AlpsSubTreePool (const AlpsSubTreePool &) | |
AlpsSubTreePool & | operator= (const AlpsSubTreePool &) |
Private Attributes | |
AlpsPriorityQueue< AlpsSubTree * > | subTreeList_ |
The subtree pool is used to store subtrees.
Definition at line 32 of file AlpsSubTreePool.h.
|
private |
|
inline |
Definition at line 41 of file AlpsSubTreePool.h.
|
inlinevirtual |
Definition at line 42 of file AlpsSubTreePool.h.
|
private |
|
inlinevirtual |
Query the number of subtrees in the pool.
Implements AlpsKnowledgePool.
Definition at line 49 of file AlpsSubTreePool.h.
|
inlinevirtual |
Check whether there is a subtree in the subtree pool.
Reimplemented from AlpsKnowledgePool.
Definition at line 52 of file AlpsSubTreePool.h.
|
inlinevirtual |
Get a subtree from subtree pool, doesn't remove it from the pool.
Implements AlpsKnowledgePool.
Definition at line 55 of file AlpsSubTreePool.h.
|
inlinevirtual |
Remove a subtree from the pool.
Reimplemented from AlpsKnowledgePool.
Definition at line 62 of file AlpsSubTreePool.h.
|
inlinevirtual |
Add a subtree to the subtree pool.
Implements AlpsKnowledgePool.
Definition at line 67 of file AlpsSubTreePool.h.
|
inline |
Return the container of subtrees.
Definition at line 74 of file AlpsSubTreePool.h.
|
inline |
Set comparison function and resort heap.
Definition at line 77 of file AlpsSubTreePool.h.
|
inline |
Delete the subtrees in the pool.
Definition at line 82 of file AlpsSubTreePool.h.
|
inline |
Get the quality of the best subtree.
Definition at line 90 of file AlpsSubTreePool.h.
|
private |
Definition at line 38 of file AlpsSubTreePool.h.