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

#include <daisy_rtl/arg_capture_io.h>

Public Member Functions

 ArgCaptureIO (const char *name)
const std::string & get_name () const
uint32_t get_current_invocation (std::string element_id) const
void invocation (std::string element_id)
void clear ()
bool create_and_capture_inline (int arg_idx, bool after, int primitive_type, const std::vector< size_t > &dims, const void *data, std::string node_id=std::string{})
bool create_and_capture_to_file (int arg_idx, bool after, int primitive_type, const std::vector< size_t > &dims, std::filesystem::path &file, const void *data, std::string node_id=std::string{})
bool capture_inline (ArgCapture &capture, const void *data, std::string node_id=std::string{})
bool write_capture_to_file (ArgCapture &capture, std::filesystem::path file, const void *data)
void write_index (std::filesystem::path base_file)
const std::unordered_map< std::string, std::unordered_map< std::pair< int32_t, bool >, ArgCapture, MyHash > > & get_captures () const

Static Public Member Functions

template<typename T = ArgCaptureIO>
static std::shared_ptr< T > from_index (const std::filesystem::path &file)
static bool write_data_to_raw_file (const std::filesystem::path &file, const void *src_data, size_t size)
static void read_data_from_raw_file (const std::filesystem::path &file, void *write_ptr, size_t size)

Protected Attributes

std::string name_
std::unordered_map< std::string, uint32_t > invokes_ = std::unordered_map<std::string, uint32_t>{}
std::unordered_map< std::string, std::unordered_map< std::pair< int32_t, bool >, ArgCapture, MyHash > > current_captures_

Constructor & Destructor Documentation

◆ ArgCaptureIO()

arg_capture::ArgCaptureIO::ArgCaptureIO ( const char * name)
inlineexplicit

Member Function Documentation

◆ capture_inline()

bool arg_capture::ArgCaptureIO::capture_inline ( ArgCapture & capture,
const void * data,
std::string node_id = std::string{} )

◆ clear()

void arg_capture::ArgCaptureIO::clear ( )

◆ create_and_capture_inline()

bool arg_capture::ArgCaptureIO::create_and_capture_inline ( int arg_idx,
bool after,
int primitive_type,
const std::vector< size_t > & dims,
const void * data,
std::string node_id = std::string{} )

◆ create_and_capture_to_file()

bool arg_capture::ArgCaptureIO::create_and_capture_to_file ( int arg_idx,
bool after,
int primitive_type,
const std::vector< size_t > & dims,
std::filesystem::path & file,
const void * data,
std::string node_id = std::string{} )

◆ from_index()

template<typename T>
std::shared_ptr< T > arg_capture::ArgCaptureIO::from_index ( const std::filesystem::path & file)
static

◆ get_captures()

const std::unordered_map< std::string, std::unordered_map< std::pair< int32_t, bool >, ArgCapture, MyHash > > & arg_capture::ArgCaptureIO::get_captures ( ) const

◆ get_current_invocation()

uint32_t arg_capture::ArgCaptureIO::get_current_invocation ( std::string element_id) const

◆ get_name()

const std::string & arg_capture::ArgCaptureIO::get_name ( ) const

◆ invocation()

void arg_capture::ArgCaptureIO::invocation ( std::string element_id)

◆ read_data_from_raw_file()

void arg_capture::ArgCaptureIO::read_data_from_raw_file ( const std::filesystem::path & file,
void * write_ptr,
size_t size )
static

◆ write_capture_to_file()

bool arg_capture::ArgCaptureIO::write_capture_to_file ( ArgCapture & capture,
std::filesystem::path file,
const void * data )

◆ write_data_to_raw_file()

bool arg_capture::ArgCaptureIO::write_data_to_raw_file ( const std::filesystem::path & file,
const void * src_data,
size_t size )
static

◆ write_index()

void arg_capture::ArgCaptureIO::write_index ( std::filesystem::path base_file)

Member Data Documentation

◆ current_captures_

std::unordered_map<std::string, std::unordered_map<std::pair<int32_t, bool>, ArgCapture, MyHash> > arg_capture::ArgCaptureIO::current_captures_
protected

◆ invokes_

std::unordered_map<std::string, uint32_t> arg_capture::ArgCaptureIO::invokes_ = std::unordered_map<std::string, uint32_t>{}
protected

◆ name_

std::string arg_capture::ArgCaptureIO::name_
protected

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