Go to the documentation of this file.
22 #ifndef TRANSCEIVER_FUNCTION_H
23 #define TRANSCEIVER_FUNCTION_H
31 #include <boost/python.hpp>
66 boost::python::object
runTf(boost::python::tuple &
args, boost::python::dict &kwargs,
datapacks_set_t dataPacks)
override;
77 boost::python::object _function;
82 std::string _linkedEngine;
87 bool _isPreprocessing;
103 void checkTFOutputIsCorrectOrRaise(
const boost::python::object &tfOutput)
const;
106 #endif // TRANSCEIVER_FUNCTION_H
std::set< std::shared_ptr< const DataPackInterface >, DataPackPointerComparator > datapacks_set_t
Definition: datapack_interface.h:219
const std::string & linkedEngineName() const override
Get name of engine this transceiver is linked to.
Definition: transceiver_function.cpp:30
Holds a single transfer function decorator.
Definition: transceiver_function.h:36
Namespace args
Definition: python_json_engine.py:196
std::set< DataPackIdentifier > datapack_identifiers_set_t
Definition: datapack_interface.h:221
virtual ~TransceiverFunction() override=default
Definition: ptr_templates.h:28
Base of TF Decorators.
Definition: transceiver_datapack_interface.h:40
datapack_identifiers_set_t getRequestedDataPackIDs() const override
Returns datapack IDs of this DataPack that should be requested from the engines. TODO: Make protected...
Definition: transceiver_function.cpp:84
std::shared_ptr< TransceiverDataPackInterface > shared_ptr
Definition: ptr_templates.h:31
boost::python::object runTf(boost::python::tuple &args, boost::python::dict &kwargs, datapacks_set_t dataPacks) override
Execute the transfer function.
Definition: transceiver_function.cpp:49
datapack_identifiers_set_t updateRequestedDataPackIDs(datapack_identifiers_set_t &&datapackIDs) const override
Appends its own datapack requests onto datapackIDs. Uses getRequestedDataPackIDs to check which IDs a...
Definition: transceiver_function.cpp:89
TransceiverDataPackInterface::shared_ptr pySetup(boost::python::object transceiverFunction)
Decorator call() function. Takes the Transfer Function as a parameter. Moves this class into a shared...
Definition: transceiver_function.cpp:36
bool isPreprocessing() const override
Indicates if this is a preprocessing function.
Definition: transceiver_function.cpp:33
TransceiverFunction(std::string linkedEngine, bool isPreprocessing)
Constructor.
Definition: transceiver_function.cpp:25