OpenNI 1.5.4: XnListT< T, TAlloc >::ConstIterator Class Reference

OpenNI

XnListT< T, TAlloc >::ConstIterator Class Reference

#include <XnListT.h>

Inheritance diagram for XnListT< T, TAlloc >::ConstIterator:

List of all members.

Public Member Functions

 ConstIterator ()
 ConstIterator (LinkedNode *pNode)
 ConstIterator (const ConstIterator &other)
ConstIteratoroperator++ ()
ConstIterator operator++ (int)
ConstIteratoroperator-- ()
ConstIterator operator-- (int)
XnBool operator== (const ConstIterator &other) const
XnBool operator!= (const ConstIterator &other) const
T const & operator* () const
T const * operator-> () const

Protected Attributes

LinkedNodem_pCurrent

Friends

class XnListT

Detailed Description

template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
class XnListT< T, TAlloc >::ConstIterator

An iterator for iterating the list without modifying values.


Constructor & Destructor Documentation

template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
XnListT< T, TAlloc >::ConstIterator::ConstIterator ( ) [inline]
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
XnListT< T, TAlloc >::ConstIterator::ConstIterator ( LinkedNode pNode) [inline]
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
XnListT< T, TAlloc >::ConstIterator::ConstIterator ( const ConstIterator other) [inline]

Member Function Documentation

template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
XnBool XnListT< T, TAlloc >::ConstIterator::operator!= ( const ConstIterator other) const [inline]

Operator to check if two iterators point to different objects

Parameters:
other[in] instance to compare with
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
T const& XnListT< T, TAlloc >::ConstIterator::operator* ( ) const [inline]

Get the value of the current object (const version)

Reimplemented in XnListT< T, TAlloc >::Iterator.

template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
ConstIterator& XnListT< T, TAlloc >::ConstIterator::operator++ ( ) [inline]

Support ++iterator, go to the next object in the list

Reimplemented in XnListT< T, TAlloc >::Iterator.

template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
ConstIterator XnListT< T, TAlloc >::ConstIterator::operator++ ( int  ) [inline]

Support iterator++, go to the next object in the list, returning the old value

Reimplemented in XnListT< T, TAlloc >::Iterator.

template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
ConstIterator& XnListT< T, TAlloc >::ConstIterator::operator-- ( ) [inline]

Support --iterator, go to the next object in the list

Reimplemented in XnListT< T, TAlloc >::Iterator.

template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
ConstIterator XnListT< T, TAlloc >::ConstIterator::operator-- ( int  ) [inline]

Support iterator--, go to the next object in the list, returning the old value

Reimplemented in XnListT< T, TAlloc >::Iterator.

template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
T const* XnListT< T, TAlloc >::ConstIterator::operator-> ( ) const [inline]

Get a pointer to the value of the current object (const version)

Reimplemented in XnListT< T, TAlloc >::Iterator.

template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
XnBool XnListT< T, TAlloc >::ConstIterator::operator== ( const ConstIterator other) const [inline]

Operator to check if two iterators point to the same object

Parameters:
other[in] instance to compare with

Friends And Related Function Documentation

template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
friend class XnListT [friend]

Member Data Documentation

template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
LinkedNode* XnListT< T, TAlloc >::ConstIterator::m_pCurrent [protected]

The current XnNode


The documentation for this class was generated from the following file:
Generated on Wed May 16 2012 10:16:06 for OpenNI 1.5.4 by   doxygen 1.7.5.1