Parent class to all Function classes.
More...
#include <value.hpp>
|
| GenFunction (const std::string &name, const std::string &impl) |
|
std::string & | get_name () |
|
std::string & | get_impl () |
|
|
static std::string | format_code (const std::string &code) |
| Attempt to invoke clang-format for the purpose of printing out nicely formatted functions to the log file. More...
|
|
static std::string | summary () |
|
template<typename T > |
static Function< T > & | register_function (const std::string &name, std::function< T > f, const std::string &impl) |
|
template<typename T > |
static Function< T > & | lookup_function (const std::string &name) |
|
|
static std::map< const std::string, GenFunction * > | function_registry |
| Static mapping of functions from their name to the object wrapper of the function.
|
|
|
static bool | in_register_function =false |
|
|
std::string | name |
|
std::string | impl |
|
Parent class to all Function classes.
Holds a class-level collection of all created function objects.
◆ format_code()
static std::string fv::GenFunction::format_code |
( |
const std::string & |
code | ) |
|
|
inlinestatic |
Attempt to invoke clang-format for the purpose of printing out nicely formatted functions to the log file.
If clang-format is not present, this function just passes through the code unmodified.
The documentation for this class was generated from the following file: