MultiAgentDecisionProcess
|
BeliefIteratorSparse is an iterator for sparse beliefs. More...
#include <BeliefIteratorSparse.h>
Public Member Functions | |
BeliefIteratorSparse (const BeliefSparse *b) | |
(default) Constructor More... | |
virtual BeliefIteratorSparse * | Clone () const |
Returns a pointer to a copy of this class. More... | |
double | GetProbability () const |
Gets the probability at the current state. More... | |
Index | GetStateIndex () const |
Gets the index of the current state. More... | |
bool | Next () |
Advance the iterator. Returns false if at the end. More... | |
virtual | ~BeliefIteratorSparse () |
Destructor. More... | |
Public Member Functions inherited from BeliefIteratorInterface | |
BeliefIteratorInterface () | |
(default) Constructor More... | |
virtual | ~BeliefIteratorInterface () |
Destructor. More... | |
Private Attributes | |
const BeliefSparse * | _m_belief |
BeliefSparse::BScit | _m_it |
BeliefIteratorSparse is an iterator for sparse beliefs.
|
inline |
(default) Constructor
References BeliefSparse::_m_b, BeliefSparse::NumberNonZeros(), and BeliefSparse::Size().
Referenced by Clone().
|
inlinevirtual |
Destructor.
|
inlinevirtual |
Returns a pointer to a copy of this class.
Implements BeliefIteratorInterface.
References BeliefIteratorSparse().
|
inlinevirtual |
Gets the probability at the current state.
Implements BeliefIteratorInterface.
|
inlinevirtual |
Gets the index of the current state.
Implements BeliefIteratorInterface.
|
inlinevirtual |
Advance the iterator. Returns false if at the end.
Implements BeliefIteratorInterface.
References BeliefSparse::_m_b.
|
private |
|
private |