![]() |
VPTissue Reference Manual
|
A map to hold std::functions. More...
#include <FunctionMap.h>


Public Types | |
| using | FunctionType = std::function< S > |
Public Member Functions | |
| FunctionMap () | |
| Construct an empty map. | |
| FunctionMap (std::initializer_list< typename MapType::value_type > l) | |
| Construct map from initializer_list. | |
| virtual | ~FunctionMap () |
| Destructor must be virtual. | |
| FunctionType | Get (const std::string &name) const |
| Return function for given name. | |
| bool | IsValid (const std::string &name) const |
| Check whether function name is present. | |
| std::list< std::string > | List () const |
| List the names. | |
| bool | Register (const std::string &name, const FunctionType &f) |
| Register a function. | |
A map to hold std::functions.
Definition at line 36 of file FunctionMap.h.