![]() |
Shamrock 2025.10.0
Astrophysical Code
|
#include <shamtest/details/TestData.hpp>
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< DataNode > | dataset |
| Dataset. | |
< Test data
Definition at line 23 of file TestData.hpp.
|
inline |
Add some data to the dataset.
Definition at line 28 of file TestData.hpp.
|
static |
DeSerialize the assertion from binary format.
Definition at line 47 of file TestData.cpp.
| void shamtest::details::TestData::serialize | ( | std::basic_stringstream< byte > & | stream | ) |
Serialize the assertion in binary format.
Definition at line 42 of file TestData.cpp.
| std::string shamtest::details::TestData::serialize_json | ( | ) |
Serialize the assertion in JSON.
Definition at line 22 of file TestData.cpp.
| std::vector<DataNode> shamtest::details::TestData::dataset |
Dataset.
Definition at line 25 of file TestData.hpp.
| std::string shamtest::details::TestData::dataset_name |
Name of the dataset.
Definition at line 24 of file TestData.hpp.