![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/DataStructures/ArrayMap.hpp>
Public Types | |
using | ConstIterator = MapConstIterator< K, V > |
The type of a const iterator. More... | |
using | Entry = SetOrMapImplEntry< K, V > |
The type of an implementation entry. More... | |
using | Entries = Entry[C] |
The type of the implementation entries. More... | |
![]() | |
using | ConstIterator = MapConstIterator< K, V > |
The type of a map const iterator. More... | |
Public Member Functions | |
ArrayMap () | |
Zero-argument constructor. More... | |
ArrayMap (const ArrayMap< K, V, C > &map) | |
Copy constructor. More... | |
~ArrayMap () override=default | |
Destructor. More... | |
ArrayMap< K, V, C > & | operator= (const ArrayMap< K, V, C > &map) |
operator= More... | |
ConstIterator | begin () const override |
void | clear () override |
Clear the map. More... | |
ConstIterator | end () const override |
Success | find (const K &key, V &value) const override |
FwSizeType | getCapacity () const override |
FwSizeType | getSize () const override |
Success | insert (const K &key, const V &value) override |
Success | remove (const K &key, V &value) override |
![]() | |
void | copyDataFrom (const MapBase< K, V > &map) |
Copy data from another map. More... | |
![]() | |
bool | isEmpty () const |
bool | isFull () const |
Friends | |
template<typename KK , typename VV , FwSizeType CC> | |
class | ArrayMapTester |
Additional Inherited Members | |
![]() | |
MapBase () | |
Zero-argument constructor. More... | |
virtual | ~MapBase ()=default |
Destructor. More... | |
![]() | |
SizedContainer () | |
Zero-argument constructor. More... | |
virtual | ~SizedContainer ()=default |
Destructor. More... | |
Definition at line 15 of file ArrayMap.hpp.
using Fw::ArrayMap< K, V, C >::ConstIterator = MapConstIterator<K, V> |
The type of a const iterator.
Definition at line 35 of file ArrayMap.hpp.
using Fw::ArrayMap< K, V, C >::Entries = Entry[C] |
The type of the implementation entries.
Definition at line 41 of file ArrayMap.hpp.
using Fw::ArrayMap< K, V, C >::Entry = SetOrMapImplEntry<K, V> |
The type of an implementation entry.
Definition at line 38 of file ArrayMap.hpp.
|
inline |
Zero-argument constructor.
Definition at line 49 of file ArrayMap.hpp.
|
inline |
Copy constructor.
Definition at line 52 of file ArrayMap.hpp.
|
overridedefault |
Destructor.
|
inlineoverridevirtual |
Get the begin iterator
Implements Fw::MapBase< K, V >.
Definition at line 70 of file ArrayMap.hpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Get the end iterator
Implements Fw::MapBase< K, V >.
Definition at line 77 of file ArrayMap.hpp.
|
inlineoverridevirtual |
Find a value associated with a key in the map
key | The key |
value | The value |
Implements Fw::MapBase< K, V >.
Definition at line 81 of file ArrayMap.hpp.
|
inlineoverridevirtual |
Get the capacity of the map (max number of entries)
Implements Fw::SizedContainer.
Definition at line 89 of file ArrayMap.hpp.
|
inlineoverridevirtual |
Get the size (number of entries)
Implements Fw::SizedContainer.
Definition at line 93 of file ArrayMap.hpp.
|
inlineoverridevirtual |
Insert a (key, value) pair in the map
key | The key |
value | The value |
Implements Fw::MapBase< K, V >.
Definition at line 97 of file ArrayMap.hpp.
|
inline |
operator=
Definition at line 63 of file ArrayMap.hpp.
|
inlineoverridevirtual |
Remove a (key, value) pair from the map
key | The key |
value | The value |
Implements Fw::MapBase< K, V >.
Definition at line 105 of file ArrayMap.hpp.
|
friend |
Definition at line 20 of file ArrayMap.hpp.