Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
btck::Iterator< Collection, ValueType, GetFunc > Class Template Reference

#include <bitcoinkernel_wrapper.h>

Public Types

using iterator_category = std::random_access_iterator_tag
using iterator_concept = std::random_access_iterator_tag
using difference_type = std::ptrdiff_t
using value_type = ValueType

Public Member Functions

 Iterator ()=default
 Iterator (const Collection *ptr)
 Iterator (const Collection *ptr, size_t idx)
auto operator* () const
auto & operator++ ()
auto operator++ (int)
auto & operator-- ()
auto operator-- (int)
auto & operator+= (difference_type n)
auto & operator-= (difference_type n)
auto operator+ (difference_type n) const
auto operator- (difference_type n) const
auto operator- (const Iterator &other) const
ValueType operator[] (difference_type n) const
auto operator<=> (const Iterator &other) const
bool operator== (const Iterator &other) const

Private Attributes

const Collection * m_collection
size_t m_idx

Friends

Iterator operator+ (difference_type n, const Iterator &it)

Detailed Description

template<typename Collection, typename ValueType, auto GetFunc>
class btck::Iterator< Collection, ValueType, GetFunc >

Definition at line 194 of file bitcoinkernel_wrapper.h.

Member Typedef Documentation

◆ difference_type

template<typename Collection, typename ValueType, auto GetFunc>
using btck::Iterator< Collection, ValueType, GetFunc >::difference_type = std::ptrdiff_t

Definition at line 199 of file bitcoinkernel_wrapper.h.

◆ iterator_category

template<typename Collection, typename ValueType, auto GetFunc>
using btck::Iterator< Collection, ValueType, GetFunc >::iterator_category = std::random_access_iterator_tag

Definition at line 197 of file bitcoinkernel_wrapper.h.

◆ iterator_concept

template<typename Collection, typename ValueType, auto GetFunc>
using btck::Iterator< Collection, ValueType, GetFunc >::iterator_concept = std::random_access_iterator_tag

Definition at line 198 of file bitcoinkernel_wrapper.h.

◆ value_type

template<typename Collection, typename ValueType, auto GetFunc>
using btck::Iterator< Collection, ValueType, GetFunc >::value_type = ValueType

Definition at line 200 of file bitcoinkernel_wrapper.h.

Constructor & Destructor Documentation

◆ Iterator() [1/3]

template<typename Collection, typename ValueType, auto GetFunc>
btck::Iterator< Collection, ValueType, GetFunc >::Iterator ( )
default
Here is the caller graph for this function:

◆ Iterator() [2/3]

template<typename Collection, typename ValueType, auto GetFunc>
btck::Iterator< Collection, ValueType, GetFunc >::Iterator ( const Collection * ptr)
inline

Definition at line 208 of file bitcoinkernel_wrapper.h.

◆ Iterator() [3/3]

template<typename Collection, typename ValueType, auto GetFunc>
btck::Iterator< Collection, ValueType, GetFunc >::Iterator ( const Collection * ptr,
size_t idx )
inline

Definition at line 209 of file bitcoinkernel_wrapper.h.

Member Function Documentation

◆ operator*()

template<typename Collection, typename ValueType, auto GetFunc>
auto btck::Iterator< Collection, ValueType, GetFunc >::operator* ( ) const
inline

Definition at line 212 of file bitcoinkernel_wrapper.h.

◆ operator+()

template<typename Collection, typename ValueType, auto GetFunc>
auto btck::Iterator< Collection, ValueType, GetFunc >::operator+ ( difference_type n) const
inline

Definition at line 223 of file bitcoinkernel_wrapper.h.

◆ operator++() [1/2]

template<typename Collection, typename ValueType, auto GetFunc>
auto & btck::Iterator< Collection, ValueType, GetFunc >::operator++ ( )
inline

Definition at line 214 of file bitcoinkernel_wrapper.h.

◆ operator++() [2/2]

template<typename Collection, typename ValueType, auto GetFunc>
auto btck::Iterator< Collection, ValueType, GetFunc >::operator++ ( int )
inline

Definition at line 215 of file bitcoinkernel_wrapper.h.

◆ operator+=()

template<typename Collection, typename ValueType, auto GetFunc>
auto & btck::Iterator< Collection, ValueType, GetFunc >::operator+= ( difference_type n)
inline

Definition at line 220 of file bitcoinkernel_wrapper.h.

◆ operator-() [1/2]

template<typename Collection, typename ValueType, auto GetFunc>
auto btck::Iterator< Collection, ValueType, GetFunc >::operator- ( const Iterator< Collection, ValueType, GetFunc > & other) const
inline

Definition at line 226 of file bitcoinkernel_wrapper.h.

◆ operator-() [2/2]

template<typename Collection, typename ValueType, auto GetFunc>
auto btck::Iterator< Collection, ValueType, GetFunc >::operator- ( difference_type n) const
inline

Definition at line 224 of file bitcoinkernel_wrapper.h.

◆ operator--() [1/2]

template<typename Collection, typename ValueType, auto GetFunc>
auto & btck::Iterator< Collection, ValueType, GetFunc >::operator-- ( )
inline

Definition at line 217 of file bitcoinkernel_wrapper.h.

◆ operator--() [2/2]

template<typename Collection, typename ValueType, auto GetFunc>
auto btck::Iterator< Collection, ValueType, GetFunc >::operator-- ( int )
inline

Definition at line 218 of file bitcoinkernel_wrapper.h.

◆ operator-=()

template<typename Collection, typename ValueType, auto GetFunc>
auto & btck::Iterator< Collection, ValueType, GetFunc >::operator-= ( difference_type n)
inline

Definition at line 221 of file bitcoinkernel_wrapper.h.

◆ operator<=>()

template<typename Collection, typename ValueType, auto GetFunc>
auto btck::Iterator< Collection, ValueType, GetFunc >::operator<=> ( const Iterator< Collection, ValueType, GetFunc > & other) const
inline

Definition at line 230 of file bitcoinkernel_wrapper.h.

◆ operator==()

template<typename Collection, typename ValueType, auto GetFunc>
bool btck::Iterator< Collection, ValueType, GetFunc >::operator== ( const Iterator< Collection, ValueType, GetFunc > & other) const
inline

Definition at line 232 of file bitcoinkernel_wrapper.h.

◆ operator[]()

template<typename Collection, typename ValueType, auto GetFunc>
ValueType btck::Iterator< Collection, ValueType, GetFunc >::operator[] ( difference_type n) const
inline

Definition at line 228 of file bitcoinkernel_wrapper.h.

◆ operator+

template<typename Collection, typename ValueType, auto GetFunc>
Iterator operator+ ( difference_type n,
const Iterator< Collection, ValueType, GetFunc > & it )
friend

Definition at line 235 of file bitcoinkernel_wrapper.h.

Member Data Documentation

◆ m_collection

template<typename Collection, typename ValueType, auto GetFunc>
const Collection* btck::Iterator< Collection, ValueType, GetFunc >::m_collection
private

Definition at line 203 of file bitcoinkernel_wrapper.h.

◆ m_idx

template<typename Collection, typename ValueType, auto GetFunc>
size_t btck::Iterator< Collection, ValueType, GetFunc >::m_idx
private

Definition at line 204 of file bitcoinkernel_wrapper.h.


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