AddChannel()
Adds a channel to the channel mask.
RemoveChannel()
Removes a channel from the channel mask.
Intersect()
Updates the channel mask by intersecting it with another mask.
GetNumberOfChannels() const
Returns the number of channels in the mask.
GetNextChannel() const
Gets the next channel in the channel mask. Can be used to iterate over all channels in the channel mask. To get the first channel (channel with lowest number) in the mask the @p aChannel should be set to `kChannelIteratorFirst`.
ChooseRandomChannel() const
Randomly chooses a channel from the channel mask.
operator() const
Overloads `==` operator to indicate whether two masks are equal.
ToString() const
Converts the channel mask into a human-readable string. Examples of possible output: - empty mask -> "{ }" - all channels -> "{ 11-26 }" - single channel -> "{ 20 }" - multiple ranges -> "{ 11, 14-17, 20-22, 24, 25 }" - no range -> "{ 14, 21, 26 }".
Clear()
Clears the channel mask.
GetMask() const
Gets the channel mask (as a `uint32_t` bit-vector mask with bit 0 (lsb) -> channel 0, and so on).
SetMask()
Sets the channel mask.
IsEmpty() const
Indicates if the mask is empty.
IsSingleChannel() const
Indicates if the mask contains only a single channel.
ContainsChannel() const
Indicates if the mask contains a given channel.