![]() |
Scanframe Modular Application 0.1.0
|
Nested holder storing a function with a specific signature. More...
#include <FunctionRegistry.h>
Public Member Functions | |
Holder (std::function< R(Args...)> f) | |
Constructor accepting a std::function. | |
std::type_index | returnType () const override |
Get the return type of the stored function. | |
std::vector< std::type_index > | argTypes () const override |
Get the argument types of the stored function. | |
R | invoke (Args... args) const |
Invoke the stored function. | |
![]() | |
virtual | ~Base ()=default |
Nested holder storing a function with a specific signature.
|
explicit |
Constructor accepting a std::function.
f | Function to store |
|
overridevirtual |
Get the argument types of the stored function.
Implements sf::FunctionRegistry::Base.
R sf::FunctionRegistry::Registration< R, Args >::Holder::invoke | ( | Args... | args | ) | const |
Invoke the stored function.
args | Arguments to pass |
|
overridevirtual |
Get the return type of the stored function.
Implements sf::FunctionRegistry::Base.