Skip to main content

StagePorts Struct

Declaration

struct simaai::neat::graph::StagePorts { ... }

Included Headers

#include <StageExecutor.h>

Public Member Functions Index

PortIdin_port (const std::string &name) const
PortIdout_port (const std::string &name) const
PortIdonly_input () const
PortIdonly_output () const

Public Member Attributes Index

std::unordered_map< std::string, PortId >in
std::unordered_map< std::string, PortId >out

Definition at line 28 of file StageExecutor.h.

Public Member Functions

in_port()

PortId simaai::neat::graph::StagePorts::in_port (const std::string & name)
inline

Definition at line 32 of file StageExecutor.h.

32 PortId in_port(const std::string& name) const {
33 auto it = in.find(name);
34 return it == in.end() ? kInvalidPort : it->second;
35 }

only_input()

PortId simaai::neat::graph::StagePorts::only_input ()
inline

Definition at line 42 of file StageExecutor.h.

42 PortId only_input() const {
43 return in.size() == 1 ? in.begin()->second : kInvalidPort;
44 }

only_output()

PortId simaai::neat::graph::StagePorts::only_output ()
inline

Definition at line 46 of file StageExecutor.h.

47 return out.size() == 1 ? out.begin()->second : kInvalidPort;
48 }

out_port()

PortId simaai::neat::graph::StagePorts::out_port (const std::string & name)
inline

Definition at line 37 of file StageExecutor.h.

37 PortId out_port(const std::string& name) const {
38 auto it = out.find(name);
39 return it == out.end() ? kInvalidPort : it->second;
40 }

Public Member Attributes

in

std::unordered_map<std::string, PortId> simaai::neat::graph::StagePorts::in

Definition at line 29 of file StageExecutor.h.

29 std::unordered_map<std::string, PortId> in;

out

std::unordered_map<std::string, PortId> simaai::neat::graph::StagePorts::out

Definition at line 30 of file StageExecutor.h.

30 std::unordered_map<std::string, PortId> out;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.