.. index:: pair: class; TransceiverDataPackInterface .. _doxid-class_transceiver_data_pack_interface: class TransceiverDataPackInterface ================================== .. toctree:: :hidden: Overview ~~~~~~~~ Base of TF Decorators. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class TransceiverDataPackInterface: public :ref:`PtrTemplates` { public: // methods template :ref:`TransceiverDataPackInterface::shared_ptr` :ref:`pySetup`(const :ref:`TransceiverDataPackInterface::shared_ptr`& tfDataPack); virtual const std::string& :ref:`linkedEngineName`() const; virtual bool :ref:`isPreprocessing`() const; virtual boost::python::object :ref:`runTf`( boost::python::tuple& args, boost::python::dict& kwargs, :ref:`datapacks_set_t` dataPacks ); virtual :ref:`datapack_identifiers_set_t` :ref:`updateRequestedDataPackIDs`(:ref:`datapack_identifiers_set_t`&& datapackIDs = :ref:`datapack_identifiers_set_t`()) const; virtual :ref:`datapack_identifiers_set_t` :ref:`getRequestedDataPackIDs`() const; static void :ref:`setTFInterpreter`(:ref:`FunctionManager`* interpreter); static const :ref:`FunctionManager`* :target:`getFunctionManager`(); }; // direct descendants class :ref:`EngineDataPack`; class :ref:`EngineDataPacks`; class :ref:`SimulationIterationDecorator`; class :ref:`SimulationTimeDecorator`; class :ref:`StatusFunction`; class :ref:`TransceiverFunction`; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // typedefs typedef std::shared_ptr :ref:`shared_ptr`; typedef std::shared_ptr :ref:`const_shared_ptr`; typedef std::unique_ptr :ref:`unique_ptr`; typedef std::unique_ptr :ref:`const_unique_ptr`; .. _details-class_transceiver_data_pack_interface: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Base of TF Decorators. Methods ------- .. index:: pair: function; pySetup .. _doxid-class_transceiver_data_pack_interface_1ad14f7dc9eb8b8e09e4281fbf20a9583e: .. ref-code-block:: cpp :class: doxyrest-title-code-block template :ref:`TransceiverDataPackInterface::shared_ptr` pySetup(const :ref:`TransceiverDataPackInterface::shared_ptr`& tfDataPack) Decorator **call** () function. Takes the lower decorator as a parameter. Moves the given class into a shared_ptr, which will be managed by the next decorator. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - tfDataPack - Lower Decorator .. rubric:: Returns: shared_ptr referencing data from this object .. index:: pair: function; linkedEngineName .. _doxid-class_transceiver_data_pack_interface_1a0857c957956587af7a92f981a26ec987: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual const std::string& linkedEngineName() const Get name of engine this transceiver is linked to. .. index:: pair: function; isPreprocessing .. _doxid-class_transceiver_data_pack_interface_1a22bbf4eb17c7c35d894b2ffb4bb762c9: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool isPreprocessing() const Indicates if this is a preprocessing function. .. index:: pair: function; runTf .. _doxid-class_transceiver_data_pack_interface_1af3e70d106ebadb7d8cf71c48b39a9043: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual boost::python::object runTf( boost::python::tuple& args, boost::python::dict& kwargs, :ref:`datapacks_set_t` dataPacks ) Execute Transceiver Function. Base class will simply call runTf on _function. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - args - Arguments for execution. Can be altered by any TransceiverDataPackInterfaces. Base class will only pass them along * - kwargs - Keyword arguments for execution. Can be altered by any TransceiverDataPackInterfaces. Base class will only pass them along .. rubric:: Returns: Returns result of :ref:`TransceiverFunction ` execution. .. index:: pair: function; updateRequestedDataPackIDs .. _doxid-class_transceiver_data_pack_interface_1af4e5f51d7def898d42ca74da7311be31: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`datapack_identifiers_set_t` updateRequestedDataPackIDs(:ref:`datapack_identifiers_set_t`&& datapackIDs = :ref:`datapack_identifiers_set_t`()) const Appends its own datapack requests onto datapackIDs. Uses getRequestedDataPackIDs to check which IDs are requested by this datapack. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - datapackIDs - Container with datapack IDs that gets expanded .. rubric:: Returns: Returns datapackIDs, with own datapackIDs appended .. index:: pair: function; getRequestedDataPackIDs .. _doxid-class_transceiver_data_pack_interface_1a93b17cbf01d3a38938ed50d64aff7ebf: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`datapack_identifiers_set_t` getRequestedDataPackIDs() const Returns datapack IDs of this :ref:`DataPack ` that should be requested from the engines. TODO: Make protected. .. index:: pair: function; setTFInterpreter .. _doxid-class_transceiver_data_pack_interface_1a3626e61d35dadf407ec44706a96dd242: .. ref-code-block:: cpp :class: doxyrest-title-code-block static void setTFInterpreter(:ref:`FunctionManager`* interpreter) Set global TF Interpreter. All Transceiver Functions will register themselves with it upon creation. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - interpreter - Interpreter to use