A SuperChunk is a collection of contiguous Chunk objects along with optimized methods for data retrieval and inflation.
More...
#include <SuperChunk.h>
A SuperChunk is a collection of contiguous Chunk objects along with optimized methods for data retrieval and inflation.
Definition at line 47 of file SuperChunk.h.
◆ SuperChunk()
dmrpp::SuperChunk::SuperChunk |
( |
const std::string |
sc_id, |
|
|
DmrppArray * |
parent = nullptr |
|
) |
| |
|
inlineexplicit |
◆ ~SuperChunk()
virtual dmrpp::SuperChunk::~SuperChunk |
( |
| ) |
|
|
inlinevirtual |
◆ 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_chunk | The Chunk to add. |
- Returns
- True when the chunk is added, false otherwise.
Definition at line 400 of file SuperChunk.cc.
◆ dump()
void dmrpp::SuperChunk::dump |
( |
std::ostream & |
strm | ) |
const |
|
virtual |
◆ empty()
virtual bool dmrpp::SuperChunk::empty |
( |
| ) |
|
|
inlinevirtual |
◆ get_chunks()
std::vector< std::shared_ptr< Chunk > > dmrpp::SuperChunk::get_chunks |
( |
| ) |
|
|
inline |
◆ get_data_url()
std::shared_ptr< http::url > dmrpp::SuperChunk::get_data_url |
( |
| ) |
|
|
inline |
◆ get_offset()
virtual unsigned long long dmrpp::SuperChunk::get_offset |
( |
| ) |
|
|
inlinevirtual |
◆ get_size()
virtual unsigned long long dmrpp::SuperChunk::get_size |
( |
| ) |
|
|
inlinevirtual |
◆ id()
virtual std::string dmrpp::SuperChunk::id |
( |
| ) |
|
|
inlinevirtual |
◆ process_child_chunks()
void dmrpp::SuperChunk::process_child_chunks |
( |
| ) |
|
|
virtual |
Reads the SuperChunk, inflates/deshuffles the subordinate chunks as required and copies the values into array.
- Parameters
-
target_array | The array into which to write the data. |
Definition at line 540 of file SuperChunk.cc.
◆ process_child_chunks_unconstrained()
void dmrpp::SuperChunk::process_child_chunks_unconstrained |
( |
| ) |
|
|
virtual |
Reads the SuperChunk, inflates/deshuffles the subordinate chunks as required and copies the values into array.
- Parameters
-
target_array | The array into which to write the data. |
Definition at line 578 of file SuperChunk.cc.
◆ read()
virtual void dmrpp::SuperChunk::read |
( |
| ) |
|
|
inlinevirtual |
◆ read_unconstrained()
virtual void dmrpp::SuperChunk::read_unconstrained |
( |
| ) |
|
|
inlinevirtual |
◆ retrieve_data()
void dmrpp::SuperChunk::retrieve_data |
( |
| ) |
|
|
virtual |
◆ to_string()
string dmrpp::SuperChunk::to_string |
( |
bool |
verbose = false | ) |
const |
Makes a string representation of the SuperChunk.
- Parameters
-
verbose | If set true then details of the subordinate Chunks will be included. |
- Returns
- A string representation of the SuperChunk.
Definition at line 619 of file SuperChunk.cc.
The documentation for this class was generated from the following files: