Zth (libzth)
zth::List< T >::iterator Class Reference

#include <list.h>

Public Member Functions

constexpr iterator (elem_type *start, elem_type *current=nullptr) noexcept
 
bool atBegin () const noexcept
 
bool atEnd () const noexcept
 
elem_typeget () const noexcept
 
bool operator== (iterator const &rhs) const noexcept
 
bool operator!= (iterator const &rhs) const noexcept
 
void next () noexcept
 
void prev () noexcept
 
iteratoroperator++ () noexcept
 
iterator operator++ (int) noexcept
 
iteratoroperator-- () noexcept
 
iterator operator-- (int) noexcept
 
typeoperator* () const noexcept
 
typeoperator-> () const noexcept
 

Detailed Description

template<typename T>
class zth::List< T >::iterator

Definition at line 212 of file list.h.

Constructor & Destructor Documentation

◆ iterator()

template<typename T >
constexpr zth::List< T >::iterator::iterator ( elem_type start,
elem_type current = nullptr 
)
inlineexplicitconstexprnoexcept

Definition at line 214 of file list.h.

Member Function Documentation

◆ atBegin()

template<typename T >
bool zth::List< T >::iterator::atBegin ( ) const
inlinenoexcept

Definition at line 219 of file list.h.

◆ atEnd()

template<typename T >
bool zth::List< T >::iterator::atEnd ( ) const
inlinenoexcept

Definition at line 224 of file list.h.

◆ get()

template<typename T >
elem_type* zth::List< T >::iterator::get ( ) const
inlinenoexcept

Definition at line 229 of file list.h.

◆ next()

template<typename T >
void zth::List< T >::iterator::next ( )
inlinenoexcept

Definition at line 244 of file list.h.

◆ operator!=()

template<typename T >
bool zth::List< T >::iterator::operator!= ( iterator const &  rhs) const
inlinenoexcept

Definition at line 239 of file list.h.

◆ operator*()

template<typename T >
type& zth::List< T >::iterator::operator* ( ) const
inlinenoexcept

Definition at line 283 of file list.h.

◆ operator++() [1/2]

template<typename T >
iterator& zth::List< T >::iterator::operator++ ( )
inlinenoexcept

Definition at line 257 of file list.h.

◆ operator++() [2/2]

template<typename T >
iterator zth::List< T >::iterator::operator++ ( int  )
inlinenoexcept

Definition at line 263 of file list.h.

◆ operator--() [1/2]

template<typename T >
iterator& zth::List< T >::iterator::operator-- ( )
inlinenoexcept

Definition at line 270 of file list.h.

◆ operator--() [2/2]

template<typename T >
iterator zth::List< T >::iterator::operator-- ( int  )
inlinenoexcept

Definition at line 276 of file list.h.

◆ operator->()

template<typename T >
type* zth::List< T >::iterator::operator-> ( ) const
inlinenoexcept

Definition at line 291 of file list.h.

◆ operator==()

template<typename T >
bool zth::List< T >::iterator::operator== ( iterator const &  rhs) const
inlinenoexcept

Definition at line 234 of file list.h.

◆ prev()

template<typename T >
void zth::List< T >::iterator::prev ( )
inlinenoexcept

Definition at line 250 of file list.h.


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