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

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

iterator class (allows read and write 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 >::iterator:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
std::bidirectional_iterator_tag 
iterator_category

Public Member Functions

 iterator ()
 iterator (const iterator &i)
bool operator== (const iterator &i) const
bool operator!= (const iterator &i) const
reference operator* () const
reference operator* (T obj) const
pointer operator-> () const
iteratoroperator++ ()
iterator operator++ (int)
iteratoroperator-- ()
iterator operator-- (int)

Protected Member Functions

 iterator (smallObjectList *l, node *p)

Detailed Description

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

iterator class (allows read and write 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 >::iterator::iterator_category

Iterator traits.

These are required by the algorithms of the STL.


Constructor & Destructor Documentation

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

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

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

Creates an uninitialized iterator.

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

Copy constructor.

Creates a copy of the given iterator.


Member Function Documentation

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

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

template<typename T>
reference lti::smallObjectList< T >::iterator::operator* ( obj  )  const [inline]

Overwrites the current element with the given element.

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

Returns a reference to the current element.

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

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

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

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

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

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

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

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

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

Returns a pointer to the current element.

template<typename T>
bool lti::smallObjectList< T >::iterator::operator== ( 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