MultiAgentDecisionProcess  Release 0.2.1
BeliefIteratorSparse Class Reference

BeliefIteratorSparse is an iterator for sparse beliefs. More...

#include <BeliefIteratorSparse.h>

+ Inheritance diagram for BeliefIteratorSparse:
+ Collaboration diagram for BeliefIteratorSparse:

Public Member Functions

 BeliefIteratorSparse (const BeliefSparse *b)
 (default) Constructor
virtual BeliefIteratorSparseClone () 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.
- Public Member Functions inherited from BeliefIteratorInterface
 BeliefIteratorInterface ()
 (default) Constructor
virtual ~BeliefIteratorInterface ()
 Destructor.

Private Attributes

const BeliefSparse_m_belief
Index _m_i

Detailed Description

BeliefIteratorSparse is an iterator for sparse beliefs.

Definition at line 40 of file BeliefIteratorSparse.h.

Constructor & Destructor Documentation

BeliefIteratorSparse::BeliefIteratorSparse ( const BeliefSparse b)
inline

(default) Constructor

Definition at line 63 of file BeliefIteratorSparse.h.

References BeliefSparse::_m_b, and _m_belief.

Referenced by Clone().

virtual BeliefIteratorSparse::~BeliefIteratorSparse ( )
inlinevirtual

Destructor.

Definition at line 71 of file BeliefIteratorSparse.h.

Member Function Documentation

virtual BeliefIteratorSparse* BeliefIteratorSparse::Clone ( ) const
inlinevirtual

Returns a pointer to a copy of this class.

Implements BeliefIteratorInterface.

Definition at line 101 of file BeliefIteratorSparse.h.

References BeliefIteratorSparse().

double BeliefIteratorSparse::GetProbability ( ) const
inlinevirtual

Gets the probability at the current state.

Implements BeliefIteratorInterface.

Definition at line 85 of file BeliefIteratorSparse.h.

References _m_belief, and _m_i.

Index BeliefIteratorSparse::GetStateIndex ( ) const
inlinevirtual

Gets the index of the current state.

Implements BeliefIteratorInterface.

Definition at line 87 of file BeliefIteratorSparse.h.

References _m_belief, and _m_i.

bool BeliefIteratorSparse::Next ( )
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.

Member Data Documentation

const BeliefSparse* BeliefIteratorSparse::_m_belief
private

Definition at line 49 of file BeliefIteratorSparse.h.

Referenced by BeliefIteratorSparse(), GetProbability(), GetStateIndex(), and Next().

Index BeliefIteratorSparse::_m_i
private

Definition at line 47 of file BeliefIteratorSparse.h.

Referenced by GetProbability(), GetStateIndex(), and Next().


The documentation for this class was generated from the following file: