CppCommon  1.0.4.1
C++ Common Library
Public Types | Public Member Functions | Friends | List of all members
CppCommon::ListConstReverseIterator< T > Class Template Reference

Intrusive list constant reverse 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

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

Friends

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

Detailed Description

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

Intrusive list constant reverse iterator.

Not thread-safe.

Definition at line 455 of file list.h.

Member Typedef Documentation

◆ const_pointer

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

Definition at line 463 of file list.h.

◆ const_reference

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

Definition at line 461 of file list.h.

◆ difference_type

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

Definition at line 464 of file list.h.

◆ iterator_category

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

Definition at line 466 of file list.h.

◆ pointer

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

Definition at line 462 of file list.h.

◆ reference

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

Definition at line 460 of file list.h.

◆ size_type

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

Definition at line 465 of file list.h.

◆ value_type

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

Definition at line 459 of file list.h.

Constructor & Destructor Documentation

◆ ListConstReverseIterator() [1/5]

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

Definition at line 468 of file list.h.

◆ ListConstReverseIterator() [2/5]

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

Definition at line 469 of file list.h.

◆ ListConstReverseIterator() [3/5]

template<typename T >
CppCommon::ListConstReverseIterator< T >::ListConstReverseIterator ( const ListReverseIterator< T > &  it)
inlinenoexcept

Definition at line 470 of file list.h.

◆ ListConstReverseIterator() [4/5]

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

◆ ListConstReverseIterator() [5/5]

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

◆ ~ListConstReverseIterator()

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

Member Function Documentation

◆ operator bool()

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

Check if the iterator is valid.

Definition at line 492 of file list.h.

◆ operator*()

template<typename T >
ListConstReverseIterator< T >::const_reference CppCommon::ListConstReverseIterator< T >::operator*
noexcept

Definition at line 421 of file list.inl.

◆ operator++() [1/2]

template<typename T >
ListConstReverseIterator< T > & CppCommon::ListConstReverseIterator< T >::operator++
noexcept

Definition at line 405 of file list.inl.

◆ operator++() [2/2]

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

Definition at line 413 of file list.inl.

◆ operator->()

template<typename T >
ListConstReverseIterator< T >::const_pointer CppCommon::ListConstReverseIterator< T >::operator->
noexcept

Definition at line 429 of file list.inl.

◆ operator=() [1/3]

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

◆ operator=() [2/3]

template<typename T >
ListConstReverseIterator& CppCommon::ListConstReverseIterator< T >::operator= ( const ListReverseIterator< T > &  it)
inlinenoexcept

Definition at line 475 of file list.h.

◆ operator=() [3/3]

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

◆ swap()

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

Swap two instances.

Definition at line 435 of file list.inl.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 482 of file list.h.

◆ operator==

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

Definition at line 480 of file list.h.

◆ swap

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

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