MultiAgentDecisionProcess
BeliefIterator Class Reference

BeliefIterator is an iterator for dense beliefs. More...

#include <BeliefIterator.h>

Inheritance diagram for BeliefIterator:
[legend]

Public Member Functions

 BeliefIterator (const Belief *b)
 (default) Constructor More...
 
virtual BeliefIteratorClone () 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 ~BeliefIterator ()
 Destructor. More...
 
- Public Member Functions inherited from BeliefIteratorInterface
 BeliefIteratorInterface ()
 (default) Constructor More...
 
virtual ~BeliefIteratorInterface ()
 Destructor. More...
 

Private Attributes

const Belief_m_belief
 
Index _m_i
 

Detailed Description

BeliefIterator is an iterator for dense beliefs.

Constructor & Destructor Documentation

BeliefIterator::BeliefIterator ( const Belief b)
inline

(default) Constructor

Referenced by Clone().

virtual BeliefIterator::~BeliefIterator ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual BeliefIterator* BeliefIterator::Clone ( ) const
inlinevirtual

Returns a pointer to a copy of this class.

Implements BeliefIteratorInterface.

References BeliefIterator().

double BeliefIterator::GetProbability ( ) const
inlinevirtual

Gets the probability at the current state.

Implements BeliefIteratorInterface.

References Belief::_m_b.

Index BeliefIterator::GetStateIndex ( ) const
inlinevirtual

Gets the index of the current state.

Implements BeliefIteratorInterface.

bool BeliefIterator::Next ( )
inlinevirtual

Advance the iterator. Returns false if at the end.

Implements BeliefIteratorInterface.

References Belief::_m_b.

Member Data Documentation

const Belief* BeliefIterator::_m_belief
private
Index BeliefIterator::_m_i
private