CppCommon
1.0.4.1
C++ Common Library
|
Intrusive binary tree iterator. More...
#include <bintree.h>
Public Types | |
typedef T | value_type |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef ptrdiff_t | difference_type |
typedef size_t | size_type |
typedef std::bidirectional_iterator_tag | iterator_category |
Public Member Functions | |
BinTreeIterator () noexcept | |
BinTreeIterator (TContainer *container, T *node) noexcept | |
BinTreeIterator (const BinTreeIterator &it) noexcept=default | |
BinTreeIterator (BinTreeIterator &&it) noexcept=default | |
~BinTreeIterator () noexcept=default | |
BinTreeIterator & | operator= (const BinTreeIterator &it) noexcept=default |
BinTreeIterator & | operator= (BinTreeIterator &&it) noexcept=default |
BinTreeIterator & | operator++ () noexcept |
BinTreeIterator | operator++ (int) noexcept |
reference | operator* () noexcept |
pointer | operator-> () noexcept |
operator bool () const noexcept | |
Check if the iterator is valid. More... | |
bool | compare (const T &item1, const T &item2) const noexcept |
Compare two items: if the first item is less than the second one? More... | |
void | swap (BinTreeIterator &it) noexcept |
Swap two instances. More... | |
Friends | |
bool | operator== (const BinTreeIterator &it1, const BinTreeIterator &it2) noexcept |
bool | operator!= (const BinTreeIterator &it1, const BinTreeIterator &it2) noexcept |
template<class UContainer , typename U > | |
void | swap (BinTreeIterator< UContainer, U > &it1, BinTreeIterator< UContainer, U > &it2) noexcept |
Intrusive binary tree iterator.
Not thread-safe.
typedef const value_type* CppCommon::BinTreeIterator< TContainer, T >::const_pointer |
typedef const value_type& CppCommon::BinTreeIterator< TContainer, T >::const_reference |
typedef ptrdiff_t CppCommon::BinTreeIterator< TContainer, T >::difference_type |
typedef std::bidirectional_iterator_tag CppCommon::BinTreeIterator< TContainer, T >::iterator_category |
typedef value_type* CppCommon::BinTreeIterator< TContainer, T >::pointer |
typedef value_type& CppCommon::BinTreeIterator< TContainer, T >::reference |
typedef size_t CppCommon::BinTreeIterator< TContainer, T >::size_type |
typedef T CppCommon::BinTreeIterator< TContainer, T >::value_type |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
noexcept |
Definition at line 450 of file bintree.inl.
|
noexcept |
Definition at line 421 of file bintree.inl.
|
inlinenoexcept |
Definition at line 442 of file bintree.inl.
|
noexcept |
Definition at line 458 of file bintree.inl.
|
defaultnoexcept |
|
defaultnoexcept |
|
noexcept |
Swap two instances.
Definition at line 464 of file bintree.inl.
|
friend |
|
friend |
|
friend |