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

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

Definition at line 492 of file PRMInstance_tpl.h.

493  :
494  __set(set),
495  __iter(set.begin()) {
496  GUM_CONSTRUCTOR(PRMInstance< GUM_SCALAR >::RefConstIterator);
497  }
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
template<typename GUM_SCALAR >
INLINE gum::prm::PRMInstance< GUM_SCALAR >::RefConstIterator::RefConstIterator ( const RefConstIterator from)

Definition at line 500 of file PRMInstance_tpl.h.

501  :
502  __set(from.__set),
503  __iter(from.__iter) {
504  GUM_CONS_CPY(PRMInstance< GUM_SCALAR >::RefConstIterator);
505  }
Set< PRMInstance< GUM_SCALAR > * >::const_iterator __iter
Definition: PRMInstance.h:416
const Set< PRMInstance< GUM_SCALAR > * > & __set
Definition: PRMInstance.h:415
template<typename GUM_SCALAR >
INLINE gum::prm::PRMInstance< GUM_SCALAR >::RefConstIterator::~RefConstIterator ( )

Definition at line 508 of file PRMInstance_tpl.h.

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

508  {
509  GUM_DESTRUCTOR(PRMInstance< GUM_SCALAR >::RefConstIterator);
510  }

+ Here is the call graph for this function:

Member Function Documentation

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

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

528  {
529  return __iter == __set.end();
530  }
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:

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

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

534  {
535  return __iter != from.__iter;
536  }
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:

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

Definition at line 546 of file PRMInstance_tpl.h.

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

546  {
547  return **__iter;
548  }
Set< PRMInstance< GUM_SCALAR > * >::const_iterator __iter
Definition: PRMInstance.h:416
template<typename GUM_SCALAR >
INLINE PRMInstance< GUM_SCALAR >::RefConstIterator & gum::prm::PRMInstance< GUM_SCALAR >::RefConstIterator::operator++ ( )

Definition at line 522 of file PRMInstance_tpl.h.

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

522  {
523  ++__iter;
524  return *this;
525  }
Set< PRMInstance< GUM_SCALAR > * >::const_iterator __iter
Definition: PRMInstance.h:416
template<typename GUM_SCALAR >
INLINE const PRMInstance< GUM_SCALAR > * gum::prm::PRMInstance< GUM_SCALAR >::RefConstIterator::operator-> ( ) const

Definition at line 552 of file PRMInstance_tpl.h.

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

552  {
553  return *__iter;
554  }
Set< PRMInstance< GUM_SCALAR > * >::const_iterator __iter
Definition: PRMInstance.h:416
template<typename GUM_SCALAR >
INLINE PRMInstance< GUM_SCALAR >::RefConstIterator & gum::prm::PRMInstance< GUM_SCALAR >::RefConstIterator::operator= ( const RefConstIterator from)

Definition at line 515 of file PRMInstance_tpl.h.

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

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

515  {
516  __iter = from.__iter;
517  return *this;
518  }
Set< PRMInstance< GUM_SCALAR > * >::const_iterator __iter
Definition: PRMInstance.h:416

+ Here is the caller graph for this function:

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

Definition at line 540 of file PRMInstance_tpl.h.

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

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

540  {
541  return __iter == from.__iter;
542  }
Set< PRMInstance< GUM_SCALAR > * >::const_iterator __iter
Definition: PRMInstance.h:416

+ Here is the caller graph for this function:

Member Data Documentation

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: