nux-0.9.48

NListNoDyn< T >::DIterator Class Reference

Iterator is used to access a double linked list. More...

#include <NuxCore/DataStruct/NList.h>

Public Member Functions

 DIterator (NListNoDyn &List)
 The only Constructor available accept a SRoot as parameter.
DIteratoroperator-- ()
DIterator operator-- (int)
DIteratoroperator-= (int cnt)
DIteratoroperator++ ()
DIterator operator++ (int)
DIteratoroperator+= (int cnt)
bool operator== (const DIterator &Other) const
bool FindForward (const T &ToFind)
bool FindReverse (const T &ToFind)
T * RemoveCurrent (void)
 Removed the current element pointed by the Iterator internal index from the double linked list.
void Begin (void)
void End (void)
bool Empty (void) const
T * operator* (void) const
T * Current (void) const

Data Fields

NListNoDynm_pList
T * m_pIndex

Detailed Description

template<typename T>
class NListNoDyn< T >::DIterator

Iterator is used to access a double linked list.

An Iterator is always created from a root double linked list. By default, it internal index will always point on the first element of the double linked list (the head).


Constructor & Destructor Documentation

template<typename T >
NListNoDyn< T >::DIterator::DIterator ( NListNoDyn List) [inline]

The only Constructor available accept a SRoot as parameter.

References NListNoDyn< T >::DIterator::Begin(), and NListNoDyn< T >::DIterator::m_pList.


Member Function Documentation

template<typename T >
void NListNoDyn< T >::DIterator::Begin ( void  ) [inline]
template<typename T >
T* NListNoDyn< T >::DIterator::Current ( void  ) const [inline]
template<typename T >
bool NListNoDyn< T >::DIterator::Empty ( void  ) const [inline]
template<typename T >
void NListNoDyn< T >::DIterator::End ( void  ) [inline]
template<typename T >
bool NListNoDyn< T >::DIterator::FindForward ( const T &  ToFind) [inline]
template<typename T >
bool NListNoDyn< T >::DIterator::FindReverse ( const T &  ToFind) [inline]
template<typename T >
T* NListNoDyn< T >::DIterator::operator* ( void  ) const [inline]
template<typename T >
DIterator& NListNoDyn< T >::DIterator::operator++ ( ) [inline]
template<typename T >
DIterator NListNoDyn< T >::DIterator::operator++ ( int  ) [inline]
template<typename T >
DIterator& NListNoDyn< T >::DIterator::operator+= ( int  cnt) [inline]
template<typename T >
DIterator NListNoDyn< T >::DIterator::operator-- ( int  ) [inline]
template<typename T >
DIterator& NListNoDyn< T >::DIterator::operator-- ( ) [inline]
template<typename T >
DIterator& NListNoDyn< T >::DIterator::operator-= ( int  cnt) [inline]
template<typename T >
bool NListNoDyn< T >::DIterator::operator== ( const DIterator Other) const [inline]
template<typename T >
T* NListNoDyn< T >::DIterator::RemoveCurrent ( void  ) [inline]

Removed the current element pointed by the Iterator internal index from the double linked list.

The function will assert if there is no current element (Current() returns null or Empty() returns true).

Returns:
Returns a pointer on the removed element
See also:
Current(), Empty()

References NListNoDyn< T >::DIterator::m_pIndex, NListNoDyn< T >::DIterator::m_pList, and nuxAssert.


Field Documentation


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