/openthread-latest/src/cli/ |
D | cli_utils.hpp | 508 template <typename ValueType> using GetHandler = ValueType (&)(otInstance *); 509 template <typename ValueType> using SetHandler = void (&)(otInstance *, ValueType); 510 template <typename ValueType> using SetHandlerFailable = otError (&)(otInstance *, ValueType); 516 template <typename ValueType> static constexpr const char *FormatStringFor(void); 532 template <typename ValueType> otError ProcessGet(Arg aArgs[], GetHandler<ValueType> aGetHandler) in ProcessGet() 535 …TypeTraits::IsSame<ValueType, uint8_t>::kValue || TypeTraits::IsSame<ValueType, uint16_t>::kValue … in ProcessGet() 536 … TypeTraits::IsSame<ValueType, int8_t>::kValue || TypeTraits::IsSame<ValueType, int16_t>::kValue || in ProcessGet() 537 TypeTraits::IsSame<ValueType, const char *>::kValue, in ProcessGet() 543 OutputLine(FormatStringFor<ValueType>(), aGetHandler(GetInstancePtr())); in ProcessGet() 549 template <typename ValueType> otError ProcessSet(Arg aArgs[], SetHandler<ValueType> aSetHandler) in ProcessSet() [all …]
|
/openthread-latest/tests/unit/ |
D | test_cmd_line_parser.cpp | 53 template <typename ValueType> struct TestCase 57 ValueType mValue; 60 template <typename ValueType, otError (&Parser)(const char *aString, ValueType &aValue)> 61 void VerifyParser(const TestCase<ValueType> *aTestCases, const char *aParserName, const char *aPrin… in VerifyParser() 63 const TestCase<ValueType> *testCase = aTestCases; in VerifyParser() 64 ValueType value; in VerifyParser()
|
/openthread-latest/src/core/common/ |
D | settings.hpp | 481 typedef Utils::Slaac::IidSecretKey ValueType; ///< The associated value type. typedef in ot::SettingsBase::SlaacIidSecretKey 536 typedef Ip6::Prefix ValueType; ///< The associated value type. typedef in ot::SettingsBase::BrUlaPrefix 604 typedef Crypto::Ecdsa::P256::KeyPair ValueType; ///< The associated value type. typedef in ot::SettingsBase::SrpEcdsaKey 715 typedef MeshCoP::BorderAgent::Id ValueType; ///< The associated value type. typedef in ot::SettingsBase::BorderAgentId 850 template <typename EntryType> Error Read(typename EntryType::ValueType &aValue) const in Read() 852 return ReadEntry(EntryType::kKey, &aValue, sizeof(typename EntryType::ValueType)); in Read() 897 template <typename EntryType> Error Save(const typename EntryType::ValueType &aValue) in Save() 899 typename EntryType::ValueType prev; in Save() 901 return SaveEntry(EntryType::kKey, &aValue, &prev, sizeof(typename EntryType::ValueType)); in Save()
|
D | tlvs.hpp | 175 … template <typename SimpleTlvType> const typename SimpleTlvType::ValueType &ReadValueAs(void) const in ReadValueAs() 177 return *reinterpret_cast<const typename SimpleTlvType::ValueType *>(this + 1); in ReadValueAs() 207 …template <typename SimpleTlvType> void WriteValueAs(const typename SimpleTlvType::ValueType &aValu… in WriteValueAs() 319 …static Error Read(const Message &aMessage, uint16_t aOffset, typename SimpleTlvType::ValueType &aV… in Read() 487 static Error Find(const Message &aMessage, typename SimpleTlvType::ValueType &aValue) in Find() 590 static Error Append(Message &aMessage, const typename SimpleTlvType::ValueType &aValue) in Append() 828 typedef TlvValueType ValueType; ///< The TLV Value type. typedef in ot::SimpleTlvInfo
|
/openthread-latest/src/posix/platform/ |
D | mdns_socket.hpp | 154 template <typename ValueType> 155 …static otError SetSocketOption(int aFd, int aLevel, int aOption, const ValueType &aValue, const ch… in SetSocketOption() 157 return SetSocketOptionValue(aFd, aLevel, aOption, &aValue, sizeof(ValueType), aOptionName); in SetSocketOption()
|
/openthread-latest/src/core/meshcop/ |
D | dataset.cpp | 134 minLength = sizeof(ActiveTimestampTlv::ValueType); in IsTlvValid() 137 minLength = sizeof(PendingTimestampTlv::ValueType); in IsTlvValid() 146 minLength = sizeof(ExtendedPanIdTlv::ValueType); in IsTlvValid() 149 minLength = sizeof(PskcTlv::ValueType); in IsTlvValid() 152 minLength = sizeof(NetworkKeyTlv::ValueType); in IsTlvValid() 155 minLength = sizeof(MeshLocalPrefixTlv::ValueType); in IsTlvValid()
|
D | dataset.hpp | 317 template <typename SimpleTlvType> Error Read(typename SimpleTlvType::ValueType &aValue) const in Read() 381 template <typename SimpleTlvType> Error Write(const typename SimpleTlvType::ValueType &aValue) in Write()
|