maat::env::Library class

Emulated external library.

Contents

❱   Public functions

auto name() const -> const std::string&
Get the name of the library.

auto functions() const -> const std::vector<Function>&
Get all functions.

void add_function(const Function& function)
Add a function to the library.

auto get_function_by_name(const std::string& name) const -> const Function&
Get function by name. Raise an exception if the function doesn't exist in this library.

auto get_function_by_num(int num) const -> const Function&
Get function by num. Raise an exception if the number doesn't correspond to a function.

auto data() const -> const std::vector<Data>&
Get all exported data.

void add_data(const Data& data)
Add exported data to the library.

auto get_data_by_name(const std::string& name) const -> const Data&
Get exported data by name. Raise an exception if the data doesn't exist in this library.

auto total_data_size() const -> size_t
Return the total size of exported data in bytes.