#include <UniqueBeliefHeap.h>
Public Member Functions | |
int | addBeliefRowPair (SharedPointer< belief_vector > &bel, int row) |
This for adding a belief and row pair. | |
int | getBeliefRowIndex (SharedPointer< belief_vector > &bel) const |
get the corresponding row, -1 is returned if the thing is not found | |
bool | isStorageMaterial (SharedPointer< belief_vector > &bel) |
This is for checking whether the current belief in question can be added to the heap / cache or not. | |
void | printHashMap () const |
virtual | ~UniqueBeliefHeap () |
Private Member Functions | |
bool | hasBelief (SharedPointer< belief_vector > &bel) |
Private Attributes | |
map< string, vector < BeliefVector_RowIndexPair > > | uniqueBelHeap |
Definition at line 33 of file UniqueBeliefHeap.h.
momdp::UniqueBeliefHeap::~UniqueBeliefHeap | ( | ) | [virtual] |
Definition at line 126 of file UniqueBeliefHeap.cpp.
int momdp::UniqueBeliefHeap::addBeliefRowPair | ( | SharedPointer< belief_vector > & | bel, |
int | row | ||
) |
This for adding a belief and row pair.
bel | belief to be added |
row | row index |
Definition at line 22 of file UniqueBeliefHeap.cpp.
int momdp::UniqueBeliefHeap::getBeliefRowIndex | ( | SharedPointer< belief_vector > & | bel | ) | const |
get the corresponding row, -1 is returned if the thing is not found
bel | belief being searched |
Definition at line 71 of file UniqueBeliefHeap.cpp.
bool momdp::UniqueBeliefHeap::hasBelief | ( | SharedPointer< belief_vector > & | bel | ) | [private] |
Definition at line 65 of file UniqueBeliefHeap.cpp.
bool momdp::UniqueBeliefHeap::isStorageMaterial | ( | SharedPointer< belief_vector > & | bel | ) |
This is for checking whether the current belief in question can be added to the heap / cache or not.
bel | the belief in question |
Definition at line 122 of file UniqueBeliefHeap.cpp.
void momdp::UniqueBeliefHeap::printHashMap | ( | ) | const |
Definition at line 113 of file UniqueBeliefHeap.cpp.
map<string, vector<BeliefVector_RowIndexPair> > momdp::UniqueBeliefHeap::uniqueBelHeap [private] |
Definition at line 36 of file UniqueBeliefHeap.h.