MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_output_block()

std::optional< std::span< const double > > MayaFlux::Nodes::Network::RelationNetwork::get_output_block ( size_t  index) const

Block of one published output from the last process_batch()

Parameters
indexPosition in the concatenation of publishing operators' outputs

Definition at line 132 of file RelationNetwork.cpp.

133{
134 for (const auto& publisher : m_publishers) {
135 const size_t count = publisher->get_output_count();
136 if (index < count) {
137 return publisher->get_output_block(index);
138 }
139 index -= count;
140 }
141 return std::nullopt;
142}
uint32_t index
Definition VKDevice.cpp:122
size_t count
std::vector< std::shared_ptr< RelationOperator > > m_publishers

References count, index, and m_publishers.