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

Intrusive queue constant iterator. More...

#include <queue.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::forward_iterator_tag iterator_category
 

Public Member Functions

 QueueConstIterator () noexcept
 
 QueueConstIterator (const T *node) noexcept
 
 QueueConstIterator (const QueueIterator< T > &it) noexcept
 
 QueueConstIterator (const QueueConstIterator &it) noexcept=default
 
 QueueConstIterator (QueueConstIterator &&it) noexcept=default
 
 ~QueueConstIterator () noexcept=default
 
QueueConstIteratoroperator= (const QueueIterator< T > &it) noexcept
 
QueueConstIteratoroperator= (const QueueConstIterator &it) noexcept=default
 
QueueConstIteratoroperator= (QueueConstIterator &&it) noexcept=default
 
QueueConstIteratoroperator++ () noexcept
 
QueueConstIterator 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 (QueueConstIterator &it) noexcept
 Swap two instances. More...
 

Friends

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

Detailed Description

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

Intrusive queue constant iterator.

Not thread-safe.

Definition at line 246 of file queue.h.

Member Typedef Documentation

◆ const_pointer

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

Definition at line 254 of file queue.h.

◆ const_reference

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

Definition at line 252 of file queue.h.

◆ difference_type

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

Definition at line 255 of file queue.h.

◆ iterator_category

template<typename T >
typedef std::forward_iterator_tag CppCommon::QueueConstIterator< T >::iterator_category

Definition at line 257 of file queue.h.

◆ pointer

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

Definition at line 253 of file queue.h.

◆ reference

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

Definition at line 251 of file queue.h.

◆ size_type

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

Definition at line 256 of file queue.h.

◆ value_type

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

Definition at line 250 of file queue.h.

Constructor & Destructor Documentation

◆ QueueConstIterator() [1/5]

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

Definition at line 259 of file queue.h.

◆ QueueConstIterator() [2/5]

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

Definition at line 260 of file queue.h.

◆ QueueConstIterator() [3/5]

template<typename T >
CppCommon::QueueConstIterator< T >::QueueConstIterator ( const QueueIterator< T > &  it)
inlinenoexcept

Definition at line 261 of file queue.h.

◆ QueueConstIterator() [4/5]

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

◆ QueueConstIterator() [5/5]

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

◆ ~QueueConstIterator()

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

Member Function Documentation

◆ operator bool()

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

Check if the iterator is valid.

Definition at line 283 of file queue.h.

◆ operator*()

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

Definition at line 183 of file queue.inl.

◆ operator++() [1/2]

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

Definition at line 167 of file queue.inl.

◆ operator++() [2/2]

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

Definition at line 175 of file queue.inl.

◆ operator->()

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

Definition at line 191 of file queue.inl.

◆ operator=() [1/3]

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

◆ operator=() [2/3]

template<typename T >
QueueConstIterator& CppCommon::QueueConstIterator< T >::operator= ( const QueueIterator< T > &  it)
inlinenoexcept

Definition at line 266 of file queue.h.

◆ operator=() [3/3]

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

◆ swap()

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

Swap two instances.

Definition at line 197 of file queue.inl.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 273 of file queue.h.

◆ operator==

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

Definition at line 271 of file queue.h.

◆ swap

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

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