|
|
| Delay (Id id, std::string name) |
| | Node (std::string type, Id id, std::string name) |
| | Construct a node instance.
|
| virtual | ~Node ()=0 |
| | Virtual destructor. Pure virtual to ensure Node is abstract, but defined out-of-line.
|
| void | setName (std::string newName) |
| | Rename the node.
|
| template<DerivedFromNode T> |
| bool | is () const noexcept |
| | Check whether this node is of a given derived type.
|
| template<DerivedFromNode T> |
| T & | as () noexcept |
| | Cast this node to a derived type (unchecked).
|
| template<DerivedFromNode T> |
| T const & | as () const noexcept |
| | Cast this node to a derived type (unchecked).
|
| virtual nlohmann::json | configSchema () const =0 |
| | Return the JSON schema describing the node configuration. Used by the dfx::Graph::NodeFactory / tooling / UI to validate and edit configuration.
|
| virtual nlohmann::json | metadata () const =0 |
| | Return node metadata (description, categories, ports, etc.). Intended for UI/tooling and discovery.
|
| std::string const & | type () const noexcept |
| | Get the node type.
|
| std::string const & | name () const noexcept |
| | Get the node name.
|
| Id | id () const noexcept |
| | Get the node id.
|
| nlohmann::json const & | config () const noexcept |
| | Get the node configuration.
|
| ExecutionFlowPolicy | executionFlowPolicy () const noexcept |
| | Get the node execution policy.
|
| bool | isRunning () const noexcept |
| | Check of the node is currently running.
|
| bool | allowsMimeTypePropagation () const noexcept |
| | Whether this node allows mime-type propagation through its ports.
|
| void | start () |
| | Start the node.
|
| void | stop () |
| | Stop the node.
|
| InputPortContainer const & | inputPorts () const noexcept |
| | Get all input ports of all Kind.
|
| OutputPortContainer const & | outputPorts () const noexcept |
| | Get all output ports of all Kind.
|
| bool | hasInputPort (std::string_view portName) const noexcept |
| | Check whether an input port exists by name.
|
| bool | hasOutputPort (std::string_view portName) const noexcept |
| | Check whether an output port exists by name.
|
| bool | hasInputPort (Port::Id id) const noexcept |
| | Check whether an input port exists by id.
|
| bool | hasOutputPort (Port::Id id) const noexcept |
| | Check whether an output port exists by id.
|
| InputPort const & | inputPort (std::string_view portName) const |
| | Get an input port by name.
|
| OutputPort const & | outputPort (std::string_view portName) const |
| | Get an output port by name.
|
| InputPort & | inputPort (std::string_view portName) |
| | Get an input port by name (mutable).
|
| OutputPort & | outputPort (std::string_view portName) |
| | Get an output port by name (mutable).
|
| InputPort const & | inputPort (Port::Id id) const |
| | Get an input port by id.
|
| OutputPort const & | outputPort (Port::Id id) const |
| | Get an output port by id.
|
| InputPort & | inputPort (Port::Id id) |
| | Get an input port by id (mutable).
|
| OutputPort & | outputPort (Port::Id id) |
| | Get an output port by id (mutable).
|
| void | sendMessage (Port::Id id, MessagePtr message) |
| | Send a message on an output port by id.
|
| void | sendMessage (std::string_view portName, MessagePtr message) |
| | Send a message on an output port by name.
|
| void | sendMessage (OutputPort &port, MessagePtr message) |
| | Send a message on the provided output port.
|
| void | lock () |
| | Lock the node's internal recursive mutex.
|
| void | unlock () |
| | Unlock the node's internal recursive mutex.
|
| bool | try_lock () noexcept |
| | Try to lock the node's internal recursive mutex.
|
| void | setReactor (Runtime::Api::NodeReactor *reactor) |
| | Attach the runtime reactor used by this node.
|
| Runtime::Api::NodeReactor * | reactor () const noexcept |
| | Get the currently attached reactor (may be null if not set).
|
| FdWatch::Poller & | poller () |
| | Access a poller instance associated with this node.
|