aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
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

Private Attributes

const Set< PRMInstance< GUM_SCALAR > * > & _set_
Set< PRMInstance< GUM_SCALAR > * >::const_iterator _iter_

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 407 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 487 of file PRMInstance_tpl.h.

488 : _set_(set), _iter_(set.begin()) {
490 }
const Set< PRMInstance< GUM_SCALAR > * > & _set_
Set< PRMInstance< GUM_SCALAR > * >::const_iterator _iter_
An PRMInstance is a Bayesian network fragment defined by a Class and used in a PRMSystem.
Definition PRMInstance.h:79
iterator begin()
Returns an iterator at the begining of the list of gum::prm::PRMAttribute<GUM_SCALAR> in this PRMInst...

Referenced by operator!=(), operator=(), and operator==().

Here is the caller graph for this function:

◆ RefConstIterator() [2/2]

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

Definition at line 493 of file PRMInstance_tpl.h.

◆ ~RefConstIterator()

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

Member Function Documentation

◆ isEnd()

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

Definition at line 518 of file PRMInstance_tpl.h.

518 {
519 return _iter_ == _set_.end();
520 }

References _iter_, and _set_.

◆ operator!=()

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

Definition at line 523 of file PRMInstance_tpl.h.

524 {
525 return _iter_ != from._iter_;
526 }

References RefConstIterator(), and _iter_.

Here is the call 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 536 of file PRMInstance_tpl.h.

536 {
537 return **_iter_;
538 }

References _iter_.

◆ operator++()

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

Definition at line 512 of file PRMInstance_tpl.h.

512 {
513 ++_iter_;
514 return *this;
515 }

References _iter_.

◆ operator->()

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

Definition at line 542 of file PRMInstance_tpl.h.

542 {
543 return *_iter_;
544 }

References _iter_.

◆ operator=()

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

Definition at line 505 of file PRMInstance_tpl.h.

505 {
506 _iter_ = from._iter_;
507 return *this;
508 }

References RefConstIterator(), and _iter_.

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 529 of file PRMInstance_tpl.h.

530 {
531 return _iter_ == from._iter_;
532 }

References RefConstIterator(), and _iter_.

Here is the call graph for this function:

Member Data Documentation

◆ _iter_

template<typename GUM_SCALAR>
Set<PRMInstance<GUM_SCALAR>*>::const_iterator gum::prm::PRMInstance< GUM_SCALAR >::RefConstIterator::_iter_
private

Definition at line 430 of file PRMInstance.h.

Referenced by isEnd(), operator!=(), operator*(), operator++(), operator->(), operator=(), and operator==().

◆ _set_

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

Definition at line 429 of file PRMInstance.h.

Referenced by isEnd().


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