HEBench
hebench::DataLoader::EDLTypedHelper< T > Class Template Reference

Static Public Member Functions

static void readDataBlock (std::vector< std::vector< std::vector< T >>> &out_data, std::istream &is, const std::vector< std::string_view > &control_line_tokens, const std::filesystem::path &working_path, std::uint64_t &line_num)
 Reads the next data block as described by the control line from the specified stream. More...
 

Detailed Description

template<typename T>
class hebench::DataLoader::EDLTypedHelper< T >

Definition at line 67 of file hebench_dataset_loader.cpp.

Member Function Documentation

◆ readDataBlock()

template<typename T >
void hebench::DataLoader::EDLTypedHelper< T >::readDataBlock ( std::vector< std::vector< std::vector< T >>> &  out_data,
std::istream &  is,
const std::vector< std::string_view > &  control_line_tokens,
const std::filesystem::path &  working_path,
std::uint64_t &  line_num 
)
static

Reads the next data block as described by the control line from the specified stream.

Parameters
[out]out_dataStructure where to store the read data.
isInput data stream.
[in]control_line_tokensControl line defining the data block.
[in]working_pathThe current working directory. Any relative paths will be resolved relative to this.
[in,out]line_numIncreases every time a line is extracted from the input stream is.
Exceptions
StandardC++ exception derived from std::exception on error describing the failure.
Returns
The number of lines extracted from the input stream.

This method returns the number of lines extracted from the input stream to complete the reading of the data block. Note that this counts empty lines and lines containing comments.

The stream reading pointer will be advanced to the next line after the data block.

Definition at line 204 of file hebench_dataset_loader.cpp.


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