Zth (libzth)
Loading...
Searching...
No Matches
zth::List< T >::Iterator< cyclic > Class Template 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
 
template<bool C>
bool operator== (Iterator< C > const &rhs) const noexcept
 
template<bool C>
bool operator!= (Iterator< C > 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
 
user_type const & user () const noexcept
 
user_typeuser () noexcept
 

Detailed Description

template<typename T = Listable>
template<bool cyclic>
class zth::List< T >::Iterator< cyclic >

Definition at line 99 of file list.h.

Constructor & Destructor Documentation

◆ Iterator()

template<typename T = Listable>
template<bool cyclic>
constexpr zth::List< T >::Iterator< cyclic >::Iterator ( elem_type start,
elem_type current = nullptr 
)
inlineexplicitconstexprnoexcept

Definition at line 101 of file list.h.

Member Function Documentation

◆ atBegin()

template<typename T = Listable>
template<bool cyclic>
bool zth::List< T >::Iterator< cyclic >::atBegin ( ) const
inlinenoexcept

Definition at line 106 of file list.h.

◆ atEnd()

template<typename T = Listable>
template<bool cyclic>
bool zth::List< T >::Iterator< cyclic >::atEnd ( ) const
inlinenoexcept

Definition at line 111 of file list.h.

◆ get()

template<typename T = Listable>
template<bool cyclic>
elem_type * zth::List< T >::Iterator< cyclic >::get ( ) const
inlinenoexcept

Definition at line 116 of file list.h.

◆ next()

template<typename T = Listable>
template<bool cyclic>
void zth::List< T >::Iterator< cyclic >::next ( )
inlinenoexcept

Definition at line 138 of file list.h.

◆ operator!=()

template<typename T = Listable>
template<bool cyclic>
template<bool C>
bool zth::List< T >::Iterator< cyclic >::operator!= ( Iterator< C > const &  rhs) const
inlinenoexcept

Definition at line 133 of file list.h.

◆ operator*()

template<typename T = Listable>
template<bool cyclic>
type & zth::List< T >::Iterator< cyclic >::operator* ( ) const
inlinenoexcept

Definition at line 178 of file list.h.

◆ operator++() [1/2]

template<typename T = Listable>
template<bool cyclic>
Iterator & zth::List< T >::Iterator< cyclic >::operator++ ( )
inlinenoexcept

Definition at line 152 of file list.h.

◆ operator++() [2/2]

template<typename T = Listable>
template<bool cyclic>
Iterator zth::List< T >::Iterator< cyclic >::operator++ ( int  )
inlinenoexcept

Definition at line 158 of file list.h.

◆ operator--() [1/2]

template<typename T = Listable>
template<bool cyclic>
Iterator & zth::List< T >::Iterator< cyclic >::operator-- ( )
inlinenoexcept

Definition at line 165 of file list.h.

◆ operator--() [2/2]

template<typename T = Listable>
template<bool cyclic>
Iterator zth::List< T >::Iterator< cyclic >::operator-- ( int  )
inlinenoexcept

Definition at line 171 of file list.h.

◆ operator->()

template<typename T = Listable>
template<bool cyclic>
type * zth::List< T >::Iterator< cyclic >::operator-> ( ) const
inlinenoexcept

Definition at line 186 of file list.h.

◆ operator==()

template<typename T = Listable>
template<bool cyclic>
template<bool C>
bool zth::List< T >::Iterator< cyclic >::operator== ( Iterator< C > const &  rhs) const
inlinenoexcept

Definition at line 123 of file list.h.

◆ prev()

template<typename T = Listable>
template<bool cyclic>
void zth::List< T >::Iterator< cyclic >::prev ( )
inlinenoexcept

Definition at line 145 of file list.h.

◆ user() [1/2]

template<typename T = Listable>
template<bool cyclic>
user_type const & zth::List< T >::Iterator< cyclic >::user ( ) const
inlinenoexcept

Definition at line 191 of file list.h.

◆ user() [2/2]

template<typename T = Listable>
template<bool cyclic>
user_type & zth::List< T >::Iterator< cyclic >::user ( )
inlinenoexcept

Definition at line 199 of file list.h.


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