.. index:: pair: class; TransceiverFunction .. _doxid-class_transceiver_function: class TransceiverFunction ========================= .. toctree:: :hidden: Overview ~~~~~~~~ Holds a single transfer function decorator. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class TransceiverFunction: public :ref:`TransceiverDataPackInterface`, public :ref:`PtrTemplates` { public: // construction :ref:`TransceiverFunction`(std::string linkedEngine, bool isPreprocessing); // methods virtual const std::string& :ref:`linkedEngineName`() const; virtual bool :ref:`isPreprocessing`() const; :ref:`TransceiverDataPackInterface::shared_ptr` :ref:`pySetup`(boost::python::object transceiverFunction); virtual boost::python::object :ref:`runTf`( boost::python::tuple& args, boost::python::dict& kwargs, :ref:`datapacks_set_t` dataPacks ); }; // direct descendants class :ref:`PreprocessingFunction`; 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`; // 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`* :ref:`getFunctionManager`(); .. _details-class_transceiver_function: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Holds a single transfer function decorator. Construction ------------ .. index:: pair: function; TransceiverFunction .. _doxid-class_transceiver_function_1a0e881e24f93df171b05317eddfda5730: .. ref-code-block:: cpp :class: doxyrest-title-code-block TransceiverFunction(std::string linkedEngine, bool isPreprocessing) Constructor. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - linkedEngine - Name of linked engine. This TF will only be called whenever Said engine finishes a timestep Methods ------- .. index:: pair: function; linkedEngineName .. _doxid-class_transceiver_function_1a42aad9886158c92a69c54964f90e6d43: .. 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_function_1a2a79a42ba9303d5a6980d08aa8d68679: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool isPreprocessing() const Indicates if this is a preprocessing function. .. index:: pair: function; pySetup .. _doxid-class_transceiver_function_1a573476ca789803466f05bc5590126e1d: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`TransceiverDataPackInterface::shared_ptr` pySetup(boost::python::object transceiverFunction) Decorator **call** () function. Takes the Transfer Function as a parameter. Moves this class into a shared_ptr. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - transceiverFunction - User defined TF .. rubric:: Returns: shared_ptr referencing data from this object .. index:: pair: function; runTf .. _doxid-class_transceiver_function_1a44d09781ea750aba5f610c120cd04cdd: .. 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 the transfer function. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - args - Python args * - kwargs - Python keywords .. rubric:: Returns: Returns result of TF