class Types
Defined at line 211 of file ../../third_party/openthread/src/core/radio/radio_types.hpp
Represents a set of radio links.
Public Members
static const uint16_t kInfoStringSize
static const Type[2] kAllTypes
Public Methods
void Types ()
Initializes a `Types` object as empty set
Defined at line 229 of file ../../third_party/openthread/src/core/radio/radio_types.hpp
void Types (uint8_t aMask)
Initializes a `Types` object with a given bit-mask.
Parameters
Defined at line 239 of file ../../third_party/openthread/src/core/radio/radio_types.hpp
void Clear ()
Clears the set.
Defined at line 247 of file ../../third_party/openthread/src/core/radio/radio_types.hpp
bool IsEmpty ()
Indicates whether the set is empty or not
Defined at line 254 of file ../../third_party/openthread/src/core/radio/radio_types.hpp
bool ContainsSingleRadio ()
This method indicates whether the set contains only a single radio type.
Defined at line 261 of file ../../third_party/openthread/src/core/radio/radio_types.hpp
bool Contains (Type aType)
Indicates whether or not the set contains a given radio type.
Parameters
Defined at line 270 of file ../../third_party/openthread/src/core/radio/radio_types.hpp
void Add (Type aType)
Adds a radio type to the set.
Parameters
Defined at line 277 of file ../../third_party/openthread/src/core/radio/radio_types.hpp
void Add (Types aTypes)
Adds another radio types set to the current one.
Parameters
Defined at line 284 of file ../../third_party/openthread/src/core/radio/radio_types.hpp
void AddAll ()
Adds all radio types supported by device to the set.
void Remove (Type aType)
Removes a given radio type from the set.
Parameters
Defined at line 296 of file ../../third_party/openthread/src/core/radio/radio_types.hpp
uint8_t GetAsBitMask ()
Gets the radio type set as a bitmask.
The first bit in the mask corresponds to first radio type (radio type with value zero), and so on.
Defined at line 305 of file ../../third_party/openthread/src/core/radio/radio_types.hpp
InfoString ToString ()
Converts the radio set to human-readable string.
Returns
A string representation of the set of radio types.
Types operator- (const Types & aOther)
Overloads operator `-` to return a new set which is the set difference between current set and
a given set.
Parameters
Defined at line 315 of file ../../third_party/openthread/src/core/radio/radio_types.hpp