OpenGM  2.3.x
Discrete Graphical Model Library
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE > Class Template Reference

Defines the const iterator type to iterate over the subset of a sequence. More...

#include <subsequence_iterator.hxx>

+ Inheritance diagram for opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >:
+ Collaboration diagram for opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >:

Public Types

typedef SEQUENCE_ITERATOR_TYPE SequenceIteratorType
 Typedef of the SEQUENCE_ITERATOR_TYPE template parameter from the class SubsequenceIterator. More...
 
typedef SUBSEQUENCE_INDICES_ITERATOR_TYPE SubsequenceIndicesIteratorType
 Typedef of the SUBSEQUENCE_INDICES_ITERATOR_TYPE template parameter from the class SubsequenceIterator. More...
 
typedef SubsequenceIterator< SequenceIteratorType, SubsequenceIndicesIteratorTypeSubsequenceIteratorType
 Typedef of the class SubsequenceIterator with appropriate template parameter. More...
 
typedef SequenceIteratorType::value_type value_type
 Value type of the sequence adapted from SubsequenceIterator::SequenceIteratorType. More...
 
typedef std::random_access_iterator_tag iterator_category
 STL compliant typedef of the iterator category. More...
 
typedef std::iterator< std::random_access_iterator_tag, value_type >::difference_type difference_type
 STL compliant typedef of the iterator difference type. More...
 
typedef value_typereference
 STL compliant typedef of the iterator reference type. More...
 
typedef value_typepointer
 STL compliant typedef of the iterator pointer type. More...
 

Public Member Functions

 SubsequenceIterator ()
 SubsequenceIterator constructor. More...
 
 SubsequenceIterator (const SubsequenceIteratorType &copy)
 SubsequenceIterator constructor. More...
 
 SubsequenceIterator (const SequenceIteratorType sequenceBegin, const SubsequenceIndicesIteratorType subsequenceIndicesBegin, const size_t subsequenceIndicesPosition=0)
 SubsequenceIterator constructor. More...
 
SubsequenceIteratorTypeoperator= (const SubsequenceIteratorType &copy)
 SubsequenceIterator assignment operator. More...
 
SubsequenceIteratorTypeoperator++ ()
 Prefix increment operator. More...
 
SubsequenceIteratorType operator++ (int)
 Postfix increment operator. More...
 
SubsequenceIteratorType operator+ (const difference_type &n) const
 Arithmetic operator to increment iterator by an integer value. More...
 
SubsequenceIteratorTypeoperator+= (const difference_type &n)
 Compound assignment operator to increment iterator by an integer value. More...
 
SubsequenceIteratorTypeoperator-- ()
 Prefix decrement operator. More...
 
SubsequenceIteratorType operator-- (int)
 Postfix decrement operator. More...
 
SubsequenceIteratorType operator- (const difference_type &n) const
 Arithmetic operator to decrement iterator by an integer value. More...
 
SubsequenceIteratorTypeoperator-= (const difference_type &n)
 Compound assignment operator to decrement iterator by an integer value. More...
 
const value_typeoperator* () const
 Dereference operator. More...
 
const value_typeoperator-> () const
 Pointer operator. More...
 
const value_typeoperator[] (const difference_type &n) const
 Offset dereference operator. More...
 

Protected Attributes

SequenceIteratorType sequenceBegin_
 Iterator pointing to the begin of a sequence of values. The subsequence iterator will iterate over the elements of this sequence which are given by SubsequenceIterator::subsequenceIndicesBegin_. More...
 
SubsequenceIndicesIteratorType subsequenceIndicesBegin_
 Iterator pointing to the begin of a sequence where the indices for the elements of the subsequence are stored. Hence sequenceBegin_[subsequenceIndicesBegin_[n]] will give the n-th element of the subsequence. More...
 
size_t subsequenceIndicesPosition_
 Current Position of the iterator. Hence subsequenceIndicesPosition_ contains the number of the element of the subsequence at which the iterator is pointing at the moment. More...
 

Friends

bool operator== (const SubsequenceIteratorType &iter1, const SubsequenceIteratorType &iter2)
 Equality comparison operator for two SubsequenceIterator iterators. More...
 
bool operator!= (const SubsequenceIteratorType &iter1, const SubsequenceIteratorType &iter2)
 Inequality comparison operator for two SubsequenceIterator iterators. More...
 
bool operator< (const SubsequenceIteratorType &iter1, const SubsequenceIteratorType &iter2)
 Less comparison operator for two SubsequenceIterator iterators. More...
 
bool operator> (const SubsequenceIteratorType &iter1, const SubsequenceIteratorType &iter2)
 Greater comparison operator for two SubsequenceIterator iterators. More...
 
bool operator<= (const SubsequenceIteratorType &iter1, const SubsequenceIteratorType &iter2)
 Less or equal comparison operator for two SubsequenceIterator iterators. More...
 
bool operator>= (const SubsequenceIteratorType &iter1, const SubsequenceIteratorType &iter2)
 Greater or equal comparison operator for two SubsequenceIterator iterators. More...
 
difference_type operator- (const SubsequenceIteratorType &iter1, const SubsequenceIteratorType &iter2)
 Difference operator for two subsequence iterators. More...
 

Detailed Description

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
class opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >

Defines the const iterator type to iterate over the subset of a sequence.

The SubsequenceIterator class implements an STL compliant constant random access iterator to iterate over the subset of a sequence.

Template Parameters
SEQUENCE_ITERATOR_TYPEThe iterator type used to iterate over the sequence. Has to be a random access iterator.
SUBSEQUENCE_INDICES_ITERATOR_TYPEThe iterator type used to iterate over the subsequence indices. Has to be a random access iterator.

Definition at line 12 of file subsequence_iterator.hxx.

Member Typedef Documentation

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::difference_type

STL compliant typedef of the iterator difference type.

Definition at line 20 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::iterator_category

STL compliant typedef of the iterator category.

Definition at line 19 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::pointer

STL compliant typedef of the iterator pointer type.

Definition at line 22 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::reference

STL compliant typedef of the iterator reference type.

Definition at line 21 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::SequenceIteratorType

Typedef of the SEQUENCE_ITERATOR_TYPE template parameter from the class SubsequenceIterator.

Definition at line 15 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::SubsequenceIndicesIteratorType

Typedef of the SUBSEQUENCE_INDICES_ITERATOR_TYPE template parameter from the class SubsequenceIterator.

Definition at line 16 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::SubsequenceIteratorType

Typedef of the class SubsequenceIterator with appropriate template parameter.

Definition at line 17 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::value_type

Value type of the sequence adapted from SubsequenceIterator::SequenceIteratorType.

Definition at line 18 of file subsequence_iterator.hxx.

Constructor & Destructor Documentation

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::SubsequenceIterator ( )
inline

SubsequenceIterator constructor.

This constructor will create an empty SubsequenceIterator.

Definition at line 350 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::SubsequenceIterator ( const SubsequenceIteratorType copy)
inline

SubsequenceIterator constructor.

This constructor will create a copy of an existing SubsequenceIterator.

Parameters
[in]copyThe iterator which will be copied.

Definition at line 356 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::SubsequenceIterator ( const SequenceIteratorType  sequenceBegin,
const SubsequenceIndicesIteratorType  subsequenceIndicesBegin,
const size_t  subsequenceIndicesPosition = 0 
)
inline

SubsequenceIterator constructor.

This constructor will create a new SubsequenceIterator.

Parameters
[in]sequenceBeginIterator pointing to the begin of the sequence over which the subsequence iterator will iterate.
[in]subsequenceIndicesBeginIterator pointing to the begin of the subsequence indices. They are used as indices for the complete sequence.
[in]subsequenceIndicesPositionCurrent position of the subsequence indices.

Definition at line 364 of file subsequence_iterator.hxx.

Member Function Documentation

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
const SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::value_type & opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator* ( ) const
inline

Dereference operator.

Returns
Const reference to the object which is pointed at by the subsequence iterator.

Definition at line 422 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE > opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator+ ( const difference_type n) const
inline

Arithmetic operator to increment iterator by an integer value.

Parameters
[in]nThe integer value by which the iterator will be incremented.
Returns
A new iterator pointing to the object which is n objects behind the object pointed at by the current iterator.

Definition at line 389 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE > & opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator++ ( )
inline

Prefix increment operator.

Returns
Reference to iterator which got incremented by one.

Definition at line 378 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE > opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator++ ( int  )
inline

Postfix increment operator.

Returns
A new iterator which points to the same object as the iterator before the call to the postfix increment operator.

Definition at line 384 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE > & opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator+= ( const difference_type n)
inline

Compound assignment operator to increment iterator by an integer value.

Parameters
[in]nThe integer value by which the iterator will be incremented.
Returns
Reference to iterator which got incremented by n.

Definition at line 394 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE > opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator- ( const difference_type n) const
inline

Arithmetic operator to decrement iterator by an integer value.

Returns
A new iterator pointing to the object which is n objects ahead of the object pointed at by the current iterator.

Definition at line 411 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE > & opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator-- ( )
inline

Prefix decrement operator.

Returns
Reference to iterator which got decremented by one.

Definition at line 400 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE > opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator-- ( int  )
inline

Postfix decrement operator.

Returns
A new iterator which points to the same object as the iterator before the call to the postfix decrement operator.

Definition at line 406 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE > & opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator-= ( const difference_type n)
inline

Compound assignment operator to decrement iterator by an integer value.

Parameters
[in]nThe integer value by which the iterator will be decremented.
Returns
Reference to iterator which got decremented by n.

Definition at line 416 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
const SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::value_type * opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator-> ( ) const
inline

Pointer operator.

Returns
Const Pointer operator for the object which is pointed at by the subsequence iterator.

Definition at line 427 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE > & opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator= ( const SubsequenceIteratorType copy)
inline

SubsequenceIterator assignment operator.

Parameters
[in]copyThe iterator which will be copied.
Returns
Reference to iterator which got updated by the new assignment.

Definition at line 370 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE , class SUBSEQUENCE_INDICES_ITERATOR_TYPE >
const SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::value_type & opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator[] ( const difference_type n) const
inline

Offset dereference operator.

Returns
Const reference to the object which is n objects behind the object pointed at by the subsequence iterator.

Definition at line 432 of file subsequence_iterator.hxx.

Friends And Related Function Documentation

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
bool opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator!= ( const SubsequenceIteratorType iter1,
const SubsequenceIteratorType iter2 
)
friend

Inequality comparison operator for two SubsequenceIterator iterators.

Parameters
[in]iter1First iterator.
[in]iter2Second iterator.
Returns
True if the two iterators point to different objects. False otherwise.

Definition at line 58 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
SubsequenceIterator::difference_type opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator- ( const SubsequenceIteratorType iter1,
const SubsequenceIteratorType iter2 
)
friend

Difference operator for two subsequence iterators.

Parameters
[in]iter1First iterator.
[in]iter2Second iterator.
Returns
The distance between the two subsequence iterators.

Definition at line 73 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
bool opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator< ( const SubsequenceIteratorType iter1,
const SubsequenceIteratorType iter2 
)
friend

Less comparison operator for two SubsequenceIterator iterators.

Parameters
[in]iter1First iterator.
[in]iter2Second iterator.
Returns
True if the first iterators point to an objects which comes in a sequence before the object pointed to by the second iterator. False otherwise.

Definition at line 61 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
bool opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator<= ( const SubsequenceIteratorType iter1,
const SubsequenceIteratorType iter2 
)
friend

Less or equal comparison operator for two SubsequenceIterator iterators.

Parameters
[in]iter1First iterator.
[in]iter2Second iterator.
Returns
True if the first iterators point to an objects which comes in a sequence before the object pointed to by the second iterator or if both objects are the same. False otherwise.

Definition at line 67 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
bool opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator== ( const SubsequenceIteratorType iter1,
const SubsequenceIteratorType iter2 
)
friend

Equality comparison operator for two SubsequenceIterator iterators.

Parameters
[in]iter1First iterator.
[in]iter2Second iterator.
Returns
True if the two iterators point to the same object. False otherwise.

Definition at line 55 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
bool opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator> ( const SubsequenceIteratorType iter1,
const SubsequenceIteratorType iter2 
)
friend

Greater comparison operator for two SubsequenceIterator iterators.

Parameters
[in]iter1First iterator.
[in]iter2Second iterator.
Returns
True if the first iterators point to an objects which comes in a sequence after the object pointed to by the second iterator. False otherwise.

Definition at line 64 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
bool opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::operator>= ( const SubsequenceIteratorType iter1,
const SubsequenceIteratorType iter2 
)
friend

Greater or equal comparison operator for two SubsequenceIterator iterators.

Parameters
[in]iter1First iterator.
[in]iter2Second iterator.
Returns
True if the first iterators point to an objects which comes in a sequence after the object pointed to by the second iterator or if both objects are the same. False otherwise.

Definition at line 70 of file subsequence_iterator.hxx.

Member Data Documentation

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::sequenceBegin_
protected

Iterator pointing to the begin of a sequence of values. The subsequence iterator will iterate over the elements of this sequence which are given by SubsequenceIterator::subsequenceIndicesBegin_.

Definition at line 50 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::subsequenceIndicesBegin_
protected

Iterator pointing to the begin of a sequence where the indices for the elements of the subsequence are stored. Hence sequenceBegin_[subsequenceIndicesBegin_[n]] will give the n-th element of the subsequence.

Definition at line 51 of file subsequence_iterator.hxx.

template<class SEQUENCE_ITERATOR_TYPE, class SUBSEQUENCE_INDICES_ITERATOR_TYPE>
opengm::SubsequenceIterator< SEQUENCE_ITERATOR_TYPE, SUBSEQUENCE_INDICES_ITERATOR_TYPE >::subsequenceIndicesPosition_
protected

Current Position of the iterator. Hence subsequenceIndicesPosition_ contains the number of the element of the subsequence at which the iterator is pointing at the moment.

Definition at line 52 of file subsequence_iterator.hxx.