graph Namespace
Definition
namespace simaai::neat::graph { ... }
Namespaces Index
| namespace | dsl |
| namespace | helpers |
| namespace | nodes |
| namespace | runtime |
| namespace | strict_sync |
Classes Index
| struct | EdgeSpec |
| struct | CompiledPipelineSegment |
| struct | CompiledStageNode |
| struct | CompiledGraph |
| class | Compiler |
| class | Graph |
|
Directed acyclic graph of hybrid nodes with named ports. More... | |
| struct | StreamMetadataDefaults |
| class | GraphPrinter |
| struct | GraphRunOptions |
| struct | GraphRunStats |
| struct | GraphRunPullOptions |
| class | GraphRun |
| class | GraphSession |
| struct | PortDesc |
| struct | Edge |
| class | Node |
|
Base class for hybrid graph nodes. More... | |
| struct | StageMsg |
| struct | StageOutMsg |
| struct | StagePorts |
| class | StageExecutor |
Typedefs Index
| using | NodeId = std::size_t |
| using | PortId = std::uint32_t |
Enumerations Index
| enum class | Backend { ... } |
Functions Index
| void | ensure_stream_metadata (Sample &sample, const StreamMetadataDefaults &defaults, std::unordered_map< std::string, int64_t > *next_seq=nullptr) |
Variables Index
| static constexpr NodeId | kInvalidNode = static_cast<NodeId>(-1) |
| static constexpr PortId | kInvalidPort = static_cast<PortId>(-1) |
Typedefs
NodeId
|
Definition at line 21 of file GraphTypes.h.
PortId
|
Definition at line 22 of file GraphTypes.h.
Functions
ensure_stream_metadata()
| inline |
Definition at line 29 of file GraphMetadata.h.
29inline void ensure_stream_metadata(Sample& sample, const StreamMetadataDefaults& defaults,
30 std::unordered_map<std::string, int64_t>* next_seq = nullptr) {
31 if (sample.stream_id.empty() && defaults.fill_stream_id) {
32 if (!defaults.stream_id.empty()) {
34 } else {
35 sample.stream_id = "stream0";
36 }
37 }
38
39 if (defaults.fill_input_seq && sample.input_seq < 0) {
40 if (sample.orig_input_seq >= 0) {
41 sample.input_seq = sample.orig_input_seq;
42 } else if (next_seq) {
43 auto& next = (*next_seq)[sample.stream_id];
44 sample.input_seq = next++;
45 } else {
46 sample.input_seq = 0;
47 }
48 }
49
50 if (defaults.fill_orig_input_seq && sample.orig_input_seq < 0) {
51 sample.orig_input_seq = sample.input_seq;
52 }
53
54 if (sample.caps_string.empty() && !defaults.caps_string.empty()) {
55 sample.caps_string = defaults.caps_string;
56 }
59 }
60 if (sample.media_type.empty() && !defaults.media_type.empty()) {
61 sample.media_type = defaults.media_type;
62 }
65 }
66 if (sample.payload_tag.empty() && !defaults.payload_tag.empty()) {
67 sample.payload_tag = defaults.payload_tag;
68 }
69}
Variables
kInvalidNode
| constexpr static |
Definition at line 24 of file GraphTypes.h.
kInvalidPort
| constexpr static |
Definition at line 25 of file GraphTypes.h.
The documentation for this namespace was generated from the following files:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.