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

◆ get_registered_channels()

std::vector< uint32_t > MayaFlux::Nodes::Network::NodeNetwork::get_registered_channels ( ) const

Get all channels this network is registered on.

Returns
Vector of channel indices

Definition at line 81 of file NodeNetwork.cpp.

82{
83 std::vector<uint32_t> channels;
84 for (uint32_t i = 0; i < 32; ++i) {
85 if (m_channel_mask & (1U << i)) {
86 channels.push_back(i);
87 }
88 }
89 return channels;
90}
std::atomic< uint32_t > m_channel_mask
Bitfield of channels this network is registered on.

References m_channel_mask.