aGrUM  0.14.1
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

◆ RefIterator() [1/2]

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

Definition at line 429 of file PRMInstance_tpl.h.

430  :
431  __set(set),
432  __iter(set.begin()) {
433  GUM_CONSTRUCTOR(PRMInstance< GUM_SCALAR >::RefIterator);
434  }
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...

◆ RefIterator() [2/2]

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

Definition at line 437 of file PRMInstance_tpl.h.

438  :
439  __set(const_cast< Set< PRMInstance< GUM_SCALAR >* >& >(from.__set)),
440  __iter(from.__iter) {
441  GUM_CONS_CPY(PRMInstance< GUM_SCALAR >::RefIterator);
442  }
Set< PRMInstance< GUM_SCALAR > *> & __set
Definition: PRMInstance.h:364
Set< PRMInstance< GUM_SCALAR > *>::iterator __iter
Definition: PRMInstance.h:365

◆ ~RefIterator()

template<typename GUM_SCALAR >
INLINE gum::prm::PRMInstance< GUM_SCALAR >::RefIterator::~RefIterator ( )

Definition at line 445 of file PRMInstance_tpl.h.

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

Member Function Documentation

◆ isEnd()

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

Definition at line 464 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!=().

464  {
465  return __iter == __set.end();
466  }
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:

◆ operator!=()

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

Definition at line 470 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().

470  {
471  return __iter != from.__iter;
472  }
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:

◆ operator*()

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

Definition at line 482 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==().

482  {
483  return **__iter;
484  }
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:

◆ operator++()

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

Definition at line 458 of file PRMInstance_tpl.h.

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

458  {
459  ++__iter;
460  return *this;
461  }
Set< PRMInstance< GUM_SCALAR > *>::iterator __iter
Definition: PRMInstance.h:365

◆ operator->()

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

Definition at line 488 of file PRMInstance_tpl.h.

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

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

488  {
489  return *__iter;
490  }
Set< PRMInstance< GUM_SCALAR > *>::iterator __iter
Definition: PRMInstance.h:365
+ Here is the caller graph for this function:

◆ operator=()

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

Definition at line 451 of file PRMInstance_tpl.h.

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

451  {
452  __iter = from.__iter;
453  return *this;
454  }
Set< PRMInstance< GUM_SCALAR > *>::iterator __iter
Definition: PRMInstance.h:365

◆ operator==()

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

Definition at line 476 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!=().

476  {
477  return __iter == from.__iter;
478  }
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

◆ __iter

◆ __set

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: