iterates serialized swap meta fields loaded into a given buffer More...

Collaboration diagram for Store::SwapMetaIterator:

Public Types

using iterator_category = std::forward_iterator_tag
using value_type = const SwapMetaView
using pointer = value_type *
using reference = value_type &

Public Member Functions

 SwapMetaIterator (const void *start, const void *end)
 positions iterator at the start of a swap meta field extending up to end More...
reference operator* () const
pointer operator-> () const
SwapMetaIteratoroperator++ ()
bool operator== (const SwapMetaIterator &them) const
bool operator!= (const SwapMetaIterator &them) const

Private Member Functions

void sync ()
 (re)set meta_ More...

Private Attributes

const char * fieldStart_
 the start of the current field More...
const void *const bufEnd_
 last field must end at this boundary More...
SwapMetaView meta_
 current field; valid after sync() and before end More...

Detailed Description

Definition at line 26 of file

Member Typedef Documentation

◆ iterator_category

using Store::SwapMetaIterator::iterator_category = std::forward_iterator_tag

Definition at line 30 of file

◆ pointer

Definition at line 32 of file

◆ reference

Definition at line 33 of file

◆ value_type

Definition at line 31 of file

Constructor & Destructor Documentation

◆ SwapMetaIterator()

Store::SwapMetaIterator::SwapMetaIterator ( const void *  start,
const void *  end 

Definition at line 176 of file

References sync().

Member Function Documentation

◆ operator!=()

bool Store::SwapMetaIterator::operator!= ( const SwapMetaIterator them) const

Definition at line 43 of file

◆ operator*()

reference Store::SwapMetaIterator::operator* ( ) const

Definition at line 39 of file

References meta_.

◆ operator++()

Store::SwapMetaIterator & Store::SwapMetaIterator::operator++ ( )

Definition at line 184 of file

References Assure.

◆ operator->()

pointer Store::SwapMetaIterator::operator-> ( ) const

Definition at line 40 of file

References meta_.

◆ operator==()

bool Store::SwapMetaIterator::operator== ( const SwapMetaIterator them) const

Definition at line 42 of file

References fieldStart_.

◆ sync()

void Store::SwapMetaIterator::sync ( void  )

Definition at line 197 of file

References Assure.

Referenced by SwapMetaIterator().

Member Data Documentation

◆ bufEnd_

const void* const Store::SwapMetaIterator::bufEnd_

Definition at line 49 of file

◆ fieldStart_

const char* Store::SwapMetaIterator::fieldStart_

Definition at line 48 of file

Referenced by operator==().

◆ meta_

SwapMetaView Store::SwapMetaIterator::meta_

Definition at line 50 of file

Referenced by operator*(), and operator->().

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






Web Site Translations