7 #ifndef Fw_ExternalArrayMap_HPP 8 #define Fw_ExternalArrayMap_HPP 16 template <
typename K,
typename V>
22 template <
typename KK,
typename VV>
77 this->m_impl = map.m_impl;
98 return this->m_impl.
find(key, value);
114 return this->m_impl.
insert(key, value);
122 return this->m_impl.
remove(key, value);
static constexpr U8 getByteArrayAlignment()
PlatformSizeType FwSizeType
ConstIterator begin() const
Get the begin iterator.
void clear() override
Clear the map.
ExternalArrayMap(const ExternalArrayMap< K, V > &map)
Copy constructor.
~ExternalArrayMap() override=default
Destructor.
static constexpr FwSizeType getByteArraySize(FwSizeType capacity)
friend class ExternalArrayMapTester
ConstIterator end() const override
void setStorage(Entry *entries, FwSizeType capacity)
ConstIterator end() const
Get the end iterator.
ExternalArrayMap()=default
Zero-argument constructor.
Success remove(const KE &keyOrElement, VN &valueOrNil)
void clear()
Clear the set or map.
A variable-length byte array.
Success insert(const K &key, const V &value) override
MapConstIterator< K, V > ConstIterator
The type of a const iterator.
ConstIterator begin() const override
uint8_t U8
8-bit unsigned integer
void setStorage(Entry *entries, FwSizeType capacity)
Success find(const KE &keyOrElement, VN &valueOrNil) const
Success find(const K &key, V &value) const override
FwSizeType getCapacity() const
void setStorage(ByteArray data, FwSizeType capacity)
ExternalArrayMap(Entry *entries, FwSizeType capacity)
static constexpr U8 getByteArrayAlignment()
FwSizeType getSize() const override
ExternalArrayMap(ByteArray data, FwSizeType capacity)
FwSizeType getSize() const
static constexpr FwSizeType getByteArraySize(FwSizeType capacity)
ExternalArrayMap< K, V > & operator=(const ExternalArrayMap< K, V > &map)
operator=
FwSizeType getCapacity() const override
Success insert(const KE &keyOrElement, const VN &valueOrNil)