Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
prevector< N, T, Size, Diff >::iterator Class Reference

#include <prevector.h>

Public Types

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

Public Member Functions

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

Private Attributes

Tptr {}

Detailed Description

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

Definition at line 51 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 >::iterator::difference_type

Definition at line 54 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 >::iterator::element_type = T

Definition at line 57 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 >::iterator::iterator_category = std::contiguous_iterator_tag

Definition at line 58 of file prevector.h.

◆ pointer

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

Definition at line 55 of file prevector.h.

◆ reference

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

Definition at line 56 of file prevector.h.

Constructor & Destructor Documentation

◆ iterator() [1/2]

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

◆ iterator() [2/2]

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

Definition at line 60 of file prevector.h.

Member Function Documentation

◆ operator*()

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

Definition at line 61 of file prevector.h.

◆ operator+() [1/2]

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

Definition at line 69 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>
iterator friend prevector< N, T, Size, Diff >::iterator::operator+ ( size_type n,
iterator x )
inline

Definition at line 70 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>
iterator & prevector< N, T, Size, Diff >::iterator::operator++ ( )
inline

Definition at line 64 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>
iterator prevector< N, T, Size, Diff >::iterator::operator++ ( int )
inline

Definition at line 66 of file prevector.h.

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 71 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>
difference_type friend prevector< N, T, Size, Diff >::iterator::operator- ( iterator a,
iterator b )
inline

Definition at line 68 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>
iterator prevector< N, T, Size, Diff >::iterator::operator- ( size_type n) const
inline

Definition at line 72 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>
iterator & prevector< N, T, Size, Diff >::iterator::operator-- ( )
inline

Definition at line 65 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>
iterator prevector< N, T, Size, Diff >::iterator::operator-- ( int )
inline

Definition at line 67 of file prevector.h.

Here is the call graph for this function:

◆ operator-=()

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

Definition at line 73 of file prevector.h.

Here is the call graph for this function:

◆ operator->()

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

Definition at line 62 of file prevector.h.

◆ operator<=>()

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

Definition at line 75 of file prevector.h.

Here is the call graph for this function:

◆ operator==()

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

Definition at line 74 of file prevector.h.

Here is the call graph for this function:

◆ operator[]()

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

Definition at line 63 of file prevector.h.

Member Data Documentation

◆ ptr

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

Definition at line 52 of file prevector.h.


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