docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
arg_capture::ArgCapture Struct Reference

#include <daisy_rtl/arg_capture_io.h>

Public Member Functions

 ArgCapture ()=default
 ArgCapture (int32_t idx, bool after, int primitive_type, const std::vector< size_t > dims)
 ArgCapture (const ArgCapture &other)
 ArgCapture (const ArgCapture &&other) noexcept
void serialize_into (nlohmann::json &j) const

Static Public Member Functions

static void parse_from (const nlohmann::json &entry, std::unordered_map< std::pair< int32_t, bool >, ArgCapture, MyHash > &map, std::filesystem::path base_path=std::filesystem::path())

Public Attributes

int32_t arg_idx
bool after
const std::vector< size_t > dims {0}
 innermost dimension is always the element size
int primitive_type
std::shared_ptr< const std::filesystem::path > ext_file
std::shared_ptr< const std::vector< uint8_t > > data

Constructor & Destructor Documentation

◆ ArgCapture() [1/4]

arg_capture::ArgCapture::ArgCapture ( )
default

◆ ArgCapture() [2/4]

arg_capture::ArgCapture::ArgCapture ( int32_t idx,
bool after,
int primitive_type,
const std::vector< size_t > dims )
inline

◆ ArgCapture() [3/4]

arg_capture::ArgCapture::ArgCapture ( const ArgCapture & other)
inline

◆ ArgCapture() [4/4]

arg_capture::ArgCapture::ArgCapture ( const ArgCapture && other)
inlinenoexcept

Member Function Documentation

◆ parse_from()

void arg_capture::ArgCapture::parse_from ( const nlohmann::json & entry,
std::unordered_map< std::pair< int32_t, bool >, ArgCapture, MyHash > & map,
std::filesystem::path base_path = std::filesystem::path() )
static

◆ serialize_into()

void arg_capture::ArgCapture::serialize_into ( nlohmann::json & j) const

Member Data Documentation

◆ after

bool arg_capture::ArgCapture::after

◆ arg_idx

int32_t arg_capture::ArgCapture::arg_idx

◆ data

std::shared_ptr<const std::vector<uint8_t> > arg_capture::ArgCapture::data

◆ dims

const std::vector<size_t> arg_capture::ArgCapture::dims {0}

innermost dimension is always the element size

◆ ext_file

std::shared_ptr<const std::filesystem::path> arg_capture::ArgCapture::ext_file

◆ primitive_type

int arg_capture::ArgCapture::primitive_type

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