![]() |
Scanframe Modular Application 0.1.0
|
Registration handle templated on function signature. More...
#include <FunctionRegistry.h>
Classes | |
| class | Holder |
| Nested holder storing a function with a specific signature. More... | |
Public Member Functions | |
| Registration (const std::string_view &name) | |
| Construct registration by function name. | |
| bool | isValid () const noexcept |
| Check if the registration is valid. | |
| std::string | description () |
| Gets the given description og the registered function. | |
| operator bool () const noexcept | |
| Operator type of the isValid() method. | |
| R | call (Args... args) const |
| Calls the registered function when it exists. | |
| R | operator() (Args... args) const |
| Operator type of the call() method. | |
Registration handle templated on function signature.
| R | Return type |
| Args | Argument types |
|
explicit |
Construct registration by function name.
| name | Name and signature key |
| R sf::FunctionRegistry::Registration< R, Args >::call | ( | Args... | args | ) | const |
Calls the registered function when it exists.
| args | Arguments to pass |
| std::runtime_error | When it does not exist. |
| std::string sf::FunctionRegistry::Registration< R, Args >::description | ( | ) |
Gets the given description og the registered function.
|
noexcept |
Check if the registration is valid.
|
noexcept |
Operator type of the isValid() method.
| R sf::FunctionRegistry::Registration< R, Args >::operator() | ( | Args... | args | ) | const |
Operator type of the call() method.