Kagome
Polkadot Runtime Engine in C++17
kagome::face::GenericIterator< Container > Class Template Referenceabstract

#include <generic_iterator.hpp>

Collaboration diagram for kagome::face::GenericIterator< Container >:

Public Types

using value_type = typename Container::value_type
 

Public Member Functions

virtual ~GenericIterator ()=default
 
virtual std::unique_ptr< GenericIteratorclone () const =0
 
virtual value_typeget ()=0
 
virtual value_type const * get () const =0
 
virtual value_typeoperator* ()=0
 
virtual value_type const & operator* () const =0
 
virtual GenericIterator< Container > & operator++ ()=0
 
value_typeoperator-> ()
 
virtual bool operator!= (const GenericIterator< Container > &other) const
 
bool operator== (const GenericIterator< Container > &other)
 

Detailed Description

template<typename Container>
class kagome::face::GenericIterator< Container >

An interface for an iterator

Template Parameters
Containerover which the iterator would iterate

Definition at line 18 of file generic_iterator.hpp.

Member Typedef Documentation

template<typename Container>
using kagome::face::GenericIterator< Container >::value_type = typename Container::value_type

Definition at line 20 of file generic_iterator.hpp.

Constructor & Destructor Documentation

template<typename Container>
virtual kagome::face::GenericIterator< Container >::~GenericIterator ( )
virtualdefault

Member Function Documentation

template<typename Container>
virtual std::unique_ptr<GenericIterator> kagome::face::GenericIterator< Container >::clone ( ) const
pure virtual
template<typename Container>
virtual value_type* kagome::face::GenericIterator< Container >::get ( )
pure virtual
template<typename Container>
virtual value_type const* kagome::face::GenericIterator< Container >::get ( ) const
pure virtual
template<typename Container>
virtual bool kagome::face::GenericIterator< Container >::operator!= ( const GenericIterator< Container > &  other) const
inlinevirtual

Definition at line 40 of file generic_iterator.hpp.

template<typename Container>
virtual value_type& kagome::face::GenericIterator< Container >::operator* ( )
pure virtual
template<typename Container>
virtual value_type const& kagome::face::GenericIterator< Container >::operator* ( ) const
pure virtual
template<typename Container>
virtual GenericIterator<Container>& kagome::face::GenericIterator< Container >::operator++ ( )
pure virtual
template<typename Container>
value_type& kagome::face::GenericIterator< Container >::operator-> ( )
inline

Definition at line 36 of file generic_iterator.hpp.

template<typename Container>
bool kagome::face::GenericIterator< Container >::operator== ( const GenericIterator< Container > &  other)
inline

Definition at line 44 of file generic_iterator.hpp.


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