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 SwapMetaIn.cc.

Member Typedef Documentation

◆ iterator_category

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

Definition at line 30 of file SwapMetaIn.cc.

◆ pointer

Definition at line 32 of file SwapMetaIn.cc.

◆ reference

Definition at line 33 of file SwapMetaIn.cc.

◆ value_type

Definition at line 31 of file SwapMetaIn.cc.

Constructor & Destructor Documentation

◆ SwapMetaIterator()

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

Definition at line 176 of file SwapMetaIn.cc.

References sync().

Member Function Documentation

◆ operator!=()

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

Definition at line 43 of file SwapMetaIn.cc.

◆ operator*()

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

Definition at line 39 of file SwapMetaIn.cc.

References meta_.

◆ operator++()

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

Definition at line 184 of file SwapMetaIn.cc.

References Assure.

◆ operator->()

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

Definition at line 40 of file SwapMetaIn.cc.

References meta_.

◆ operator==()

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

Definition at line 42 of file SwapMetaIn.cc.

References fieldStart_.

◆ sync()

void Store::SwapMetaIterator::sync ( void  )
private

Definition at line 197 of file SwapMetaIn.cc.

References Assure.

Referenced by SwapMetaIterator().

Member Data Documentation

◆ bufEnd_

const void* const Store::SwapMetaIterator::bufEnd_
private

Definition at line 49 of file SwapMetaIn.cc.

◆ fieldStart_

const char* Store::SwapMetaIterator::fieldStart_
private

Definition at line 48 of file SwapMetaIn.cc.

Referenced by operator==().

◆ meta_

SwapMetaView Store::SwapMetaIterator::meta_
private

Definition at line 50 of file SwapMetaIn.cc.

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


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors