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

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

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

Friends

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

Detailed Description

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

Intrusive list reverse iterator.

Not thread-safe.

Definition at line 403 of file list.h.

Member Typedef Documentation

◆ const_pointer

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

Definition at line 413 of file list.h.

◆ const_reference

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

Definition at line 411 of file list.h.

◆ difference_type

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

Definition at line 414 of file list.h.

◆ iterator_category

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

Definition at line 416 of file list.h.

◆ pointer

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

Definition at line 412 of file list.h.

◆ reference

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

Definition at line 410 of file list.h.

◆ size_type

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

Definition at line 415 of file list.h.

◆ value_type

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

Definition at line 409 of file list.h.

Constructor & Destructor Documentation

◆ ListReverseIterator() [1/4]

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

Definition at line 418 of file list.h.

◆ ListReverseIterator() [2/4]

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

Definition at line 419 of file list.h.

◆ ListReverseIterator() [3/4]

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

◆ ListReverseIterator() [4/4]

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

◆ ~ListReverseIterator()

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

Member Function Documentation

◆ operator bool()

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

Check if the iterator is valid.

Definition at line 439 of file list.h.

◆ operator*()

template<typename T >
ListReverseIterator< T >::reference CppCommon::ListReverseIterator< T >::operator*
noexcept

Definition at line 378 of file list.inl.

◆ operator++() [1/2]

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

Definition at line 362 of file list.inl.

◆ operator++() [2/2]

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

Definition at line 370 of file list.inl.

◆ operator->()

template<typename T >
ListReverseIterator< T >::pointer CppCommon::ListReverseIterator< T >::operator->
noexcept

Definition at line 386 of file list.inl.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ swap()

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

Swap two instances.

Definition at line 392 of file list.inl.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 429 of file list.h.

◆ operator==

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

Definition at line 427 of file list.h.

◆ swap

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

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