LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::smallObjectList< T >::const_iterator Class Reference

const_iterator class (allows read-only operations) The use of the iterator classes is similar to the iterators of the STL (Standard Template Library). More...

#include <ltiSmallObjectList.h>

Collaboration diagram for lti::smallObjectList< T >::const_iterator:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
std::bidirectional_iterator_tag 
iterator_category

Public Member Functions

 const_iterator ()
 const_iterator (const const_iterator &i)
 const_iterator (const iterator &i)
bool operator== (const const_iterator &i) const
bool operator!= (const const_iterator &i) const
const_reference operator* () const
const_pointer operator-> () const
const_iteratoroperator++ ()
const_iterator operator++ (int)
const_iteratoroperator-- ()
const_iterator operator-- (int)

Protected Member Functions

 const_iterator (const smallObjectList *l, node *p)

Detailed Description

template<typename T>
class lti::smallObjectList< T >::const_iterator

const_iterator class (allows read-only operations) The use of the iterator classes is similar to the iterators of the STL (Standard Template Library).


Member Typedef Documentation

template<typename T>
typedef std::bidirectional_iterator_tag lti::smallObjectList< T >::const_iterator::iterator_category

Iterator traits.

These are required by the algorithms of the STL.


Constructor & Destructor Documentation

template<typename T>
lti::smallObjectList< T >::const_iterator::const_iterator ( const smallObjectList l,
node *  p 
) [inline, protected]

Creates an const_iterator for the given list, at the given position.

template<typename T>
lti::smallObjectList< T >::const_iterator::const_iterator (  )  [inline]

Creates an uninitialized const_iterator.

template<typename T>
lti::smallObjectList< T >::const_iterator::const_iterator ( const const_iterator i  )  [inline]

Copy constructor.

Creates a copy of the given const_iterator.

template<typename T>
lti::smallObjectList< T >::const_iterator::const_iterator ( const iterator i  )  [inline]

Copy constructor.

Creates a copy of the given iterator.


Member Function Documentation

template<typename T>
bool lti::smallObjectList< T >::const_iterator::operator!= ( const const_iterator i  )  const [inline]

Returns false if both iterators are at the same position on the same list, true otherwise.

template<typename T>
const_reference lti::smallObjectList< T >::const_iterator::operator* (  )  const [inline]

Returns a const_reference to the current element.

template<typename T>
const_iterator lti::smallObjectList< T >::const_iterator::operator++ ( int   )  [inline]

Moves forward one element in the list, and returns a copy of itself before the move.

template<typename T>
const_iterator& lti::smallObjectList< T >::const_iterator::operator++ (  )  [inline]

Moves forward one element in the list, and returns itself.

template<typename T>
const_iterator lti::smallObjectList< T >::const_iterator::operator-- ( int   )  [inline]

Moves backward one element in the list, and returns a copy of itself before the move.

template<typename T>
const_iterator& lti::smallObjectList< T >::const_iterator::operator-- (  )  [inline]

Moves backward one element in the list, and returns itself.

template<typename T>
const_pointer lti::smallObjectList< T >::const_iterator::operator-> (  )  const [inline]

Returns a const_pointer to the current element.

template<typename T>
bool lti::smallObjectList< T >::const_iterator::operator== ( const const_iterator i  )  const [inline]

Returns true if both iterators are at the same position on the same list, false otherwise.


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

Generated on Sat Apr 10 15:28:44 2010 for LTI-Lib by Doxygen 1.6.1