7 #ifndef Fw_ArrayMap_HPP 8 #define Fw_ArrayMap_HPP 14 template <
typename K,
typename V, FwSizeType C>
20 static_assert(C > 0,
"capacity must be greater than zero");
26 template <
typename KK,
typename VV, FwSizeType CC>
64 this->m_extMap.copyDataFrom(map);
73 void clear()
override { this->m_extMap.clear(); }
84 return this->m_extMap.find(key, value);
100 return this->m_extMap.insert(key, value);
108 return this->m_extMap.remove(key, value);
ConstIterator end() const override
PlatformSizeType FwSizeType
ArrayMap< K, V, C > & operator=(const ArrayMap< K, V, C > &map)
operator=
ArrayMap(const ArrayMap< K, V, C > &map)
Copy constructor.
Success insert(const K &key, const V &value) override
void clear() override
Clear the map.
ConstIterator begin() const override
FwSizeType getCapacity() const override
ArrayMap()
Zero-argument constructor.
Success find(const K &key, V &value) const override
~ArrayMap() override=default
Destructor.
Entry[C] Entries
The type of the implementation entries.
FwSizeType getSize() const override
friend class ArrayMapTester