![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/DataStructures/ExternalArrayMap.hpp>
Public Types | |
using | ConstIterator = MapConstIterator< K, V > |
The type of a const iterator. More... | |
using | Entry = SetOrMapImplEntry< K, V > |
The type of a map entry. More... | |
![]() | |
using | ConstIterator = MapConstIterator< K, V > |
The type of a map const iterator. More... | |
Public Member Functions | |
ExternalArrayMap ()=default | |
Zero-argument constructor. More... | |
ExternalArrayMap (Entry *entries, FwSizeType capacity) | |
ExternalArrayMap (ByteArray data, FwSizeType capacity) | |
ExternalArrayMap (const ExternalArrayMap< K, V > &map) | |
Copy constructor. More... | |
~ExternalArrayMap () override=default | |
Destructor. More... | |
ExternalArrayMap< K, V > & | operator= (const ExternalArrayMap< K, V > &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 | setStorage (Entry *entries, FwSizeType capacity) |
void | setStorage (ByteArray data, FwSizeType capacity) |
![]() | |
void | copyDataFrom (const MapBase< K, V > &map) |
Copy data from another map. More... | |
![]() | |
bool | isEmpty () const |
bool | isFull () const |
Static Public Member Functions | |
static constexpr U8 | getByteArrayAlignment () |
static constexpr FwSizeType | getByteArraySize (FwSizeType capacity) |
Friends | |
template<typename KK , typename VV > | |
class | ExternalArrayMapTester |
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 17 of file ExternalArrayMap.hpp.
using Fw::ExternalArrayMap< K, V >::ConstIterator = MapConstIterator<K, V> |
The type of a const iterator.
Definition at line 31 of file ExternalArrayMap.hpp.
using Fw::ExternalArrayMap< K, V >::Entry = SetOrMapImplEntry<K, V> |
The type of a map entry.
Definition at line 34 of file ExternalArrayMap.hpp.
|
default |
Zero-argument constructor.
|
inline |
Constructor providing typed backing storage. entries must point to at least capacity elements of type Entry.
entries | The entries |
capacity | The capacity |
Definition at line 46 of file ExternalArrayMap.hpp.
|
inline |
Constructor providing untyped backing storage. data must be aligned according to getByteArrayAlignment(). data must contain at least getByteArraySize(capacity) bytes.
data | The data, |
capacity | The capacity |
Definition at line 56 of file ExternalArrayMap.hpp.
|
inline |
Copy constructor.
Definition at line 64 of file ExternalArrayMap.hpp.
|
overridedefault |
Destructor.
|
inlineoverridevirtual |
Get the begin iterator
Implements Fw::MapBase< K, V >.
Definition at line 84 of file ExternalArrayMap.hpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Get the end iterator
Implements Fw::MapBase< K, V >.
Definition at line 91 of file ExternalArrayMap.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 95 of file ExternalArrayMap.hpp.
|
inlinestatic |
Get the alignment of the storage for an ArraySetOrMapImpl
Definition at line 149 of file ExternalArrayMap.hpp.
|
inlinestatic |
Get the size of the storage for an ExternalArray of the specified capacity, as a byte array
capacity | The capacity |
Definition at line 154 of file ExternalArrayMap.hpp.
|
inlineoverridevirtual |
Get the capacity of the map (max number of entries)
Implements Fw::SizedContainer.
Definition at line 103 of file ExternalArrayMap.hpp.
|
inlineoverridevirtual |
Get the size (number of entries)
Implements Fw::SizedContainer.
Definition at line 107 of file ExternalArrayMap.hpp.
|
inlineoverridevirtual |
Insert a (key, value) pair in the map
key | The key |
value | The value |
Implements Fw::MapBase< K, V >.
Definition at line 111 of file ExternalArrayMap.hpp.
|
inline |
operator=
Definition at line 75 of file ExternalArrayMap.hpp.
|
inlineoverridevirtual |
Remove a (key, value) pair from the map
key | The key |
value | The value |
Implements Fw::MapBase< K, V >.
Definition at line 119 of file ExternalArrayMap.hpp.
|
inline |
Set the backing storage (typed data) entries must point to at least capacity elements of type Entry.
entries | The entries |
capacity | The capacity |
Definition at line 127 of file ExternalArrayMap.hpp.
|
inline |
Set the backing storage (untyped data) data must be aligned according to getByteArrayAlignment(). data must contain at least getByteArraySize(capacity) bytes.
data | The data |
capacity | The capacity |
Definition at line 136 of file ExternalArrayMap.hpp.
|
friend |
Definition at line 23 of file ExternalArrayMap.hpp.