Searched refs:IndexType (Results 1 – 4 of 4) sorted by relevance
68 using IndexType = uint16_t; typedef in ot::Heap::Array121 IndexType GetLength(void) const { return mLength; } in GetLength()141 IndexType GetCapacity(void) const { return mCapacity; } in GetCapacity()153 Error ReserveCapacity(IndexType aCapacity) { return Allocate(aCapacity); } in ReserveCapacity()180 Type &operator[](IndexType aIndex) { return mArray[aIndex]; } in operator []()191 const Type &operator[](IndexType aIndex) const { return mArray[aIndex]; } in operator []()203 Type *At(IndexType aIndex) { return (aIndex < mLength) ? &mArray[aIndex] : nullptr; } in At()215 … const Type *At(IndexType aIndex) const { return (aIndex < mLength) ? &mArray[aIndex] : nullptr; } in At()354 …IndexType IndexOf(const Type &aElement) const { return static_cast<IndexType>(&aElement - mArray);… in IndexOf()489 Error Allocate(IndexType aCapacity) in Allocate()[all …]
123 typedef SizeType IndexType; typedef in ot::Array186 IndexType GetMaxSize(void) const { return static_cast<IndexType>(kMaxSize); } in GetMaxSize()193 IndexType GetLength(void) const { return mLength; } in GetLength()200 void SetLength(IndexType aLength) { mLength = aLength; } in SetLength()225 Type &operator[](IndexType aIndex) { return mElements[aIndex]; } in operator []()236 const Type &operator[](IndexType aIndex) const { return mElements[aIndex]; } in operator []()247 Type *At(IndexType aIndex) { return (aIndex < mLength) ? &mElements[aIndex] : nullptr; } in At()258 …const Type *At(IndexType aIndex) const { return (aIndex < mLength) ? &mElements[aIndex] : nullptr;… in At()326 …IndexType IndexOf(const Type &aElement) const { return static_cast<IndexType>(&aElement - &mElemen… in IndexOf()503 for (IndexType index = 0; index < GetLength();) in RemoveAllMatching()[all …]
84 Ip6AddressArray::IndexType index; in GetMlrState()105 Ip6AddressArray::IndexType index; in SetMlrState()180 aAddress = mIp6Addresses[static_cast<Ip6AddressArray::IndexType>(aIterator - 1)]; in GetNextIp6Address()
416 …static_assert(TypeTraits::IsSame<Array1::IndexType, uint8_t>::kValue, "Array1::IndexType is incorr… in TestArrayIndexType()417 …static_assert(TypeTraits::IsSame<Array2::IndexType, uint16_t>::kValue, "Array2::IndexType is incor… in TestArrayIndexType()418 …static_assert(TypeTraits::IsSame<Array3::IndexType, uint16_t>::kValue, "Array3::IndexType is incor… in TestArrayIndexType()