MayaFlux 0.3.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 91 of file NodeNetwork.cpp.

92{
93 std::vector<uint32_t> channels;
94 for (uint32_t i = 0; i < 32; ++i) {
95 if (m_channel_mask & (1U << i)) {
96 channels.push_back(i);
97 }
98 }
99 return channels;
100}
std::atomic< uint32_t > m_channel_mask
Bitfield of channels this network is registered on.

References m_channel_mask.