arsa  2.7
Public Member Functions | Friends | List of all members
irr::core::map< KeyType, ValueType >::ConstIterator Class Reference

Const Iterator. More...

#include <irrMap.h>

Public Member Functions

 ConstIterator ()
 
 ConstIterator (const Node *root)
 
 ConstIterator (const ConstIterator &src)
 
 ConstIterator (const Iterator &src)
 
void reset (bool atLowest=true)
 
bool atEnd () const
 
const NodegetNode () const
 
ConstIteratoroperator= (const ConstIterator &src)
 
void operator++ (int)
 
void operator-- (int)
 
const Nodeoperator-> ()
 
const Nodeoperator * ()
 

Friends

class Iterator
 

Detailed Description

template<class KeyType, class ValueType>
class irr::core::map< KeyType, ValueType >::ConstIterator

Const Iterator.

Definition at line 277 of file irrMap.h.

Constructor & Destructor Documentation

◆ ConstIterator() [1/4]

template<class KeyType, class ValueType>
irr::core::map< KeyType, ValueType >::ConstIterator::ConstIterator ( )
inline

Definition at line 282 of file irrMap.h.

282 : Root(0), Cur(0) {}

◆ ConstIterator() [2/4]

template<class KeyType, class ValueType>
irr::core::map< KeyType, ValueType >::ConstIterator::ConstIterator ( const Node root)
inline

Definition at line 285 of file irrMap.h.

285  : Root(root)
286  {
287  reset();
288  }
void reset(bool atLowest=true)
Definition: irrMap.h:294

◆ ConstIterator() [3/4]

template<class KeyType, class ValueType>
irr::core::map< KeyType, ValueType >::ConstIterator::ConstIterator ( const ConstIterator src)
inline

Definition at line 291 of file irrMap.h.

291 : Root(src.Root), Cur(src.Cur) {}
GLenum src

◆ ConstIterator() [4/4]

template<class KeyType, class ValueType>
irr::core::map< KeyType, ValueType >::ConstIterator::ConstIterator ( const Iterator src)
inline

Definition at line 292 of file irrMap.h.

292 : Root(src.Root), Cur(src.Cur) {}
GLenum src

Member Function Documentation

◆ atEnd()

template<class KeyType, class ValueType>
bool irr::core::map< KeyType, ValueType >::ConstIterator::atEnd ( ) const
inline

Definition at line 302 of file irrMap.h.

303  {
304  return Cur==0;
305  }

◆ getNode()

template<class KeyType, class ValueType>
const Node* irr::core::map< KeyType, ValueType >::ConstIterator::getNode ( ) const
inline

Definition at line 307 of file irrMap.h.

308  {
309  return Cur;
310  }

◆ operator *()

template<class KeyType, class ValueType>
const Node& irr::core::map< KeyType, ValueType >::ConstIterator::operator * ( )
inline

Definition at line 334 of file irrMap.h.

335  {
336  _IRR_DEBUG_BREAK_IF(atEnd()) // access violation
337 
338  return *Cur;
339  }
#define _IRR_DEBUG_BREAK_IF(_CONDITION_)
define a break macro for debugging.
Definition: irrTypes.h:185

◆ operator++()

template<class KeyType, class ValueType>
void irr::core::map< KeyType, ValueType >::ConstIterator::operator++ ( int  )
inline

Definition at line 319 of file irrMap.h.

320  {
321  inc();
322  }

◆ operator--()

template<class KeyType, class ValueType>
void irr::core::map< KeyType, ValueType >::ConstIterator::operator-- ( int  )
inline

Definition at line 324 of file irrMap.h.

325  {
326  dec();
327  }

◆ operator->()

template<class KeyType, class ValueType>
const Node* irr::core::map< KeyType, ValueType >::ConstIterator::operator-> ( )
inline

Definition at line 329 of file irrMap.h.

330  {
331  return getNode();
332  }
const Node * getNode() const
Definition: irrMap.h:307

◆ operator=()

template<class KeyType, class ValueType>
ConstIterator& irr::core::map< KeyType, ValueType >::ConstIterator::operator= ( const ConstIterator src)
inline

Definition at line 312 of file irrMap.h.

313  {
314  Root = src.Root;
315  Cur = src.Cur;
316  return (*this);
317  }
GLenum src

◆ reset()

template<class KeyType, class ValueType>
void irr::core::map< KeyType, ValueType >::ConstIterator::reset ( bool  atLowest = true)
inline

Definition at line 294 of file irrMap.h.

295  {
296  if (atLowest)
297  Cur = getMin(Root);
298  else
299  Cur = getMax(Root);
300  }

Friends And Related Function Documentation

◆ Iterator

template<class KeyType, class ValueType>
friend class Iterator
friend

Definition at line 279 of file irrMap.h.


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