template class InputEdge

Overview

Helper template class used to implement Python input edge decorators. More…

#include <input_edge.h>

template <class T_IN, class T_OUT, INPUT_C<T_IN> INPUT_CLASS>
class InputEdge {
public:
    // construction

    InputEdge();

    InputEdge(
        std::string keyword,
        std::string id,
        std::string port,
        InputNodePolicies::MsgPublishPolicy msgPublishPolicy,
        InputNodePolicies::MsgCachePolicy msgCachePolicy
    );

    // methods

    boost::python::object pySetup(const boost::python::object& obj);
};

// direct descendants

class InputClockEdge;
class InputDummyEdge;
class InputEngineEdge;
class InputIterationEdge;

template <class MSG_TYPE>
class InputMQTTEdge;

template <class MSG_TYPE>
class InputROSEdge;

class InputSpinnakerEdge;

Detailed Documentation

Helper template class used to implement Python input edge decorators.

Construction

InputEdge(
    std::string keyword,
    std::string id,
    std::string port,
    InputNodePolicies::MsgPublishPolicy msgPublishPolicy,
    InputNodePolicies::MsgCachePolicy msgCachePolicy
)

Constructor.

Methods

boost::python::object pySetup(const boost::python::object& obj)

call function in associated Python decorator

It creates and registers an input node. Afterwards add a port to it and registers an edge to ‘obj’. ‘obj’ is expected to be a Python object wrapping a Functional Node