Nebula
Loading...
Searching...
No Matches
Util::List< TYPE >::Iterator Class Reference

#include <list.h>

Detailed Description

template<class TYPE>
class Util::List< TYPE >::Iterator

the list iterator

Public Member Functions

 Iterator ()
 default constructor
 
 Iterator (Node *node)
 constructor
 
 Iterator (const Iterator &rhs)
 copy constructor
 
const Iteratoroperator= (const Iterator &rhs)
 assignment operator
 
bool operator== (const Iterator &rhs) const
 equality operator
 
bool operator!= (const Iterator &rhs) const
 inequality operator
 
const Iteratoroperator++ ()
 pre-increment operator
 
Iterator operator++ (int)
 post-increment operator
 
const Iteratoroperator-- ()
 pre-decrement operator
 
Iterator operator-- (int)
 post-increment operator
 
 operator bool () const
 bool operator
 
TYPE * operator-> () const
 safe -> operator
 
TYPE & operator* () const
 safe dereference operator
 

Private Member Functions

NodeGetNode () const
 access to node
 

Private Attributes

Nodenode
 

Friends

class List< TYPE >
 

Constructor & Destructor Documentation

◆ Iterator() [1/3]

template<class TYPE >
Util::List< TYPE >::Iterator::Iterator ( )

default constructor

◆ Iterator() [2/3]

template<class TYPE >
Util::List< TYPE >::Iterator::Iterator ( Node * node)

constructor

◆ Iterator() [3/3]

template<class TYPE >
Util::List< TYPE >::Iterator::Iterator ( const Iterator & rhs)

copy constructor

Member Function Documentation

◆ GetNode()

template<class TYPE >
List< TYPE >::Node * Util::List< TYPE >::Iterator::GetNode ( ) const
private

access to node

◆ operator bool()

template<class TYPE >
Util::List< TYPE >::Iterator::operator bool ( ) const

bool operator

◆ operator!=()

template<class TYPE >
bool Util::List< TYPE >::Iterator::operator!= ( const Iterator & rhs) const

inequality operator

◆ operator*()

template<class TYPE >
TYPE & Util::List< TYPE >::Iterator::operator* ( ) const

safe dereference operator

◆ operator++() [1/2]

template<class TYPE >
const List< TYPE >::Iterator & Util::List< TYPE >::Iterator::operator++ ( )

pre-increment operator

◆ operator++() [2/2]

template<class TYPE >
List< TYPE >::Iterator Util::List< TYPE >::Iterator::operator++ ( int )

post-increment operator

◆ operator--() [1/2]

template<class TYPE >
const List< TYPE >::Iterator & Util::List< TYPE >::Iterator::operator-- ( )

pre-decrement operator

◆ operator--() [2/2]

template<class TYPE >
List< TYPE >::Iterator Util::List< TYPE >::Iterator::operator-- ( int )

post-increment operator

◆ operator->()

template<class TYPE >
TYPE * Util::List< TYPE >::Iterator::operator-> ( ) const

safe -> operator

◆ operator=()

template<class TYPE >
const List< TYPE >::Iterator & Util::List< TYPE >::Iterator::operator= ( const Iterator & rhs)

assignment operator

◆ operator==()

template<class TYPE >
bool Util::List< TYPE >::Iterator::operator== ( const Iterator & rhs) const

equality operator

Friends And Related Symbol Documentation

◆ List< TYPE >

template<class TYPE >
friend class List< TYPE >
friend

Member Data Documentation

◆ node

template<class TYPE >
Node* Util::List< TYPE >::Iterator::node
private

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