CGRA-ME
|
Special helper for registering mappers to the default mapper registry. More...
#include <Mapper.h>
Public Member Functions | |
AutoRegisterMapper (std::string mapper_id, MapperMaker maker, bool is_composite, std::string mapper_description, std::vector< ImplicitTuple< std::string, ImplicitlyToString, std::string >> required_arg_names_defaults_and_descriptions, std::vector< std::pair< std::string, std::string >> optional_arg_regexes_and_descriptions) | |
Register a mapper with the default registry. See MapperRegistry::registerMapper for documentation. More... | |
Static Public Member Functions | |
static const MapperRegistry & | getDefaultRegistry () |
Public read-only access to the mapper registry that this class automatically adds mappers to. More... | |
Static Private Member Functions | |
static MapperRegistry & | getDefaultMutableRegisty () |
Special helper for registering mappers to the default mapper registry.
Simply make a static (eg. file scope) variable of this type initialized with your ID, description, maker callback, and arg specs. The mapper will then be available to choose from at the command-line. This still works if dynamic linking of shared objects is used. Be careful about static initialization order! (only use variables defined in the same file, and above the current line) At the time of writing, the default registry has the seed
, max_threads
, verbosity
model_dump_filename
and model_IIS_dump_filename
common default keys.
Ex.:
AutoRegisterMapper::AutoRegisterMapper | ( | std::string | mapper_id, |
MapperMaker | maker, | ||
bool | is_composite, | ||
std::string | mapper_description, | ||
std::vector< ImplicitTuple< std::string, ImplicitlyToString, std::string >> | required_arg_names_defaults_and_descriptions, | ||
std::vector< std::pair< std::string, std::string >> | optional_arg_regexes_and_descriptions | ||
) |
Register a mapper with the default registry. See MapperRegistry::registerMapper for documentation.
Definition at line 236 of file Mapper.cpp.
|
staticprivate |
Definition at line 224 of file Mapper.cpp.
|
inlinestatic |