arsa  2.7
Public Member Functions | Friends | List of all members
irr::core::list< T >::ConstIterator Class Reference

List iterator for const access. More...

#include <irrList.h>

Public Member Functions

 ConstIterator ()
 
 ConstIterator (const Iterator &iter)
 
ConstIteratoroperator++ ()
 
ConstIteratoroperator -- ()
 
ConstIterator operator++ (s32)
 
ConstIterator operator -- (s32)
 
ConstIteratoroperator+= (s32 num)
 
ConstIterator operator+ (s32 num) const
 
ConstIteratoroperator -= (s32 num)
 
ConstIterator operator - (s32 num) const
 
bool operator== (const ConstIterator &other) const
 
bool operator != (const ConstIterator &other) const
 
bool operator== (const Iterator &other) const
 
bool operator != (const Iterator &other) const
 
const T & operator * ()
 
const T * operator -> ()
 
ConstIteratoroperator= (const Iterator &iterator)
 

Friends

class Iterator
 
class list< T >
 

Detailed Description

template<class T>
class irr::core::list< T >::ConstIterator

List iterator for const access.

Definition at line 83 of file irrList.h.

Constructor & Destructor Documentation

◆ ConstIterator() [1/2]

template<class T>
irr::core::list< T >::ConstIterator::ConstIterator ( )
inline

Definition at line 87 of file irrList.h.

87 : Current(0) {}

◆ ConstIterator() [2/2]

template<class T>
irr::core::list< T >::ConstIterator::ConstIterator ( const Iterator iter)
inline

Definition at line 88 of file irrList.h.

88 : Current(iter.Current) {}

Member Function Documentation

◆ operator !=() [1/2]

template<class T>
bool irr::core::list< T >::ConstIterator::operator != ( const ConstIterator other) const
inline

Definition at line 113 of file irrList.h.

113 { return Current != other.Current; }

◆ operator !=() [2/2]

template<class T>
bool irr::core::list< T >::ConstIterator::operator != ( const Iterator other) const
inline

Definition at line 115 of file irrList.h.

115 { return Current != other.Current; }

◆ operator *()

template<class T>
const T& irr::core::list< T >::ConstIterator::operator * ( )
inline

Definition at line 117 of file irrList.h.

117 { return Current->Element; }

◆ operator -()

template<class T>
ConstIterator irr::core::list< T >::ConstIterator::operator - ( s32  num) const
inline

Definition at line 110 of file irrList.h.

110 { return (*this)+ (-num); }
GLuint num

◆ operator --() [1/2]

template<class T>
ConstIterator& irr::core::list< T >::ConstIterator::operator -- ( )
inline

Definition at line 91 of file irrList.h.

91 { Current = Current->Prev; return *this; }

◆ operator --() [2/2]

template<class T>
ConstIterator irr::core::list< T >::ConstIterator::operator -- ( s32  )
inline

Definition at line 93 of file irrList.h.

93 { ConstIterator tmp = *this; Current = Current->Prev; return tmp; }

◆ operator -=()

template<class T>
ConstIterator& irr::core::list< T >::ConstIterator::operator -= ( s32  num)
inline

Definition at line 109 of file irrList.h.

109 { return (*this)+=(-num); }
GLuint num

◆ operator ->()

template<class T>
const T* irr::core::list< T >::ConstIterator::operator -> ( )
inline

Definition at line 118 of file irrList.h.

118 { return &Current->Element; }

◆ operator+()

template<class T>
ConstIterator irr::core::list< T >::ConstIterator::operator+ ( s32  num) const
inline

Definition at line 108 of file irrList.h.

108 { ConstIterator tmp = *this; return tmp += num; }
GLuint num

◆ operator++() [1/2]

template<class T>
ConstIterator& irr::core::list< T >::ConstIterator::operator++ ( )
inline

Definition at line 90 of file irrList.h.

90 { Current = Current->Next; return *this; }

◆ operator++() [2/2]

template<class T>
ConstIterator irr::core::list< T >::ConstIterator::operator++ ( s32  )
inline

Definition at line 92 of file irrList.h.

92 { ConstIterator tmp = *this; Current = Current->Next; return tmp; }

◆ operator+=()

template<class T>
ConstIterator& irr::core::list< T >::ConstIterator::operator+= ( s32  num)
inline

Definition at line 95 of file irrList.h.

96  {
97  if(num > 0)
98  {
99  while(num-- && this->Current != 0) ++(*this);
100  }
101  else
102  {
103  while(num++ && this->Current != 0) --(*this);
104  }
105  return *this;
106  }
GLuint num

◆ operator=()

template<class T>
ConstIterator& irr::core::list< T >::ConstIterator::operator= ( const Iterator iterator)
inline

Definition at line 120 of file irrList.h.

120 { Current = iterator.Current; return *this; }

◆ operator==() [1/2]

template<class T>
bool irr::core::list< T >::ConstIterator::operator== ( const ConstIterator other) const
inline

Definition at line 112 of file irrList.h.

112 { return Current == other.Current; }

◆ operator==() [2/2]

template<class T>
bool irr::core::list< T >::ConstIterator::operator== ( const Iterator other) const
inline

Definition at line 114 of file irrList.h.

114 { return Current == other.Current; }

Friends And Related Function Documentation

◆ Iterator

template<class T>
friend class Iterator
friend

Definition at line 127 of file irrList.h.

◆ list< T >

template<class T>
friend class list< T >
friend

Definition at line 128 of file irrList.h.


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