![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/DataStructures/MapBase.hpp>
Public Types | |
using | ConstIterator = MapConstIterator< K, V > |
The type of a map const iterator. More... | |
Public Member Functions | |
virtual ConstIterator | begin () const =0 |
void | copyDataFrom (const MapBase< K, V > &map) |
Copy data from another map. More... | |
virtual ConstIterator | end () const =0 |
virtual Success | find (const K &key, V &value) const =0 |
virtual Success | insert (const K &key, const V &value)=0 |
virtual Success | remove (const K &key, V &value)=0 |
![]() | |
virtual void | clear ()=0 |
Clear the container. More... | |
virtual FwSizeType | getSize () const =0 |
virtual FwSizeType | getCapacity () const =0 |
bool | isEmpty () const |
bool | isFull () const |
Protected Member Functions | |
MapBase () | |
Zero-argument constructor. More... | |
virtual | ~MapBase ()=default |
Destructor. More... | |
![]() | |
SizedContainer () | |
Zero-argument constructor. More... | |
virtual | ~SizedContainer ()=default |
Destructor. More... | |
Definition at line 18 of file MapBase.hpp.
using Fw::MapBase< K, V >::ConstIterator = MapConstIterator<K, V> |
The type of a map const iterator.
Definition at line 39 of file MapBase.hpp.
|
inlineprotected |
Zero-argument constructor.
Definition at line 47 of file MapBase.hpp.
|
protectedvirtualdefault |
Destructor.
|
pure virtual |
Get the begin value of the iterator
Implemented in Fw::ExternalRedBlackTreeMap< K, V >, Fw::ExternalArrayMap< K, V >, Fw::RedBlackTreeMap< K, V, C >, and Fw::ArrayMap< K, V, C >.
|
inline |
Copy data from another map.
Definition at line 62 of file MapBase.hpp.
|
pure virtual |
Get the end value of the iterator
Implemented in Fw::ExternalRedBlackTreeMap< K, V >, Fw::ExternalArrayMap< K, V >, Fw::RedBlackTreeMap< K, V, C >, and Fw::ArrayMap< K, V, C >.
|
pure virtual |
Find the value associated with a key in the map SUCCESS if the item was found
key | The key (input) |
value | The value (output) |
Implemented in Fw::ExternalRedBlackTreeMap< K, V >, Fw::ExternalArrayMap< K, V >, Fw::RedBlackTreeMap< K, V, C >, and Fw::ArrayMap< K, V, C >.
|
pure virtual |
Insert a (key, value) pair in the map
key | The key |
value | The value |
Implemented in Fw::ExternalRedBlackTreeMap< K, V >, Fw::ExternalArrayMap< K, V >, Fw::RedBlackTreeMap< K, V, C >, and Fw::ArrayMap< K, V, C >.
|
pure virtual |
Remove a (key, value) pair from the map Store the value into the value parameter if the key was there
key | The key (input) |
value | The value (output) |
Implemented in Fw::ExternalRedBlackTreeMap< K, V >, Fw::ExternalArrayMap< K, V >, Fw::RedBlackTreeMap< K, V, C >, and Fw::ArrayMap< K, V, C >.