RADLib
RADical C++ application framework
RADData::RADList< T, Alloc >::iterator Class Reference

Mutable bidirectional iterator. More...

#include <RADDataStructures.h>

Public Member Functions

 iterator (Node *node)
 Creates an iterator from an internal node. More...
 
T & operator* () const
 Returns current element. More...
 
T * operator-> () const
 Returns current element pointer. More...
 
iteratoroperator++ ()
 Advances to next node. More...
 
iteratoroperator-- ()
 Moves to previous node. More...
 
bool operator!= (const iterator &other) const
 Compares iterator inequality. More...
 
bool operator== (const iterator &other) const
 Compares iterator equality. More...
 

Friends

class RADList
 

Detailed Description

template<typename T, typename Alloc = std::allocator<T>>
class RADData::RADList< T, Alloc >::iterator

Mutable bidirectional iterator.

Constructor & Destructor Documentation

◆ iterator()

template<typename T , typename Alloc = std::allocator<T>>
RADData::RADList< T, Alloc >::iterator::iterator ( Node *  node)
inline

Creates an iterator from an internal node.

Member Function Documentation

◆ operator!=()

template<typename T , typename Alloc = std::allocator<T>>
bool RADData::RADList< T, Alloc >::iterator::operator!= ( const iterator other) const
inline

Compares iterator inequality.

◆ operator*()

template<typename T , typename Alloc = std::allocator<T>>
T& RADData::RADList< T, Alloc >::iterator::operator* ( ) const
inline

Returns current element.

◆ operator++()

template<typename T , typename Alloc = std::allocator<T>>
iterator& RADData::RADList< T, Alloc >::iterator::operator++ ( )
inline

Advances to next node.

◆ operator--()

template<typename T , typename Alloc = std::allocator<T>>
iterator& RADData::RADList< T, Alloc >::iterator::operator-- ( )
inline

Moves to previous node.

◆ operator->()

template<typename T , typename Alloc = std::allocator<T>>
T* RADData::RADList< T, Alloc >::iterator::operator-> ( ) const
inline

Returns current element pointer.

◆ operator==()

template<typename T , typename Alloc = std::allocator<T>>
bool RADData::RADList< T, Alloc >::iterator::operator== ( const iterator other) const
inline

Compares iterator equality.

Friends And Related Function Documentation

◆ RADList

template<typename T , typename Alloc = std::allocator<T>>
friend class RADList
friend

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