MultiAgentDecisionProcess
Release 0.2.1
|
BeliefIteratorSparse is an iterator for sparse beliefs. More...
#include <BeliefIteratorSparse.h>
Public Member Functions | |
BeliefIteratorSparse (const BeliefSparse *b) | |
(default) Constructor | |
virtual BeliefIteratorSparse * | Clone () const |
Returns a pointer to a copy of this class. | |
double | GetProbability () const |
Gets the probability at the current state. | |
Index | GetStateIndex () const |
Gets the index of the current state. | |
bool | Next () |
Advance the iterator. Returns false if at the end. | |
virtual | ~BeliefIteratorSparse () |
Destructor. | |
![]() | |
BeliefIteratorInterface () | |
(default) Constructor | |
virtual | ~BeliefIteratorInterface () |
Destructor. |
Private Attributes | |
const BeliefSparse * | _m_belief |
Index | _m_i |
BeliefIteratorSparse is an iterator for sparse beliefs.
Definition at line 40 of file BeliefIteratorSparse.h.
|
inline |
(default) Constructor
Definition at line 63 of file BeliefIteratorSparse.h.
References BeliefSparse::_m_b, and _m_belief.
Referenced by Clone().
|
inlinevirtual |
Destructor.
Definition at line 71 of file BeliefIteratorSparse.h.
|
inlinevirtual |
Returns a pointer to a copy of this class.
Implements BeliefIteratorInterface.
Definition at line 101 of file BeliefIteratorSparse.h.
References BeliefIteratorSparse().
|
inlinevirtual |
Gets the probability at the current state.
Implements BeliefIteratorInterface.
Definition at line 85 of file BeliefIteratorSparse.h.
|
inlinevirtual |
Gets the index of the current state.
Implements BeliefIteratorInterface.
Definition at line 87 of file BeliefIteratorSparse.h.
|
inlinevirtual |
Advance the iterator. Returns false if at the end.
Implements BeliefIteratorInterface.
Definition at line 89 of file BeliefIteratorSparse.h.
References BeliefSparse::_m_b, _m_belief, and _m_i.
|
private |
Definition at line 49 of file BeliefIteratorSparse.h.
Referenced by BeliefIteratorSparse(), GetProbability(), GetStateIndex(), and Next().
|
private |
Definition at line 47 of file BeliefIteratorSparse.h.
Referenced by GetProbability(), GetStateIndex(), and Next().