Pothos
0.4.1-gb758ed46
The Pothos dataflow programming software suite
|
#include <CallRegistry.hpp>
Public Member Functions | |
virtual | ~CallRegistry (void) |
Virtual destructor for subclassing. More... | |
template<typename... ArgsType, typename ReturnType , typename ClassType , typename InstanceType > | |
void | registerCall (InstanceType *instance, const std::string &name, ReturnType(ClassType::*method)(ArgsType...)) |
template<typename... ArgsType, typename ReturnType , typename ClassType , typename InstanceType > | |
void | registerCall (InstanceType *instance, const std::string &name, ReturnType(ClassType::*method)(ArgsType...) const) |
virtual void | registerCallable (const std::string &name, const Callable &call)=0 |
CallRegistry is an interface for registering class methods.
|
virtual |
Virtual destructor for subclassing.
void Pothos::CallRegistry::registerCall | ( | InstanceType * | instance, |
const std::string & | name, | ||
ReturnType(ClassType::*)(ArgsType...) | method | ||
) |
Register a class method with the given name. Usage: this->registerCall(this, "foo", &MyClass::foo);
void Pothos::CallRegistry::registerCall | ( | InstanceType * | instance, |
const std::string & | name, | ||
ReturnType(ClassType::*)(ArgsType...) const | method | ||
) |
Register a class method with the given name. Usage: this->registerCall(this, "foo", &MyClass::foo);
|
pure virtual |
Register a bound call with the given name. The first argument of the call should have the class instance bound.
Implemented in Pothos::Block, and Pothos::Topology.