BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Types | Public Member Functions | Friends | List of all members
graphene::db::simple_index< T >::const_iterator Class Reference

#include <simple_index.hpp>

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = std::vector< std::unique_ptr< object > >::value_type
 
using difference_type = std::vector< std::unique_ptr< object > >::difference_type
 
using pointer = std::vector< std::unique_ptr< object > >::pointer
 
using reference = std::vector< std::unique_ptr< object > >::reference
 

Public Member Functions

 const_iterator (const std::vector< std::unique_ptr< object >> &objects)
 
 const_iterator (const std::vector< std::unique_ptr< object >> &objects, const std::vector< std::unique_ptr< object >>::const_iterator &a)
 
const T & operator* () const
 
const_iterator operator++ (int)
 
const_iteratoroperator++ ()
 

Friends

bool operator== (const const_iterator &a, const const_iterator &b)
 
bool operator!= (const const_iterator &a, const const_iterator &b)
 

Detailed Description

template<typename T>
class graphene::db::simple_index< T >::const_iterator

Definition at line 102 of file simple_index.hpp.

Member Typedef Documentation

◆ difference_type

template<typename T >
using graphene::db::simple_index< T >::const_iterator::difference_type = std::vector<std::unique_ptr<object> >::difference_type

Definition at line 127 of file simple_index.hpp.

◆ iterator_category

template<typename T >
using graphene::db::simple_index< T >::const_iterator::iterator_category = std::forward_iterator_tag

Definition at line 125 of file simple_index.hpp.

◆ pointer

template<typename T >
using graphene::db::simple_index< T >::const_iterator::pointer = std::vector<std::unique_ptr<object> >::pointer

Definition at line 128 of file simple_index.hpp.

◆ reference

template<typename T >
using graphene::db::simple_index< T >::const_iterator::reference = std::vector<std::unique_ptr<object> >::reference

Definition at line 129 of file simple_index.hpp.

◆ value_type

template<typename T >
using graphene::db::simple_index< T >::const_iterator::value_type = std::vector<std::unique_ptr<object> >::value_type

Definition at line 126 of file simple_index.hpp.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

template<typename T >
graphene::db::simple_index< T >::const_iterator::const_iterator ( const std::vector< std::unique_ptr< object >> &  objects)
inlineexplicit

Definition at line 105 of file simple_index.hpp.

◆ const_iterator() [2/2]

template<typename T >
graphene::db::simple_index< T >::const_iterator::const_iterator ( const std::vector< std::unique_ptr< object >> &  objects,
const std::vector< std::unique_ptr< object >>::const_iterator a 
)
inline

Definition at line 106 of file simple_index.hpp.

Member Function Documentation

◆ operator*()

template<typename T >
const T& graphene::db::simple_index< T >::const_iterator::operator* ( ) const
inline

Definition at line 111 of file simple_index.hpp.

◆ operator++() [1/2]

template<typename T >
const_iterator& graphene::db::simple_index< T >::const_iterator::operator++ ( )
inline

Definition at line 118 of file simple_index.hpp.

◆ operator++() [2/2]

template<typename T >
const_iterator graphene::db::simple_index< T >::const_iterator::operator++ ( int  )
inline

Definition at line 112 of file simple_index.hpp.

Friends And Related Function Documentation

◆ operator!=

template<typename T >
bool operator!= ( const const_iterator a,
const const_iterator b 
)
friend

Definition at line 110 of file simple_index.hpp.

◆ operator==

template<typename T >
bool operator== ( const const_iterator a,
const const_iterator b 
)
friend

Definition at line 109 of file simple_index.hpp.


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