Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
BlockFlow< CONF >::StorageAdaptor Class Reference

Description

template<class CONF = blockFlow::DefaultConfig>
class vault::gear::BlockFlow< CONF >::StorageAdaptor

Adapt the access to the raw storage to present the Extents as Epoch; also caches the address resolution for performance reasons (+20%).

Definition at line 372 of file block-flow.hpp.

Public Member Functions

 StorageAdaptor ()=default
 
 StorageAdaptor (RawIter it)
 
bool checkPoint () const
 
Epochyield () const
 
void iterNext ()
 
void expandAlloc (size_t cnt=1)
 

Private Member Functions

EpochaccessEpoch ()
 

Private Attributes

Epochcurr_ {nullptr}
 

Constructor & Destructor Documentation

◆ StorageAdaptor() [1/2]

template<class CONF = blockFlow::DefaultConfig>
StorageAdaptor ( )
default

◆ StorageAdaptor() [2/2]

template<class CONF = blockFlow::DefaultConfig>
StorageAdaptor ( RawIter  it)
inline

Definition at line 386 of file block-flow.hpp.

Member Function Documentation

◆ accessEpoch()

template<class CONF = blockFlow::DefaultConfig>
Epoch * accessEpoch ( )
inlineprivate

Definition at line 378 of file block-flow.hpp.

References BlockFlow< CONF >::asEpoch().

Referenced by BlockFlow< CONF >::StorageAdaptor::expandAlloc(), and BlockFlow< CONF >::StorageAdaptor::iterNext().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkPoint()

template<class CONF = blockFlow::DefaultConfig>
bool checkPoint ( ) const
inline

Definition at line 392 of file block-flow.hpp.

References BlockFlow< CONF >::StorageAdaptor::curr_.

◆ yield()

template<class CONF = blockFlow::DefaultConfig>
Epoch & yield ( ) const
inline

Definition at line 398 of file block-flow.hpp.

References BlockFlow< CONF >::StorageAdaptor::curr_.

◆ iterNext()

template<class CONF = blockFlow::DefaultConfig>
void iterNext ( )
inline

Definition at line 404 of file block-flow.hpp.

References BlockFlow< CONF >::StorageAdaptor::accessEpoch(), and BlockFlow< CONF >::StorageAdaptor::curr_.

+ Here is the call graph for this function:

◆ expandAlloc()

template<class CONF = blockFlow::DefaultConfig>
void expandAlloc ( size_t  cnt = 1)
inline

Definition at line 412 of file block-flow.hpp.

References BlockFlow< CONF >::StorageAdaptor::accessEpoch(), and BlockFlow< CONF >::StorageAdaptor::curr_.

+ Here is the call graph for this function:

Member Data Documentation

◆ curr_

+ Inheritance diagram for BlockFlow< CONF >::StorageAdaptor:
+ Collaboration diagram for BlockFlow< CONF >::StorageAdaptor:

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