Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::protocol_feature_set::const_iterator Class Reference

#include <protocol_feature_manager.hpp>

Public Types

using iterator_category = std::bidirectional_iterator_tag
 
using value_type = const protocol_feature
 
using difference_type = std::ptrdiff_t
 
using pointer = const protocol_feature*
 
using reference = const protocol_feature&
 

Public Member Functions

 const_iterator ()=default
 
const protocol_featureoperator* () const
 
const protocol_featureoperator-> () const
 
const_iteratoroperator++ ()
 
const_iteratoroperator-- ()
 
const_iterator operator++ (int)
 
const_iterator operator-- (int)
 

Protected Member Functions

 const_iterator (protocol_feature_set_type::const_iterator itr)
 
const protocol_featureget_pointer () const
 

Protected Attributes

protocol_feature_set_type::const_iterator _itr
 

Friends

class protocol_feature_set
 
bool operator== (const const_iterator &lhs, const const_iterator &rhs)
 
bool operator!= (const const_iterator &lhs, const const_iterator &rhs)
 

Detailed Description

Definition at line 162 of file protocol_feature_manager.hpp.

Member Typedef Documentation

◆ difference_type

◆ iterator_category

Definition at line 164 of file protocol_feature_manager.hpp.

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

sysio::chain::protocol_feature_set::const_iterator::const_iterator ( protocol_feature_set_type::const_iterator itr)
inlineexplicitprotected

Definition at line 174 of file protocol_feature_manager.hpp.

175 :_itr(itr)
176 {}

◆ const_iterator() [2/2]

sysio::chain::protocol_feature_set::const_iterator::const_iterator ( )
default

Member Function Documentation

◆ get_pointer()

const protocol_feature * sysio::chain::protocol_feature_set::const_iterator::get_pointer ( ) const
inlineprotected

Definition at line 178 of file protocol_feature_manager.hpp.

178{ return &*_itr; }
Here is the caller graph for this function:

◆ operator*()

const protocol_feature & sysio::chain::protocol_feature_set::const_iterator::operator* ( ) const
inline

Definition at line 193 of file protocol_feature_manager.hpp.

193 {
194 return *get_pointer();
195 }
Here is the call graph for this function:

◆ operator++() [1/2]

const_iterator & sysio::chain::protocol_feature_set::const_iterator::operator++ ( )
inline

Definition at line 201 of file protocol_feature_manager.hpp.

201 {
202 ++_itr;
203 return *this;
204 }

◆ operator++() [2/2]

const_iterator sysio::chain::protocol_feature_set::const_iterator::operator++ ( int )
inline

Definition at line 211 of file protocol_feature_manager.hpp.

211 {
212 const_iterator result(*this);
213 ++(*this);
214 return result;
215 }

◆ operator--() [1/2]

const_iterator & sysio::chain::protocol_feature_set::const_iterator::operator-- ( )
inline

Definition at line 206 of file protocol_feature_manager.hpp.

206 {
207 --_itr;
208 return *this;
209 }

◆ operator--() [2/2]

const_iterator sysio::chain::protocol_feature_set::const_iterator::operator-- ( int )
inline

Definition at line 217 of file protocol_feature_manager.hpp.

217 {
218 const_iterator result(*this);
219 --(*this);
220 return result;
221 }

◆ operator->()

const protocol_feature * sysio::chain::protocol_feature_set::const_iterator::operator-> ( ) const
inline

Definition at line 197 of file protocol_feature_manager.hpp.

197 {
198 return get_pointer();
199 }
Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const const_iterator & lhs,
const const_iterator & rhs )
friend

Definition at line 189 of file protocol_feature_manager.hpp.

189 {
190 return (lhs._itr != rhs._itr);
191 }

◆ operator==

bool operator== ( const const_iterator & lhs,
const const_iterator & rhs )
friend

Definition at line 185 of file protocol_feature_manager.hpp.

185 {
186 return (lhs._itr == rhs._itr);
187 }

◆ protocol_feature_set

friend class protocol_feature_set
friend

Definition at line 180 of file protocol_feature_manager.hpp.

Member Data Documentation

◆ _itr

protocol_feature_set_type::const_iterator sysio::chain::protocol_feature_set::const_iterator::_itr
protected

Definition at line 171 of file protocol_feature_manager.hpp.


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