#include <BeliefCache.h>
Public Member Functions | |
int | addBeliefRow (SharedPointer< belief_vector > &bel) |
int | addBeliefRowWithoutCheck (SharedPointer< belief_vector > &bel) |
BeliefCache (void) | |
int | getBeliefRowIndex (SharedPointer< belief_vector > &bel) |
BeliefCacheRow * | getRow (int row) |
bool | hasBelief (SharedPointer< belief_vector > &bel) |
virtual void | localDelete (SharedPointer< Belief > pointer) |
int | size () |
ofstream & | writeBeliefFunction (std::string fileName) |
ofstream & | writeBeliefVector (std::string fileName) |
Helper Method to dump belief cache. | |
virtual | ~BeliefCache (void) |
Public Attributes | |
int | currentRowCount |
Private Member Functions | |
void | validateRowNumber (int row) |
Private Attributes | |
std::vector< BeliefCacheRow * > | belCache |
UniqueBeliefHeap * | lookupTable |
Definition at line 13 of file BeliefCache.h.
BeliefCache::BeliefCache | ( | void | ) |
Definition at line 10 of file BeliefCache.cpp.
BeliefCache::~BeliefCache | ( | void | ) | [virtual] |
Definition at line 17 of file BeliefCache.cpp.
int BeliefCache::addBeliefRow | ( | SharedPointer< belief_vector > & | bel | ) |
Definition at line 45 of file BeliefCache.cpp.
int BeliefCache::addBeliefRowWithoutCheck | ( | SharedPointer< belief_vector > & | bel | ) |
Definition at line 68 of file BeliefCache.cpp.
int BeliefCache::getBeliefRowIndex | ( | SharedPointer< belief_vector > & | bel | ) |
Definition at line 87 of file BeliefCache.cpp.
BeliefCacheRow * BeliefCache::getRow | ( | int | row | ) |
Definition at line 27 of file BeliefCache.cpp.
bool BeliefCache::hasBelief | ( | SharedPointer< belief_vector > & | bel | ) |
Definition at line 82 of file BeliefCache.cpp.
void BeliefCache::localDelete | ( | SharedPointer< Belief > | pointer | ) | [virtual] |
Definition at line 22 of file BeliefCache.cpp.
int momdp::BeliefCache::size | ( | ) | [inline] |
Definition at line 47 of file BeliefCache.h.
void BeliefCache::validateRowNumber | ( | int | row | ) | [private] |
Definition at line 33 of file BeliefCache.cpp.
ofstream & BeliefCache::writeBeliefFunction | ( | std::string | fileName | ) |
Definition at line 104 of file BeliefCache.cpp.
ofstream & BeliefCache::writeBeliefVector | ( | std::string | fileName | ) |
Helper Method to dump belief cache.
Definition at line 91 of file BeliefCache.cpp.
std::vector<BeliefCacheRow *> momdp::BeliefCache::belCache [private] |
Definition at line 16 of file BeliefCache.h.
Definition at line 38 of file BeliefCache.h.
UniqueBeliefHeap* momdp::BeliefCache::lookupTable [private] |
Definition at line 17 of file BeliefCache.h.