.. index:: pair: class; FunctionalNodeFactory .. _doxid-class_functional_node_factory: class FunctionalNodeFactory =========================== .. toctree:: :hidden: Overview ~~~~~~~~ Creates an instance of :ref:`FunctionalNode ` with the right template given a function signature. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class FunctionalNodeFactory { public: // methods template static auto :ref:`create`( const std::string& id, std::function f, :ref:`FunctionalNodePolicies::ExecutionPolicy` policy = FunctionalNodePolicies::ExecutionPolicy::ON_NEW_INPUT ); }; .. _details-class_functional_node_factory: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Creates an instance of :ref:`FunctionalNode ` with the right template given a function signature. It hides all the complexity related with specifying correctly :ref:`FunctionalNode ` template and performs function signature checking ensuring that the instantiated :ref:`FunctionalNode ` is correct Methods ------- .. index:: pair: function; create .. _doxid-class_functional_node_factory_1a7dc4835e55c272e34bf09844e84f4552: .. ref-code-block:: cpp :class: doxyrest-title-code-block template static auto create( const std::string& id, std::function f, :ref:`FunctionalNodePolicies::ExecutionPolicy` policy = FunctionalNodePolicies::ExecutionPolicy::ON_NEW_INPUT ) Instantiates a :ref:`FunctionalNode `. It takes as template parameters the number of inputs 'in_n' and outputs 'out_n' and a parameter pack containing the function arguments