![]() |
![]() |
OpenThread
1.05.03.02
|
#include <network_data_tlvs.hpp>
Public Member Functions | |
void | ClearCompress (void) |
uint8_t | GetContextId (void) const |
uint8_t | GetContextLength (void) const |
void | Init (uint8_t aContextId, uint8_t aContextLength) |
bool | IsCompress (void) const |
void | SetCompress (void) |
![]() | |
void | ClearStable (void) |
void | DecreaseLength (uint8_t aDecrement) |
uint8_t | GetLength (void) const |
NetworkDataTlv * | GetNext (void) |
const NetworkDataTlv * | GetNext (void) const |
uint8_t | GetSize (void) const |
Type | GetType (void) const |
uint8_t * | GetValue (void) |
const uint8_t * | GetValue (void) const |
void | IncreaseLength (uint8_t aIncrement) |
void | Init (void) |
bool | IsStable (void) const |
void | SetLength (uint8_t aLength) |
void | SetStable (void) |
void | SetType (Type aType) |
Static Public Attributes | |
static constexpr Type | kType = kTypeContext |
The TLV Type. More... | |
Private Attributes | |
uint8_t | mContextLength |
uint8_t | mFlags |
Static Private Attributes | |
static constexpr uint8_t | kCompressFlag = 1 << 4 |
static constexpr uint8_t | kContextIdMask = 0xf << kContextIdOffset |
static constexpr uint8_t | kContextIdOffset = 0 |
Additional Inherited Members | |
![]() | |
enum | Type : uint8_t { kTypeHasRoute = 0, kTypePrefix = 1, kTypeBorderRouter = 2, kTypeContext = 3, kTypeCommissioningData = 4, kTypeService = 5, kTypeServer = 6 } |
![]() | |
static NetworkDataTlv * | Find (NetworkDataTlv *aStart, NetworkDataTlv *aEnd, Type aType) |
static const NetworkDataTlv * | Find (const NetworkDataTlv *aStart, const NetworkDataTlv *aEnd, Type aType) |
template<typename TlvType > | |
static TlvType * | Find (NetworkDataTlv *aStart, NetworkDataTlv *aEnd) |
template<typename TlvType > | |
static const TlvType * | Find (const NetworkDataTlv *aStart, const NetworkDataTlv *aEnd) |
static NetworkDataTlv * | Find (NetworkDataTlv *aStart, NetworkDataTlv *aEnd, Type aType, bool aStable) |
static const NetworkDataTlv * | Find (const NetworkDataTlv *aStart, const NetworkDataTlv *aEnd, Type aType, bool aStable) |
template<typename TlvType > | |
static TlvType * | Find (NetworkDataTlv *aStart, NetworkDataTlv *aEnd, bool aStable) |
template<typename TlvType > | |
static const TlvType * | Find (const NetworkDataTlv *aStart, const NetworkDataTlv *aEnd, bool aStable) |
This class implements Context TLV generation and processing.
|
inline |
This method initializes the Context TLV.
[in] | aContextId | The Context ID value. |
[in] | aContextLength | The Context Length value. |
References NetworkDataTlv::Init(), NetworkDataTlv::kTypeContext, NetworkDataTlv::SetLength(), and NetworkDataTlv::SetType().
|
inline |
This method indicates whether or not the Compress flag is set.
TRUE | The Compress flag is set. |
FALSE | The Compress flags is not set. |
Referenced by LeaderBase::GetContext().
|
inline |
This method clears the Compress flag.
|
inline |
This method sets the Compress flag.
|
inline |
This method returns the Context ID value.
Referenced by LeaderBase::GetContext().
|
inline |
This method returns the Context Length value.
|
static |
The TLV Type.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
private |