Pothos  0.7.0-gf7fbae99
The Pothos dataflow programming software suite
Public Member Functions | List of all members
Pothos::CallRegistry Class Referenceabstract

#include <CallRegistry.hpp>

Inheritance diagram for Pothos::CallRegistry:
Inheritance graph
[legend]

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
 

Detailed Description

CallRegistry is an interface for registering class methods.

Constructor & Destructor Documentation

◆ ~CallRegistry()

virtual Pothos::CallRegistry::~CallRegistry ( void  )
virtual

Virtual destructor for subclassing.

Member Function Documentation

◆ registerCall() [1/2]

template<typename... ArgsType, typename ReturnType , typename ClassType , typename InstanceType >
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);

◆ registerCall() [2/2]

template<typename... ArgsType, typename ReturnType , typename ClassType , typename InstanceType >
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);

◆ registerCallable()

virtual void Pothos::CallRegistry::registerCallable ( const std::string &  name,
const Callable call 
)
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.


The documentation for this class was generated from the following files: