Skip to main content

Input Class

Push handle for a node's input port. More...

Declaration

class simaai::neat::graph::GraphRun::Input { ... }

Included Headers

#include <GraphRun.h>

Friends Index

classGraphRun

Private Constructors Index

Input (GraphRun *run, NodeId node, PortId port, bool has_port)

Public Member Functions Index

boolpush (const Sample &sample) const

Push a sample into the bound port. Returns false on backpressure timeout. More...

Private Member Attributes Index

GraphRun *run_ = nullptr
NodeIdnode_ = kInvalidNode
PortIdport_ = kInvalidPort
boolhas_port_ = false

Description

Push handle for a node's input port.

Obtain via GraphRun::input(node_id) or GraphRun::input(node_id, port). Holds a non-owning pointer back to the parent GraphRun — must not outlive it.

Definition at line 174 of file GraphRun.h.

Friends

GraphRun

friend class GraphRun

Definition at line 180 of file GraphRun.h.

180 friend class GraphRun;

Private Constructors

Input()

simaai::neat::graph::GraphRun::Input::Input (GraphRun * run, NodeId node, PortId port, bool has_port)
inline

Definition at line 181 of file GraphRun.h.

181 Input(GraphRun* run, NodeId node, PortId port, bool has_port)
182 : run_(run), node_(node), port_(port), has_port_(has_port) {}

Public Member Functions

push()

bool simaai::neat::graph::GraphRun::Input::push (const Sample & sample)

Push a sample into the bound port. Returns false on backpressure timeout.

Definition at line 177 of file GraphRun.h.

Private Member Attributes

has_port_

bool simaai::neat::graph::GraphRun::Input::has_port_ = false

Definition at line 187 of file GraphRun.h.

187 bool has_port_ = false;

node_

NodeId simaai::neat::graph::GraphRun::Input::node_ = kInvalidNode

Definition at line 185 of file GraphRun.h.

185 NodeId node_ = kInvalidNode;

port_

PortId simaai::neat::graph::GraphRun::Input::port_ = kInvalidPort

Definition at line 186 of file GraphRun.h.

186 PortId port_ = kInvalidPort;

run_

GraphRun* simaai::neat::graph::GraphRun::Input::run_ = nullptr

Definition at line 184 of file GraphRun.h.

184 GraphRun* run_ = nullptr;

The documentation for this class was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.