Bitcoin Core 28.99.0
P2P Digital Currency
Public Types | Public Member Functions | Private Attributes | List of all members
prevector< N, T, Size, Diff >::const_iterator Class Reference

#include <prevector.h>

Public Types

typedef Diff difference_type
 
typedef const Tpointer
 
typedef const Treference
 
using element_type = const T
 
using iterator_category = std::contiguous_iterator_tag
 

Public Member Functions

 const_iterator ()=default
 
 const_iterator (const T *ptr_)
 
 const_iterator (iterator x)
 
const Toperator* () const
 
const Toperator-> () const
 
const Toperator[] (size_type pos) const
 
const_iteratoroperator++ ()
 
const_iteratoroperator-- ()
 
const_iterator operator++ (int)
 
const_iterator operator-- (int)
 
difference_type friend operator- (const_iterator a, const_iterator b)
 
const_iterator operator+ (size_type n) const
 
const_iterator friend operator+ (size_type n, const_iterator x)
 
const_iteratoroperator+= (size_type n)
 
const_iterator operator- (size_type n) const
 
const_iteratoroperator-= (size_type n)
 
bool operator== (const_iterator x) const
 
bool operator!= (const_iterator x) const
 
bool operator>= (const_iterator x) const
 
bool operator<= (const_iterator x) const
 
bool operator> (const_iterator x) const
 
bool operator< (const_iterator x) const
 

Private Attributes

const Tptr {}
 

Detailed Description

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
class prevector< N, T, Size, Diff >::const_iterator

Definition at line 100 of file prevector.h.

Member Typedef Documentation

◆ difference_type

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
typedef Diff prevector< N, T, Size, Diff >::const_iterator::difference_type

Definition at line 103 of file prevector.h.

◆ element_type

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
using prevector< N, T, Size, Diff >::const_iterator::element_type = const T

Definition at line 106 of file prevector.h.

◆ iterator_category

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
using prevector< N, T, Size, Diff >::const_iterator::iterator_category = std::contiguous_iterator_tag

Definition at line 107 of file prevector.h.

◆ pointer

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
typedef const T* prevector< N, T, Size, Diff >::const_iterator::pointer

Definition at line 104 of file prevector.h.

◆ reference

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
typedef const T& prevector< N, T, Size, Diff >::const_iterator::reference

Definition at line 105 of file prevector.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/3]

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
prevector< N, T, Size, Diff >::const_iterator::const_iterator ( )
default
Here is the caller graph for this function:

◆ const_iterator() [2/3]

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
prevector< N, T, Size, Diff >::const_iterator::const_iterator ( const T ptr_)
inline

Definition at line 109 of file prevector.h.

◆ const_iterator() [3/3]

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
prevector< N, T, Size, Diff >::const_iterator::const_iterator ( iterator  x)
inline

Definition at line 110 of file prevector.h.

Member Function Documentation

◆ operator!=()

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
bool prevector< N, T, Size, Diff >::const_iterator::operator!= ( const_iterator  x) const
inline

Definition at line 125 of file prevector.h.

◆ operator*()

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
const T & prevector< N, T, Size, Diff >::const_iterator::operator* ( ) const
inline

Definition at line 111 of file prevector.h.

◆ operator+() [1/2]

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
const_iterator prevector< N, T, Size, Diff >::const_iterator::operator+ ( size_type  n) const
inline

Definition at line 119 of file prevector.h.

Here is the call graph for this function:

◆ operator+() [2/2]

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
const_iterator friend prevector< N, T, Size, Diff >::const_iterator::operator+ ( size_type  n,
const_iterator  x 
)
inline

Definition at line 120 of file prevector.h.

◆ operator++() [1/2]

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
const_iterator & prevector< N, T, Size, Diff >::const_iterator::operator++ ( )
inline

Definition at line 114 of file prevector.h.

◆ operator++() [2/2]

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
const_iterator prevector< N, T, Size, Diff >::const_iterator::operator++ ( int  )
inline

Definition at line 116 of file prevector.h.

◆ operator+=()

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
const_iterator & prevector< N, T, Size, Diff >::const_iterator::operator+= ( size_type  n)
inline

Definition at line 121 of file prevector.h.

◆ operator-() [1/2]

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
difference_type friend prevector< N, T, Size, Diff >::const_iterator::operator- ( const_iterator  a,
const_iterator  b 
)
inline

Definition at line 118 of file prevector.h.

◆ operator-() [2/2]

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
const_iterator prevector< N, T, Size, Diff >::const_iterator::operator- ( size_type  n) const
inline

Definition at line 122 of file prevector.h.

Here is the call graph for this function:

◆ operator--() [1/2]

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
const_iterator & prevector< N, T, Size, Diff >::const_iterator::operator-- ( )
inline

Definition at line 115 of file prevector.h.

◆ operator--() [2/2]

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
const_iterator prevector< N, T, Size, Diff >::const_iterator::operator-- ( int  )
inline

Definition at line 117 of file prevector.h.

◆ operator-=()

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
const_iterator & prevector< N, T, Size, Diff >::const_iterator::operator-= ( size_type  n)
inline

Definition at line 123 of file prevector.h.

◆ operator->()

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
const T * prevector< N, T, Size, Diff >::const_iterator::operator-> ( ) const
inline

Definition at line 112 of file prevector.h.

◆ operator<()

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
bool prevector< N, T, Size, Diff >::const_iterator::operator< ( const_iterator  x) const
inline

Definition at line 129 of file prevector.h.

◆ operator<=()

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
bool prevector< N, T, Size, Diff >::const_iterator::operator<= ( const_iterator  x) const
inline

Definition at line 127 of file prevector.h.

◆ operator==()

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
bool prevector< N, T, Size, Diff >::const_iterator::operator== ( const_iterator  x) const
inline

Definition at line 124 of file prevector.h.

◆ operator>()

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
bool prevector< N, T, Size, Diff >::const_iterator::operator> ( const_iterator  x) const
inline

Definition at line 128 of file prevector.h.

◆ operator>=()

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
bool prevector< N, T, Size, Diff >::const_iterator::operator>= ( const_iterator  x) const
inline

Definition at line 126 of file prevector.h.

◆ operator[]()

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
const T & prevector< N, T, Size, Diff >::const_iterator::operator[] ( size_type  pos) const
inline

Definition at line 113 of file prevector.h.

Member Data Documentation

◆ ptr

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
const T* prevector< N, T, Size, Diff >::const_iterator::ptr {}
private

Definition at line 101 of file prevector.h.


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