arbb::const_range_iterator< T > Class Template Reference

An iterator obtained from an arbb::range instance pointing to constant elements. More...

List of all members.

Public Member Functions

 const_range_iterator ()
 Default constructor.
 const_range_iterator (const const_range_iterator &other)
 Copy constructor.
template<typename U >
 const_range_iterator (const const_range_iterator< U > &other)
 Conversion constructor.
const_range_iteratoroperator= (const const_range_iterator &other)
 Assignment operator.
const const_range_iterator< T >
::pointer 
operator-> () const
 Obtains a pointer to the iterator's value and allows expressions such as a->b() to work.
const const_range_iterator< T >
::reference 
operator* () const
 Obtains a reference to the iterator's value.
const const_range_iterator< T >
::reference 
operator[] (typename const_range_iterator< T >::difference_type i) const
 Obtains a reference to the value at the iterator at offset i.
const const_range_iteratoroperator++ ()
 Adjusts this iterator to point to the next element and returns the adjusted iterator.
const const_range_iteratoroperator-- ()
 Adjusts this iterator to point to the previous element and returns the adjusted iterator.
const_range_iterator operator++ (int)
 Adjusts this iterator to point to the next element but returns the original iterator.
const_range_iterator operator-- (int)
 Adjusts this iterator to point to the previous element but returns the original iterator.
const_range_iteratoroperator+= (typename const_range_iterator< T >::difference_type offset)
 Adjusts this iterator to be offset by offset elements.
const_range_iteratoroperator-= (typename const_range_iterator< T >::difference_type offset)
 Adjusts this iterator to be offset by -offset elements.
const_range_iterator< T >
::difference_type 
difference (const_range_iterator other) const
 Returns the offset between this iterator and other.

Detailed Description

template<typename T>
class arbb::const_range_iterator< T >

An iterator obtained from an arbb::range instance pointing to constant elements.

Range iterators are confirming standard C++ random access iterators.

See Also

arbb::range
arbb::const_range

Definition at line 123 of file range_iterator.hpp.


Constructor & Destructor Documentation

template<typename T>
arbb::const_range_iterator< T >::const_range_iterator (  ) 

Default constructor.

template<typename T>
arbb::const_range_iterator< T >::const_range_iterator ( const const_range_iterator< T > &  other  ) 

Copy constructor.

template<typename T>
template<typename U >
arbb::const_range_iterator< T >::const_range_iterator ( const const_range_iterator< U > &  other  )  [inline]

Conversion constructor.


Member Function Documentation

template<typename T>
const_range_iterator& arbb::const_range_iterator< T >::operator= ( const const_range_iterator< T > &  other  ) 

Assignment operator.

template<typename T>
const const_range_iterator<T>::pointer arbb::const_range_iterator< T >::operator-> (  )  const

Obtains a pointer to the iterator's value and allows expressions such as a->b() to work.

template<typename T>
const const_range_iterator<T>::reference arbb::const_range_iterator< T >::operator* (  )  const

Obtains a reference to the iterator's value.

template<typename T>
const const_range_iterator<T>::reference arbb::const_range_iterator< T >::operator[] ( typename const_range_iterator< T >::difference_type  i  )  const

Obtains a reference to the value at the iterator at offset i.

Equivalent to *(*this + i).

template<typename T>
const const_range_iterator& arbb::const_range_iterator< T >::operator++ (  ) 

Adjusts this iterator to point to the next element and returns the adjusted iterator.

template<typename T>
const const_range_iterator& arbb::const_range_iterator< T >::operator-- (  ) 

Adjusts this iterator to point to the previous element and returns the adjusted iterator.

template<typename T>
const_range_iterator arbb::const_range_iterator< T >::operator++ ( int   ) 

Adjusts this iterator to point to the next element but returns the original iterator.

template<typename T>
const_range_iterator arbb::const_range_iterator< T >::operator-- ( int   ) 

Adjusts this iterator to point to the previous element but returns the original iterator.

template<typename T>
const_range_iterator& arbb::const_range_iterator< T >::operator+= ( typename const_range_iterator< T >::difference_type  offset  ) 

Adjusts this iterator to be offset by offset elements.

template<typename T>
const_range_iterator& arbb::const_range_iterator< T >::operator-= ( typename const_range_iterator< T >::difference_type  offset  ) 

Adjusts this iterator to be offset by -offset elements.

Equivalent to *this += -offset.

template<typename T>
const_range_iterator<T>::difference_type arbb::const_range_iterator< T >::difference ( const_range_iterator< T >  other  )  const

Returns the offset between this iterator and other.

If the iterator does not belong to the same range as other, calling this function has undefined behavior.


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

Submit feedback on this help topic

Copyright © 2010, Intel Corporation. All rights reserved.