Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
btck::Iterator< Collection, ValueType > 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-> () const
 
autooperator++ ()
 
auto operator++ (int)
 
autooperator-- ()
 
auto operator-- (int)
 
autooperator+= (difference_type n)
 
autooperator-= (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 Collectionm_collection
 
size_t m_idx
 

Friends

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

Detailed Description

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

Definition at line 166 of file bitcoinkernel_wrapper.h.

Member Typedef Documentation

◆ difference_type

using btck::Iterator< Collection, ValueType >::difference_type = std::ptrdiff_t

Definition at line 171 of file bitcoinkernel_wrapper.h.

◆ iterator_category

using btck::Iterator< Collection, ValueType >::iterator_category = std::random_access_iterator_tag

Definition at line 169 of file bitcoinkernel_wrapper.h.

◆ iterator_concept

using btck::Iterator< Collection, ValueType >::iterator_concept = std::random_access_iterator_tag

Definition at line 170 of file bitcoinkernel_wrapper.h.

◆ value_type

Definition at line 172 of file bitcoinkernel_wrapper.h.

Constructor & Destructor Documentation

◆ Iterator() [1/3]

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

◆ Iterator() [2/3]

btck::Iterator< Collection, ValueType >::Iterator ( const Collection * ptr)
inline

Definition at line 180 of file bitcoinkernel_wrapper.h.

◆ Iterator() [3/3]

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

Definition at line 181 of file bitcoinkernel_wrapper.h.

Member Function Documentation

◆ operator*()

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

Definition at line 184 of file bitcoinkernel_wrapper.h.

◆ operator+()

Definition at line 196 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ operator++() [1/2]

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

Definition at line 187 of file bitcoinkernel_wrapper.h.

◆ operator++() [2/2]

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

Definition at line 188 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ operator+=()

Definition at line 193 of file bitcoinkernel_wrapper.h.

◆ operator-() [1/2]

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

Definition at line 199 of file bitcoinkernel_wrapper.h.

◆ operator-() [2/2]

Definition at line 197 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ operator--() [1/2]

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

Definition at line 190 of file bitcoinkernel_wrapper.h.

◆ operator--() [2/2]

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

Definition at line 191 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ operator-=()

Definition at line 194 of file bitcoinkernel_wrapper.h.

◆ operator->()

auto btck::Iterator< Collection, ValueType >::operator-> ( ) const
inline

Definition at line 185 of file bitcoinkernel_wrapper.h.

◆ operator<=>()

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

Definition at line 203 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ operator==()

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

Definition at line 205 of file bitcoinkernel_wrapper.h.

◆ operator[]()

Definition at line 201 of file bitcoinkernel_wrapper.h.

Friends And Related Symbol Documentation

◆ operator+

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

Definition at line 208 of file bitcoinkernel_wrapper.h.

Member Data Documentation

◆ m_collection

const Collection* btck::Iterator< Collection, ValueType >::m_collection
private

Definition at line 175 of file bitcoinkernel_wrapper.h.

◆ m_idx

Definition at line 176 of file bitcoinkernel_wrapper.h.


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