aGrUM  0.14.1
gum::prm::PRMInstance< GUM_SCALAR >::RefConstIterator 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 >::RefConstIterator:

Public Member Functions

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

Detailed Description

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

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

Definition at line 393 of file PRMInstance.h.

Constructor & Destructor Documentation

◆ RefConstIterator() [1/2]

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

Definition at line 493 of file PRMInstance_tpl.h.

494  :
495  __set(set),
496  __iter(set.begin()) {
497  GUM_CONSTRUCTOR(PRMInstance< GUM_SCALAR >::RefConstIterator);
498  }
Set< PRMInstance< GUM_SCALAR > *>::const_iterator __iter
Definition: PRMInstance.h:416
iterator begin()
Returns an iterator at the begining of the list of gum::prm::PRMAttribute<GUM_SCALAR> in this PRMInst...
const Set< PRMInstance< GUM_SCALAR > *> & __set
Definition: PRMInstance.h:415

◆ RefConstIterator() [2/2]

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

Definition at line 501 of file PRMInstance_tpl.h.

502  :
503  __set(from.__set),
504  __iter(from.__iter) {
505  GUM_CONS_CPY(PRMInstance< GUM_SCALAR >::RefConstIterator);
506  }
Set< PRMInstance< GUM_SCALAR > *>::const_iterator __iter
Definition: PRMInstance.h:416
const Set< PRMInstance< GUM_SCALAR > *> & __set
Definition: PRMInstance.h:415

◆ ~RefConstIterator()

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

Definition at line 509 of file PRMInstance_tpl.h.

References gum::prm::PRMInstance< GUM_SCALAR >::RefConstIterator::operator=().

509  {
510  GUM_DESTRUCTOR(PRMInstance< GUM_SCALAR >::RefConstIterator);
511  }
+ Here is the call graph for this function:

Member Function Documentation

◆ isEnd()

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

Definition at line 529 of file PRMInstance_tpl.h.

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

529  {
530  return __iter == __set.end();
531  }
Set< PRMInstance< GUM_SCALAR > *>::const_iterator __iter
Definition: PRMInstance.h:416
const Set< PRMInstance< GUM_SCALAR > *> & __set
Definition: PRMInstance.h:415
+ Here is the call graph for this function:

◆ operator!=()

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

Definition at line 535 of file PRMInstance_tpl.h.

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

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

535  {
536  return __iter != from.__iter;
537  }
Set< PRMInstance< GUM_SCALAR > *>::const_iterator __iter
Definition: PRMInstance.h:416
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator*()

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

Definition at line 547 of file PRMInstance_tpl.h.

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

547  {
548  return **__iter;
549  }
Set< PRMInstance< GUM_SCALAR > *>::const_iterator __iter
Definition: PRMInstance.h:416

◆ operator++()

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

Definition at line 523 of file PRMInstance_tpl.h.

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

523  {
524  ++__iter;
525  return *this;
526  }
Set< PRMInstance< GUM_SCALAR > *>::const_iterator __iter
Definition: PRMInstance.h:416

◆ operator->()

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

Definition at line 553 of file PRMInstance_tpl.h.

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

553  {
554  return *__iter;
555  }
Set< PRMInstance< GUM_SCALAR > *>::const_iterator __iter
Definition: PRMInstance.h:416

◆ operator=()

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

Definition at line 516 of file PRMInstance_tpl.h.

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

Referenced by gum::prm::PRMInstance< GUM_SCALAR >::RefConstIterator::~RefConstIterator().

516  {
517  __iter = from.__iter;
518  return *this;
519  }
Set< PRMInstance< GUM_SCALAR > *>::const_iterator __iter
Definition: PRMInstance.h:416
+ Here is the caller graph for this function:

◆ operator==()

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

Definition at line 541 of file PRMInstance_tpl.h.

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

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

541  {
542  return __iter == from.__iter;
543  }
Set< PRMInstance< GUM_SCALAR > *>::const_iterator __iter
Definition: PRMInstance.h:416
+ Here is the caller graph for this function:

Member Data Documentation

◆ __iter

◆ __set

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

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