Bitcoin Core 28.99.0
P2P Digital Currency
|
Iterator to a bitdeque element, const or not. More...
Public Types | |
using | iterator_category = std::random_access_iterator_tag |
using | value_type = bool |
using | pointer = void |
using | const_pointer = void |
using | reference = std::conditional_t< Const, bool, typename word_type::reference > |
using | const_reference = bool |
using | difference_type = std::ptrdiff_t |
Public Member Functions | |
Iterator ()=default | |
Default constructor. More... | |
Iterator (const Iterator &)=default | |
Default copy constructor. More... | |
template<bool ConstArg = Const, typename = std::enable_if_t<Const && ConstArg>> | |
Iterator (const Iterator< false > &x) | |
Conversion from non-const to const iterator. More... | |
Iterator & | operator+= (difference_type dist) |
Iterator & | operator= (const Iterator &)=default |
Iterator & | operator-= (difference_type dist) |
Iterator & | operator++ () |
Iterator | operator++ (int) |
Iterator & | operator-- () |
Iterator | operator-- (int) |
reference | operator* () const |
reference | operator[] (difference_type pos) const |
Private Types | |
using | deque_iterator = std::conditional_t< Const, typename deque_type::const_iterator, typename deque_type::iterator > |
Private Member Functions | |
Iterator (const deque_iterator &it, int bitpos) | |
Private Attributes | |
deque_iterator | m_it |
int | m_bitpos {0} |
Friends | |
class | bitdeque |
difference_type | operator- (const Iterator &x, const Iterator &y) |
Iterator | operator+ (Iterator x, difference_type dist) |
Iterator | operator+ (difference_type dist, Iterator x) |
Iterator | operator- (Iterator x, difference_type dist) |
bool | operator< (const Iterator &x, const Iterator &y) |
bool | operator> (const Iterator &x, const Iterator &y) |
bool | operator<= (const Iterator &x, const Iterator &y) |
bool | operator>= (const Iterator &x, const Iterator &y) |
bool | operator== (const Iterator &x, const Iterator &y) |
bool | operator!= (const Iterator &x, const Iterator &y) |
Iterator to a bitdeque element, const or not.
Definition at line 35 of file bitdeque.h.
using bitdeque< BITS_PER_WORD >::Iterator< Const >::const_pointer = void |
Definition at line 48 of file bitdeque.h.
using bitdeque< BITS_PER_WORD >::Iterator< Const >::const_reference = bool |
Definition at line 50 of file bitdeque.h.
|
private |
Definition at line 37 of file bitdeque.h.
using bitdeque< BITS_PER_WORD >::Iterator< Const >::difference_type = std::ptrdiff_t |
Definition at line 51 of file bitdeque.h.
using bitdeque< BITS_PER_WORD >::Iterator< Const >::iterator_category = std::random_access_iterator_tag |
Definition at line 45 of file bitdeque.h.
using bitdeque< BITS_PER_WORD >::Iterator< Const >::pointer = void |
Definition at line 47 of file bitdeque.h.
using bitdeque< BITS_PER_WORD >::Iterator< Const >::reference = std::conditional_t<Const, bool, typename word_type::reference> |
Definition at line 49 of file bitdeque.h.
using bitdeque< BITS_PER_WORD >::Iterator< Const >::value_type = bool |
Definition at line 46 of file bitdeque.h.
|
inlineprivate |
Definition at line 41 of file bitdeque.h.
|
default |
Default constructor.
|
default |
Default copy constructor.
|
inline |
Conversion from non-const to const iterator.
Definition at line 61 of file bitdeque.h.
|
inline |
Definition at line 108 of file bitdeque.h.
|
inline |
Definition at line 95 of file bitdeque.h.
|
inline |
Definition at line 96 of file bitdeque.h.
|
inline |
|
inline |
Definition at line 97 of file bitdeque.h.
|
inline |
Definition at line 98 of file bitdeque.h.
|
inline |
|
default |
|
inline |
Definition at line 109 of file bitdeque.h.
Definition at line 42 of file bitdeque.h.
|
friend |
Definition at line 107 of file bitdeque.h.
|
friend |
Definition at line 100 of file bitdeque.h.
|
friend |
Definition at line 99 of file bitdeque.h.
|
friend |
Definition at line 88 of file bitdeque.h.
|
friend |
Definition at line 101 of file bitdeque.h.
|
friend |
Definition at line 102 of file bitdeque.h.
|
friend |
Definition at line 104 of file bitdeque.h.
|
friend |
Definition at line 106 of file bitdeque.h.
|
friend |
Definition at line 103 of file bitdeque.h.
|
friend |
Definition at line 105 of file bitdeque.h.
|
private |
Definition at line 40 of file bitdeque.h.
|
private |
Definition at line 39 of file bitdeque.h.