bes  Updated for version 3.20.8
dmrpp::SuperChunk Class Reference
Collaboration diagram for dmrpp::SuperChunk:
Collaboration graph

Public Member Functions

virtual bool add_chunk (std::shared_ptr< Chunk > candidate_chunk)
 Attempts to add a new Chunk to this SuperChunk. More...
 
virtual void dump (std::ostream &strm) const
 Writes the to_string() output to the stream strm. More...
 
virtual bool empty ()
 
std::vector< std::shared_ptr< Chunk > > get_chunks ()
 
virtual std::string get_data_url ()
 
virtual unsigned long long get_offset ()
 
virtual unsigned long long get_size ()
 
virtual void read ()
 Cause the SuperChunk and all of it's subordinate Chunks to be read. More...
 
std::string to_string (bool verbose) const
 Makes a string representation of the SuperChunk. More...
 

Detailed Description

Definition at line 39 of file SuperChunk.h.

Member Function Documentation

◆ add_chunk()

bool dmrpp::SuperChunk::add_chunk ( std::shared_ptr< Chunk candidate_chunk)
virtual

Attempts to add a new Chunk to this SuperChunk.

If the passed chunk has the same data url, and is it is contiguous with the current end if the SuperChunk the Chunk is added, otherwise it is skipped.

Parameters
candidate_chunkThe Chunk to add.
Returns
True when the chunk is added, false otherwise.

Definition at line 64 of file SuperChunk.cc.

◆ dump()

void dmrpp::SuperChunk::dump ( std::ostream &  strm) const
virtual

Writes the to_string() output to the stream strm.

Parameters
strm

Definition at line 286 of file SuperChunk.cc.

◆ read()

void dmrpp::SuperChunk::read ( )
virtual

Cause the SuperChunk and all of it's subordinate Chunks to be read.

Definition at line 168 of file SuperChunk.cc.

◆ to_string()

string dmrpp::SuperChunk::to_string ( bool  verbose = false) const

Makes a string representation of the SuperChunk.

Parameters
verboseIf set true then details of the subordinate Chunks will be included.
Returns
A string representation of the SuperChunk.

Definition at line 265 of file SuperChunk.cc.


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