aGrUM  0.13.2
gum::prm::PRMInstance< GUM_SCALAR >::RefIterator Class Reference

Nested class to iterate over PRMReferenceSlot and PRMSlotChain<GUM_SCALAR> instantiations. More...

#include <PRMInstance.h>

+ Collaboration diagram for gum::prm::PRMInstance< GUM_SCALAR >::RefIterator:

Public Member Functions

 RefIterator (Set< PRMInstance< GUM_SCALAR > * > &set)
 
 RefIterator (const RefIterator &from)
 
 ~RefIterator ()
 
RefIteratoroperator= (const RefIterator &from)
 
RefIteratoroperator++ ()
 
bool isEnd () const
 
bool operator!= (const RefIterator &from) const
 
bool operator== (const RefIterator &from) const
 
PRMInstance< GUM_SCALAR > & operator* () const
 
PRMInstance< GUM_SCALAR > * operator-> () const
 

Detailed Description

template<typename GUM_SCALAR>
class gum::prm::PRMInstance< GUM_SCALAR >::RefIterator

Nested class to iterate over PRMReferenceSlot and PRMSlotChain<GUM_SCALAR> instantiations.

Definition at line 342 of file PRMInstance.h.

Constructor & Destructor Documentation

template<typename GUM_SCALAR >
INLINE gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::RefIterator ( Set< PRMInstance< GUM_SCALAR > * > &  set)
explicit

Definition at line 428 of file PRMInstance_tpl.h.

429  :
430  __set(set),
431  __iter(set.begin()) {
432  GUM_CONSTRUCTOR(PRMInstance< GUM_SCALAR >::RefIterator);
433  }
Set< PRMInstance< GUM_SCALAR > * > & __set
Definition: PRMInstance.h:364
Set< PRMInstance< GUM_SCALAR > * >::iterator __iter
Definition: PRMInstance.h:365
iterator begin()
Returns an iterator at the begining of the list of gum::prm::PRMAttribute<GUM_SCALAR> in this PRMInst...
template<typename GUM_SCALAR >
INLINE gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::RefIterator ( const RefIterator from)

Definition at line 436 of file PRMInstance_tpl.h.

437  :
438  __set(const_cast< Set< PRMInstance< GUM_SCALAR >* >& >(from.__set)),
439  __iter(from.__iter) {
440  GUM_CONS_CPY(PRMInstance< GUM_SCALAR >::RefIterator);
441  }
Set< PRMInstance< GUM_SCALAR > * > & __set
Definition: PRMInstance.h:364
Set< PRMInstance< GUM_SCALAR > * >::iterator __iter
Definition: PRMInstance.h:365
template<typename GUM_SCALAR >
INLINE gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::~RefIterator ( )

Definition at line 444 of file PRMInstance_tpl.h.

444  {
445  GUM_DESTRUCTOR(PRMInstance< GUM_SCALAR >::RefIterator);
446  }

Member Function Documentation

template<typename GUM_SCALAR >
INLINE bool gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::isEnd ( ) const

Definition at line 463 of file PRMInstance_tpl.h.

References gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::__iter, gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::__set, and gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::operator!=().

463  {
464  return __iter == __set.end();
465  }
Set< PRMInstance< GUM_SCALAR > * > & __set
Definition: PRMInstance.h:364
Set< PRMInstance< GUM_SCALAR > * >::iterator __iter
Definition: PRMInstance.h:365

+ Here is the call graph for this function:

template<typename GUM_SCALAR >
INLINE bool gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::operator!= ( const RefIterator from) const

Definition at line 469 of file PRMInstance_tpl.h.

References gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::__iter, and gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::operator==().

Referenced by gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::isEnd().

469  {
470  return __iter != from.__iter;
471  }
Set< PRMInstance< GUM_SCALAR > * >::iterator __iter
Definition: PRMInstance.h:365

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename GUM_SCALAR >
INLINE PRMInstance< GUM_SCALAR > & gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::operator* ( ) const

Definition at line 481 of file PRMInstance_tpl.h.

References gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::__iter, and gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::operator->().

Referenced by gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::operator==().

481  {
482  return **__iter;
483  }
Set< PRMInstance< GUM_SCALAR > * >::iterator __iter
Definition: PRMInstance.h:365

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename GUM_SCALAR >
INLINE PRMInstance< GUM_SCALAR >::RefIterator & gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::operator++ ( )

Definition at line 457 of file PRMInstance_tpl.h.

References gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::__iter.

457  {
458  ++__iter;
459  return *this;
460  }
Set< PRMInstance< GUM_SCALAR > * >::iterator __iter
Definition: PRMInstance.h:365
template<typename GUM_SCALAR >
INLINE PRMInstance< GUM_SCALAR > * gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::operator-> ( ) const

Definition at line 487 of file PRMInstance_tpl.h.

References gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::__iter.

Referenced by gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::operator*().

487  {
488  return *__iter;
489  }
Set< PRMInstance< GUM_SCALAR > * >::iterator __iter
Definition: PRMInstance.h:365

+ Here is the caller graph for this function:

template<typename GUM_SCALAR >
INLINE PRMInstance< GUM_SCALAR >::RefIterator & gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::operator= ( const RefIterator from)

Definition at line 450 of file PRMInstance_tpl.h.

References gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::__iter.

450  {
451  __iter = from.__iter;
452  return *this;
453  }
Set< PRMInstance< GUM_SCALAR > * >::iterator __iter
Definition: PRMInstance.h:365
template<typename GUM_SCALAR >
INLINE bool gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::operator== ( const RefIterator from) const

Definition at line 475 of file PRMInstance_tpl.h.

References gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::__iter, and gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::operator*().

Referenced by gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::operator!=().

475  {
476  return __iter == from.__iter;
477  }
Set< PRMInstance< GUM_SCALAR > * >::iterator __iter
Definition: PRMInstance.h:365

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

template<typename GUM_SCALAR>
Set< PRMInstance< GUM_SCALAR >* >& gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::__set
private

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