Adaptyst
A comprehensive and architecture-agnostic performance analysis tool
Loading...
Searching...
No Matches
adaptyst::Module Class Reference

#include <system.hpp>

Inheritance diagram for adaptyst::Module:
adaptyst::Identifiable

Classes

struct  OptionMetadata
 

Public Member Functions

 Module (std::string backend_name, fs::path library_path)
 
 Module (std::string backend_name, std::unordered_map< std::string, std::string > &options, std::unordered_map< std::string, std::vector< std::string > > &array_options, fs::path library_path, bool never_directing)
 
 ~Module ()
 
bool init ()
 
void process (std::string sdfg)
 
bool wait ()
 
void close ()
 
void set_will_profile (bool will_profile)
 
bool get_will_profile ()
 
void set_error (std::string error)
 
std::unordered_map< std::string, option > & get_options ()
 
std::unique_ptr< Path > & get_dir ()
 
std::unordered_set< std::string > & get_tags ()
 
std::unordered_map< std::string, OptionMetadata > & get_all_options ()
 
void set_dir (fs::path dir)
 
void profile_notify ()
 
int profile_wait ()
 
std::vector< std::string > get_log_types ()
 
std::string get_type ()
 
std::string & get_node_name ()
 
void set_api_error (std::string msg, int code)
 
int get_api_error_code ()
 
std::string & get_api_error_msg ()
 
bool is_directing_node ()
 
void add_src_code_path (fs::path path)
 
void set_node (Node *node)
 
fs::path & get_tmp_dir ()
 
fs::path & get_local_config_dir ()
 
bool has_in_tag (std::string tag)
 
bool has_out_tag (std::string tag)
 
profile_infoget_profile_info ()
 
void set_profile_info (profile_info info)
 
bool is_initialising ()
 
const char * get_cpu_mask ()
 
std::unordered_set< fs::path > & get_src_code_paths ()
 
std::string get_name ()
 
std::string get_version ()
 
std::vector< int > get_version_nums ()
 
fs::path get_lib_path ()
 
unsigned int get_max_count_per_entity ()
 
- Public Member Functions inherited from adaptyst::Identifiable
std::string & get_name ()
 
void set_parent (Identifiable *identifiable)
 
std::string get_parent_name ()
 
fs::path & get_path (fs::path start)
 

Static Public Member Functions

static std::vector< std::unique_ptr< Module > > get_all_modules (fs::path library_path)
 

Static Public Attributes

static std::unordered_map< amod_t, Module * > all_modules
 
static amod_t next_module_id = 1
 

Additional Inherited Members

- Protected Member Functions inherited from adaptyst::Identifiable
 Identifiable (std::string name)
 
void throw_error (std::string msg)
 

Constructor & Destructor Documentation

◆ Module() [1/2]

adaptyst::Module::Module ( std::string backend_name,
fs::path library_path )

◆ Module() [2/2]

adaptyst::Module::Module ( std::string backend_name,
std::unordered_map< std::string, std::string > & options,
std::unordered_map< std::string, std::vector< std::string > > & array_options,
fs::path library_path,
bool never_directing )

◆ ~Module()

adaptyst::Module::~Module ( )

Member Function Documentation

◆ add_src_code_path()

void adaptyst::Module::add_src_code_path ( fs::path path)

◆ close()

void adaptyst::Module::close ( )

◆ get_all_modules()

std::vector< std::unique_ptr< Module > > adaptyst::Module::get_all_modules ( fs::path library_path)
static

◆ get_all_options()

std::unordered_map< std::string, Module::OptionMetadata > & adaptyst::Module::get_all_options ( )

◆ get_api_error_code()

int adaptyst::Module::get_api_error_code ( )

◆ get_api_error_msg()

std::string & adaptyst::Module::get_api_error_msg ( )

◆ get_cpu_mask()

const char * adaptyst::Module::get_cpu_mask ( )

◆ get_dir()

std::unique_ptr< Path > & adaptyst::Module::get_dir ( )

◆ get_lib_path()

fs::path adaptyst::Module::get_lib_path ( )

◆ get_local_config_dir()

fs::path & adaptyst::Module::get_local_config_dir ( )

◆ get_log_types()

std::vector< std::string > adaptyst::Module::get_log_types ( )
virtual

◆ get_max_count_per_entity()

unsigned int adaptyst::Module::get_max_count_per_entity ( )

◆ get_name()

std::string adaptyst::Module::get_name ( )

◆ get_node_name()

std::string & adaptyst::Module::get_node_name ( )

◆ get_options()

std::unordered_map< std::string, option > & adaptyst::Module::get_options ( )

◆ get_profile_info()

profile_info & adaptyst::Module::get_profile_info ( )

◆ get_src_code_paths()

std::unordered_set< fs::path > & adaptyst::Module::get_src_code_paths ( )

◆ get_tags()

std::unordered_set< std::string > & adaptyst::Module::get_tags ( )

◆ get_tmp_dir()

fs::path & adaptyst::Module::get_tmp_dir ( )

◆ get_type()

std::string adaptyst::Module::get_type ( )
virtual

◆ get_version()

std::string adaptyst::Module::get_version ( )

◆ get_version_nums()

std::vector< int > adaptyst::Module::get_version_nums ( )

◆ get_will_profile()

bool adaptyst::Module::get_will_profile ( )

◆ has_in_tag()

bool adaptyst::Module::has_in_tag ( std::string tag)

◆ has_out_tag()

bool adaptyst::Module::has_out_tag ( std::string tag)

◆ init()

bool adaptyst::Module::init ( )

◆ is_directing_node()

bool adaptyst::Module::is_directing_node ( )

◆ is_initialising()

bool adaptyst::Module::is_initialising ( )

◆ process()

void adaptyst::Module::process ( std::string sdfg)

◆ profile_notify()

void adaptyst::Module::profile_notify ( )

◆ profile_wait()

int adaptyst::Module::profile_wait ( )

◆ set_api_error()

void adaptyst::Module::set_api_error ( std::string msg,
int code )

◆ set_dir()

void adaptyst::Module::set_dir ( fs::path dir)

◆ set_error()

void adaptyst::Module::set_error ( std::string error)

◆ set_node()

void adaptyst::Module::set_node ( Node * node)

◆ set_profile_info()

void adaptyst::Module::set_profile_info ( profile_info info)

◆ set_will_profile()

void adaptyst::Module::set_will_profile ( bool will_profile)

◆ wait()

bool adaptyst::Module::wait ( )

Member Data Documentation

◆ all_modules

std::unordered_map< amod_t, Module * > adaptyst::Module::all_modules
static

◆ next_module_id

amod_t adaptyst::Module::next_module_id = 1
static

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