CppCommon 1.0.6.0
C++ Common Library
Loading...
Searching...
No Matches
CppCommon::ListConstIterator< T > Class Template Reference

Intrusive list constant iterator. More...

#include <list.h>

Public Types

typedef T value_type
typedef value_typereference
typedef const value_typeconst_reference
typedef value_typepointer
typedef const value_typeconst_pointer
typedef ptrdiff_t difference_type
typedef size_t size_type
typedef std::bidirectional_iterator_tag iterator_category

Public Member Functions

 ListConstIterator () noexcept
 ListConstIterator (const T *node) noexcept
 ListConstIterator (const ListIterator< T > &it) noexcept
 ListConstIterator (const ListConstIterator &it) noexcept=default
 ListConstIterator (ListConstIterator &&it) noexcept=default
 ~ListConstIterator () noexcept=default
ListConstIteratoroperator= (const ListIterator< T > &it) noexcept
ListConstIteratoroperator= (const ListConstIterator &it) noexcept=default
ListConstIteratoroperator= (ListConstIterator &&it) noexcept=default
ListConstIteratoroperator++ () noexcept
ListConstIterator operator++ (int) noexcept
const_reference operator* () const noexcept
const_pointer operator-> () const noexcept
 operator bool () const noexcept
 Check if the iterator is valid.
void swap (ListConstIterator &it) noexcept
 Swap two instances.

Friends

bool operator== (const ListConstIterator &it1, const ListConstIterator &it2) noexcept
bool operator!= (const ListConstIterator &it1, const ListConstIterator &it2) noexcept
template<typename U>
void swap (ListConstIterator< U > &it1, ListConstIterator< U > &it2) noexcept

Detailed Description

template<typename T>
class CppCommon::ListConstIterator< T >

Intrusive list constant iterator.

Not thread-safe.

Definition at line 350 of file list.h.

Member Typedef Documentation

◆ const_pointer

template<typename T>
typedef const value_type* CppCommon::ListConstIterator< T >::const_pointer

Definition at line 358 of file list.h.

◆ const_reference

template<typename T>
typedef const value_type& CppCommon::ListConstIterator< T >::const_reference

Definition at line 356 of file list.h.

◆ difference_type

template<typename T>
typedef ptrdiff_t CppCommon::ListConstIterator< T >::difference_type

Definition at line 359 of file list.h.

◆ iterator_category

template<typename T>
typedef std::bidirectional_iterator_tag CppCommon::ListConstIterator< T >::iterator_category

Definition at line 361 of file list.h.

◆ pointer

template<typename T>
typedef value_type* CppCommon::ListConstIterator< T >::pointer

Definition at line 357 of file list.h.

◆ reference

template<typename T>
typedef value_type& CppCommon::ListConstIterator< T >::reference

Definition at line 355 of file list.h.

◆ size_type

template<typename T>
typedef size_t CppCommon::ListConstIterator< T >::size_type

Definition at line 360 of file list.h.

◆ value_type

template<typename T>
typedef T CppCommon::ListConstIterator< T >::value_type

Definition at line 354 of file list.h.

Constructor & Destructor Documentation

◆ ListConstIterator() [1/5]

template<typename T>
CppCommon::ListConstIterator< T >::ListConstIterator ( )
inlinenoexcept

Definition at line 363 of file list.h.

◆ ListConstIterator() [2/5]

template<typename T>
CppCommon::ListConstIterator< T >::ListConstIterator ( const T * node)
inlineexplicitnoexcept

Definition at line 364 of file list.h.

◆ ListConstIterator() [3/5]

template<typename T>
CppCommon::ListConstIterator< T >::ListConstIterator ( const ListIterator< T > & it)
inlinenoexcept

Definition at line 365 of file list.h.

◆ ListConstIterator() [4/5]

template<typename T>
CppCommon::ListConstIterator< T >::ListConstIterator ( const ListConstIterator< T > & it)
defaultnoexcept

◆ ListConstIterator() [5/5]

template<typename T>
CppCommon::ListConstIterator< T >::ListConstIterator ( ListConstIterator< T > && it)
defaultnoexcept

◆ ~ListConstIterator()

template<typename T>
CppCommon::ListConstIterator< T >::~ListConstIterator ( )
defaultnoexcept

Member Function Documentation

◆ operator bool()

template<typename T>
CppCommon::ListConstIterator< T >::operator bool ( ) const
inlineexplicitnoexcept

Check if the iterator is valid.

Definition at line 387 of file list.h.

◆ operator*()

template<typename T>
ListConstIterator< T >::const_reference CppCommon::ListConstIterator< T >::operator* ( ) const
noexcept

Definition at line 335 of file list.inl.

◆ operator++() [1/2]

template<typename T>
ListConstIterator< T > & CppCommon::ListConstIterator< T >::operator++ ( )
noexcept

Definition at line 319 of file list.inl.

◆ operator++() [2/2]

template<typename T>
ListConstIterator< T > CppCommon::ListConstIterator< T >::operator++ ( int )
inlinenoexcept

Definition at line 327 of file list.inl.

◆ operator->()

template<typename T>
ListConstIterator< T >::const_pointer CppCommon::ListConstIterator< T >::operator-> ( ) const
noexcept

Definition at line 343 of file list.inl.

◆ operator=() [1/3]

template<typename T>
ListConstIterator & CppCommon::ListConstIterator< T >::operator= ( const ListConstIterator< T > & it)
defaultnoexcept

◆ operator=() [2/3]

template<typename T>
ListConstIterator & CppCommon::ListConstIterator< T >::operator= ( const ListIterator< T > & it)
inlinenoexcept

Definition at line 370 of file list.h.

◆ operator=() [3/3]

template<typename T>
ListConstIterator & CppCommon::ListConstIterator< T >::operator= ( ListConstIterator< T > && it)
defaultnoexcept

◆ swap()

template<typename T>
void CppCommon::ListConstIterator< T >::swap ( ListConstIterator< T > & it)
noexcept

Swap two instances.

Definition at line 349 of file list.inl.

◆ operator!=

template<typename T>
bool operator!= ( const ListConstIterator< T > & it1,
const ListConstIterator< T > & it2 )
friend

Definition at line 377 of file list.h.

◆ operator==

template<typename T>
bool operator== ( const ListConstIterator< T > & it1,
const ListConstIterator< T > & it2 )
friend

Definition at line 375 of file list.h.

◆ swap

template<typename T>
template<typename U>
void swap ( ListConstIterator< U > & it1,
ListConstIterator< U > & it2 )
friend

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