Bitcoin Core 30.99.0
P2P Digital Currency
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
 
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>
class btck::Iterator< Collection, ValueType >

Definition at line 165 of file bitcoinkernel_wrapper.h.

Member Typedef Documentation

◆ difference_type

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

Definition at line 170 of file bitcoinkernel_wrapper.h.

◆ iterator_category

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

Definition at line 168 of file bitcoinkernel_wrapper.h.

◆ iterator_concept

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

Definition at line 169 of file bitcoinkernel_wrapper.h.

◆ value_type

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

Definition at line 171 of file bitcoinkernel_wrapper.h.

Constructor & Destructor Documentation

◆ Iterator() [1/3]

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

◆ Iterator() [2/3]

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

Definition at line 179 of file bitcoinkernel_wrapper.h.

◆ Iterator() [3/3]

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

Definition at line 180 of file bitcoinkernel_wrapper.h.

Member Function Documentation

◆ operator*()

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

Definition at line 183 of file bitcoinkernel_wrapper.h.

◆ operator+()

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

Definition at line 195 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ operator++() [1/2]

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

Definition at line 186 of file bitcoinkernel_wrapper.h.

◆ operator++() [2/2]

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

Definition at line 187 of file bitcoinkernel_wrapper.h.

◆ operator+=()

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

Definition at line 192 of file bitcoinkernel_wrapper.h.

◆ operator-() [1/2]

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

Definition at line 198 of file bitcoinkernel_wrapper.h.

◆ operator-() [2/2]

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

Definition at line 196 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ operator--() [1/2]

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

Definition at line 189 of file bitcoinkernel_wrapper.h.

◆ operator--() [2/2]

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

Definition at line 190 of file bitcoinkernel_wrapper.h.

◆ operator-=()

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

Definition at line 193 of file bitcoinkernel_wrapper.h.

◆ operator->()

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

Definition at line 184 of file bitcoinkernel_wrapper.h.

◆ operator<=>()

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

Definition at line 202 of file bitcoinkernel_wrapper.h.

◆ operator==()

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

Definition at line 204 of file bitcoinkernel_wrapper.h.

◆ operator[]()

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

Definition at line 200 of file bitcoinkernel_wrapper.h.

Friends And Related Function Documentation

◆ operator+

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

Definition at line 207 of file bitcoinkernel_wrapper.h.

Member Data Documentation

◆ m_collection

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

Definition at line 174 of file bitcoinkernel_wrapper.h.

◆ m_idx

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

Definition at line 175 of file bitcoinkernel_wrapper.h.


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