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

◆ add_slot()

uint32_t MayaFlux::Nodes::Network::RelationNetwork::add_slot ( RelationSlot  slot = {})

Add a slot to the network.

Parameters
slotFields not set take RelationSlot's own defaults. index is overwritten regardless of what is passed; a .node set directly still gets its hooks enabled, the same as RelationSlot::set_node().
Returns
Stable index of the new slot. Never changes after insertion, though the slot's address may, on this or any later add_slot().

Definition at line 11 of file RelationNetwork.cpp.

12{
13 constexpr uint32_t k_default_block_frames = 512;
14
15 slot.index = static_cast<uint32_t>(m_slots.size());
16 if (slot.node) {
17 slot.node->m_fire_events_during_snapshot = true;
18 }
19 slot.reserve_block(k_default_block_frames);
20
21 const uint32_t index = slot.index;
22 m_slots.push_back(std::move(slot));
23
24 return index;
25}
uint32_t index
Definition VKDevice.cpp:122

References index, MayaFlux::Nodes::Network::RelationSlot::index, m_slots, MayaFlux::Nodes::Network::RelationSlot::node, and MayaFlux::Nodes::Network::RelationSlot::reserve_block().

Referenced by add_slots().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: