CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::ChunkedDataLoader< TStorageTraits > Class Template Reference

Loads data from an input stream in chunks. More...

Collaboration diagram for catapult::cache::ChunkedDataLoader< TStorageTraits >:

Public Member Functions

 ChunkedDataLoader (io::InputStream &input)
 Creates a chunked loader around input. More...
 
bool hasNext () const
 Returns true if there are more entries in the input. More...
 
void next (uint64_t numRequestedEntries, typename TStorageTraits::DestinationType &destination)
 Loads the next data chunk of at most numRequestedEntries into destination. More...
 

Private Attributes

io::InputStreamm_input
 
uint64_t m_numRemainingEntries
 

Detailed Description

template<typename TStorageTraits>
class catapult::cache::ChunkedDataLoader< TStorageTraits >

Loads data from an input stream in chunks.

Constructor & Destructor Documentation

◆ ChunkedDataLoader()

template<typename TStorageTraits>
catapult::cache::ChunkedDataLoader< TStorageTraits >::ChunkedDataLoader ( io::InputStream input)
inlineexplicit

Creates a chunked loader around input.

Here is the call graph for this function:

Member Function Documentation

◆ hasNext()

template<typename TStorageTraits>
bool catapult::cache::ChunkedDataLoader< TStorageTraits >::hasNext ( ) const
inline

Returns true if there are more entries in the input.

Here is the caller graph for this function:

◆ next()

template<typename TStorageTraits>
void catapult::cache::ChunkedDataLoader< TStorageTraits >::next ( uint64_t  numRequestedEntries,
typename TStorageTraits::DestinationType &  destination 
)
inline

Loads the next data chunk of at most numRequestedEntries into destination.

Here is the caller graph for this function:

Member Data Documentation

◆ m_input

template<typename TStorageTraits>
io::InputStream& catapult::cache::ChunkedDataLoader< TStorageTraits >::m_input
private

◆ m_numRemainingEntries

template<typename TStorageTraits>
uint64_t catapult::cache::ChunkedDataLoader< TStorageTraits >::m_numRemainingEntries
private

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