|
Adaptyst
A comprehensive and architecture-agnostic performance analysis tool
|
#include <output.hpp>
Public Member Functions | |
| Array (Path &path, std::string name) | |
| T | operator[] (int index) |
| int | size () |
| void | push_back (T val) |
Public Member Functions inherited from adaptyst::File | |
| File (Path &path, std::string name, std::string extension="", bool truncate=true) | |
| File & | operator= (File &&source) |
| std::ifstream & | get_istream () |
| std::ofstream & | get_ostream () |
| void | save_metadata () |
Public Member Functions inherited from adaptyst::ObjectWithMetadata | |
| ObjectWithMetadata () | |
| template<class T> | |
| void | set_metadata (std::string key, T value, bool save=true) |
| template<class T> | |
| T | get_metadata (std::string key, T default_value) |
| template<class T> | |
| T | get_metadata (std::string key) |
Additional Inherited Members | |
Protected Attributes inherited from adaptyst::File | |
| Path & | path |
| std::string | name |
| std::ifstream | istream |
| std::ofstream | ostream |
Protected Attributes inherited from adaptyst::ObjectWithMetadata | |
| nlohmann::json | metadata |
This class represents an array of arbitrary values saved to a file and with metadata attached to it (thanks to inheriting from File which inherits from ObjectWithMetadata) and saved separately.
|
inline |
|
inline |
Accesses the index-th element of the array.
| index | Array index to access. |
|
inline |
Pushes a new element to the end of the array and saves the new array to disk.
| val | Value to push. |
|
inline |
Gets the current array size.