7 #ifndef Fw_ExternalRedBlackTreeMap_HPP 8 #define Fw_ExternalRedBlackTreeMap_HPP 16 template <
typename K,
typename V>
22 template <
typename KK,
typename VV>
82 this->m_impl = map.m_impl;
103 return this->m_impl.
find(key, value);
119 return this->m_impl.
insert(key, value);
127 return this->m_impl.
remove(key, value);
137 this->m_impl.
setStorage(nodes, freeNodes, capacity);
MapConstIterator< K, V > ConstIterator
The type of a const iterator.
ExternalRedBlackTreeMap< K, V > & operator=(const ExternalRedBlackTreeMap< K, V > &map)
operator=
FwSizeType getSize() const override
void setStorage(ByteArray data, FwSizeType capacity)
ConstIterator begin() const override
~ExternalRedBlackTreeMap() override=default
Destructor.
static constexpr FwSizeType getByteArraySize(FwSizeType capacity)
PlatformSizeType FwSizeType
Success insert(const KE &keyOrElement, const VN &valueOrNil)
static constexpr U8 getByteArrayAlignment()
Success remove(const KE &keyOrElement, VN &valueOrNil)
typename RedBlackTreeSetOrMapImpl< K, V >::Node Node
The type of a tree node.
ConstIterator end() const override
ExternalRedBlackTreeMap(const ExternalRedBlackTreeMap< K, V > &map)
Copy constructor.
ConstIterator begin() const
Get the begin iterator.
void setStorage(Node *nodes, Index *freeNodes, FwSizeType capacity)
FwSizeType getCapacity() const
typename RedBlackTreeSetOrMapImpl< K, V >::Index Index
The type of a tree node index.
FwSizeType getSize() const
ExternalRedBlackTreeMap(ByteArray data, FwSizeType capacity)
friend class ExternalRedBlackTreeMapTester
A variable-length byte array.
static constexpr U8 getByteArrayAlignment()
void clear()
Clear the set or map.
uint8_t U8
8-bit unsigned integer
FwSizeType getCapacity() const override
Success find(const K &key, V &value) const override
static constexpr FwSizeType getByteArraySize(FwSizeType capacity)
ConstIterator end() const
Get the end iterator.
ExternalRedBlackTreeMap()=default
Zero-argument constructor.
Success find(const KE &keyOrElement, VN &valueOrNil) const
ExternalRedBlackTreeMap(Node *nodes, Index *freeNodes, FwSizeType capacity)
Success insert(const K &key, const V &value) override
void clear() override
Clear the map.
void setStorage(Node *nodes, Index *freeNodes, FwSizeType capacity)