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

#include <prevector.h>

Public Types

typedef Diff difference_type
 
typedef T value_type
 
typedef T * pointer
 
typedef T & reference
 
typedef std::random_access_iterator_tag iterator_category
 

Public Member Functions

 iterator ()
 
 iterator (T *ptr_)
 
T & operator* () const
 
T * operator-> () const
 
T & operator[] (size_type pos)
 
const T & operator[] (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)
 
iteratoroperator+= (size_type n)
 
iterator operator- (size_type n)
 
iteratoroperator-= (size_type n)
 
bool operator== (iterator x) const
 
bool operator!= (iterator x) const
 
bool operator>= (iterator x) const
 
bool operator<= (iterator x) const
 
bool operator> (iterator x) const
 
bool operator< (iterator x) const
 

Private Attributes

T * ptr
 

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 48 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 52 of file prevector.h.

◆ iterator_category

template<unsigned int N, typename T , typename Size = uint32_t, typename Diff = int32_t>
typedef std::random_access_iterator_tag prevector< N, T, Size, Diff >::iterator::iterator_category

Definition at line 56 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 54 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 55 of file prevector.h.

◆ value_type

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

Definition at line 53 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 ( )
inline

Definition at line 57 of file prevector.h.

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 58 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 >::iterator::operator!= ( iterator  x) const
inline

Definition at line 95 of file prevector.h.

◆ 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 59 of file prevector.h.

◆ 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 84 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 63 of file prevector.h.

◆ 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 71 of file prevector.h.

◆ 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 85 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 >::iterator::operator- ( iterator  a,
iterator  b 
)
inline

Definition at line 81 of file prevector.h.

◆ 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)
inline

Definition at line 89 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 67 of file prevector.h.

◆ 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 76 of file prevector.h.

◆ 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 90 of file prevector.h.

◆ 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 60 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 >::iterator::operator< ( iterator  x) const
inline

Definition at line 99 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 >::iterator::operator<= ( iterator  x) const
inline

Definition at line 97 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 >::iterator::operator== ( iterator  x) const
inline

Definition at line 94 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 >::iterator::operator> ( iterator  x) const
inline

Definition at line 98 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 >::iterator::operator>= ( iterator  x) const
inline

Definition at line 96 of file prevector.h.

◆ operator[]() [1/2]

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)
inline

Definition at line 61 of file prevector.h.

◆ operator[]() [2/2]

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

Definition at line 62 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 49 of file prevector.h.


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