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

◆ add_slots()

std::vector< uint32_t > MayaFlux::Nodes::Network::RelationNetwork::add_slots ( std::initializer_list< RelationSlot >  slots)

Add several slots at once.

Parameters
slotsOne slot per new entry, in order
Returns
The new slots' indices, in the same order as slots

Definition at line 27 of file RelationNetwork.cpp.

28{
29 std::vector<uint32_t> indices;
30 indices.reserve(slots.size());
31 for (const auto& slot : slots) {
32 indices.push_back(add_slot(slot));
33 }
34 return indices;
35}
std::vector< uint32_t > indices
std::vector< RelationSlot > & slots() noexcept
uint32_t add_slot(RelationSlot slot={})
Add a slot to the network.

References add_slot(), indices, and slots().

+ Here is the call graph for this function: