CoreComponents 4.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
AppendListIterator< T > Class Template Reference

Value iterator type for the AppendList. More...

#include <cc/AppendList>

Public Types

using iterator_category = std::forward_iterator_tag
using value_type = T
using difference_type = unsigned
using pointer = T *
using reference = T &
using Node = AppendListNode<T>

Public Member Functions

 AppendListIterator ()
 Create a null iterator.
 operator bool () const
 Check if this is a null iterator (explicitly cast to bool).
const T & operator* () const
 Get readonly access to current item value.
T & operator* ()
 Get access to current item value.
const T * operator-> () const
 Readonly member access to current item value.
T * operator-> ()
 Member access to current item value.
AppendListIteratoroperator++ ()
 Step to the next item (prefix increment operator).
AppendListIterator operator++ (int)
 Step to the next item and return the old iterator value (postfix increment operator).
AppendListIterator operator+ (unsigned delta) const
 Get iterator value stepped delta items forward (addition operator).
bool operator== (const AppendListIterator &other) const
 Equal to operator.
bool operator!= (const AppendListIterator &other) const
 Not equal to operator.

Detailed Description

template<class T>
class cc::AppendListIterator< T >

Value iterator type for the AppendList.

Constructor & Destructor Documentation

◆ AppendListIterator()

template<class T>
AppendListIterator ( )

Create a null iterator.

Member Function Documentation

◆ operator bool()

template<class T>
operator bool ( ) const
explicit

Check if this is a null iterator (explicitly cast to bool).

◆ operator*() [1/2]

template<class T>
const T & operator* ( ) const

Get readonly access to current item value.

◆ operator*() [2/2]

template<class T>
T & operator* ( )

Get access to current item value.

◆ operator->() [1/2]

template<class T>
const T * operator-> ( ) const

Readonly member access to current item value.

◆ operator->() [2/2]

template<class T>
T * operator-> ( )

Member access to current item value.

◆ operator++() [1/2]

template<class T>
AppendListIterator & operator++ ( )

Step to the next item (prefix increment operator).

◆ operator++() [2/2]

template<class T>
AppendListIterator operator++ ( int )

Step to the next item and return the old iterator value (postfix increment operator).

◆ operator+()

template<class T>
AppendListIterator operator+ ( unsigned delta) const

Get iterator value stepped delta items forward (addition operator).

◆ operator==()

template<class T>
bool operator== ( const AppendListIterator< T > & other) const

Equal to operator.

◆ operator!=()

template<class T>
bool operator!= ( const AppendListIterator< T > & other) const

Not equal to operator.