Skip to main content

PortRef Struct

Handle to a specific port on a node within a runtime Graph, used by the DSL. More...

Declaration

struct simaai::neat::graph::dsl::PortRef { ... }

Included Headers

#include <GraphDsl.h>

Public Member Attributes Index

Graph *g = nullptr

Non-owning pointer to the host graph. More...

NodeIdnode = kInvalidNode

Node this port belongs to. More...

PortIdport = kInvalidPort

Interned port id within the graph. More...

boolis_output = true

True for output ports, false for inputs. More...

Description

Handle to a specific port on a node within a runtime Graph, used by the DSL.

Holds a non-owning pointer to the Graph, the NodeId of the node, the PortId of the port, and whether the port is an output (otherwise it is an input). Produced by NodeRef::out() / NodeRef::in() helpers and consumed by >> and connect_ports.

See Also

NodeRef

Definition at line 27 of file GraphDsl.h.

Public Member Attributes

g

Graph* simaai::neat::graph::dsl::PortRef::g = nullptr

Non-owning pointer to the host graph.

Definition at line 28 of file GraphDsl.h.

28 Graph* g = nullptr;

is_output

bool simaai::neat::graph::dsl::PortRef::is_output = true

True for output ports, false for inputs.

Definition at line 31 of file GraphDsl.h.

31 bool is_output = true;

node

NodeId simaai::neat::graph::dsl::PortRef::node = kInvalidNode

Node this port belongs to.

Definition at line 29 of file GraphDsl.h.

29 NodeId node = kInvalidNode;

port

PortId simaai::neat::graph::dsl::PortRef::port = kInvalidPort

Interned port id within the graph.

Definition at line 30 of file GraphDsl.h.

30 PortId port = kInvalidPort;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.