Zth (libzth)
Loading...
Searching...
No Matches
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 211 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 213 of file list.h.

Member Function Documentation

◆ atBegin()

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

Definition at line 218 of file list.h.

◆ atEnd()

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

Definition at line 223 of file list.h.

◆ get()

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

Definition at line 228 of file list.h.

◆ next()

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

Definition at line 243 of file list.h.

◆ operator!=()

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

Definition at line 238 of file list.h.

◆ operator*()

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

Definition at line 282 of file list.h.

◆ operator++() [1/2]

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

Definition at line 256 of file list.h.

◆ operator++() [2/2]

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

Definition at line 262 of file list.h.

◆ operator--() [1/2]

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

Definition at line 269 of file list.h.

◆ operator--() [2/2]

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

Definition at line 275 of file list.h.

◆ operator->()

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

Definition at line 290 of file list.h.

◆ operator==()

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

Definition at line 233 of file list.h.

◆ prev()

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

Definition at line 249 of file list.h.


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