MayaFlux 0.4.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 102 of file NodeNetwork.cpp.

103{
104 std::vector<uint32_t> channels;
105 for (uint32_t i = 0; i < 32; ++i) {
106 if (m_channel_mask & (1U << i)) {
107 channels.push_back(i);
108 }
109 }
110 return channels;
111}
std::atomic< uint32_t > m_channel_mask
Bitfield of channels this network is registered on.

References m_channel_mask.