MultiAgentDecisionProcess
BeliefIteratorSparse Class Reference

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

#include <BeliefIteratorSparse.h>

Inheritance diagram for BeliefIteratorSparse:
[legend]

Public Member Functions

 BeliefIteratorSparse (const BeliefSparse *b)
 (default) Constructor More...
 
virtual BeliefIteratorSparseClone () 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
 

Detailed Description

BeliefIteratorSparse is an iterator for sparse beliefs.

Constructor & Destructor Documentation

BeliefIteratorSparse::BeliefIteratorSparse ( const BeliefSparse b)
inline

(default) Constructor

References BeliefSparse::_m_b, BeliefSparse::NumberNonZeros(), and BeliefSparse::Size().

Referenced by Clone().

virtual BeliefIteratorSparse::~BeliefIteratorSparse ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual BeliefIteratorSparse* BeliefIteratorSparse::Clone ( ) const
inlinevirtual

Returns a pointer to a copy of this class.

Implements BeliefIteratorInterface.

References BeliefIteratorSparse().

double BeliefIteratorSparse::GetProbability ( ) const
inlinevirtual

Gets the probability at the current state.

Implements BeliefIteratorInterface.

Index BeliefIteratorSparse::GetStateIndex ( ) const
inlinevirtual

Gets the index of the current state.

Implements BeliefIteratorInterface.

bool BeliefIteratorSparse::Next ( )
inlinevirtual

Advance the iterator. Returns false if at the end.

Implements BeliefIteratorInterface.

References BeliefSparse::_m_b.

Member Data Documentation

const BeliefSparse* BeliefIteratorSparse::_m_belief
private
BeliefSparse::BScit BeliefIteratorSparse::_m_it
private