Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shamtest::details::TestData Struct Reference

< Test data More...

#include <shamtest/details/TestData.hpp>

Collaboration diagram for shamtest::details::TestData:

Public Member Functions

void add_data (std::string name, const std::vector< f64 > &v)
 Add some data to the dataset.
std::string serialize_json ()
 Serialize the assertion in JSON.
void serialize (std::basic_stringstream< byte > &stream)
 Serialize the assertion in binary format.

Static Public Member Functions

static TestData deserialize (std::basic_stringstream< byte > &stream)
 DeSerialize the assertion from binary format.

Public Attributes

std::string dataset_name
 Name of the dataset.
std::vector< DataNodedataset
 Dataset.

Detailed Description

< Test data

Definition at line 23 of file TestData.hpp.

Member Function Documentation

◆ add_data()

void shamtest::details::TestData::add_data ( std::string name,
const std::vector< f64 > & v )
inline

Add some data to the dataset.

Definition at line 28 of file TestData.hpp.

◆ deserialize()

TestData shamtest::details::TestData::deserialize ( std::basic_stringstream< byte > & stream)
static

DeSerialize the assertion from binary format.

Definition at line 47 of file TestData.cpp.

Here is the call graph for this function:

◆ serialize()

void shamtest::details::TestData::serialize ( std::basic_stringstream< byte > & stream)

Serialize the assertion in binary format.

Definition at line 42 of file TestData.cpp.

Here is the call graph for this function:

◆ serialize_json()

std::string shamtest::details::TestData::serialize_json ( )

Serialize the assertion in JSON.

Definition at line 22 of file TestData.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ dataset

std::vector<DataNode> shamtest::details::TestData::dataset

Dataset.

Definition at line 25 of file TestData.hpp.

◆ dataset_name

std::string shamtest::details::TestData::dataset_name

Name of the dataset.

Definition at line 24 of file TestData.hpp.


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