![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/DataStructures/ExternalRedBlackTreeMap.hpp>
Public Types | |
| using | ConstIterator = MapConstIterator< K, V > |
| The type of a const iterator. More... | |
| using | Node = typename RedBlackTreeSetOrMapImpl< K, V >::Node |
| The type of a tree node. More... | |
| using | Index = typename RedBlackTreeSetOrMapImpl< K, V >::Index |
| The type of a tree node index. More... | |
Public Types inherited from Fw::MapBase< K, V > | |
| using | ConstIterator = MapConstIterator< K, V > |
| The type of a map const iterator. More... | |
Public Member Functions | |
| ExternalRedBlackTreeMap ()=default | |
| Zero-argument constructor. More... | |
| ExternalRedBlackTreeMap (Node *nodes, Index *freeNodes, FwSizeType capacity) | |
| ExternalRedBlackTreeMap (ByteArray data, FwSizeType capacity) | |
| ExternalRedBlackTreeMap (const ExternalRedBlackTreeMap< K, V > &map) | |
| Copy constructor. More... | |
| ~ExternalRedBlackTreeMap () override=default | |
| Destructor. More... | |
| ExternalRedBlackTreeMap< K, V > & | operator= (const ExternalRedBlackTreeMap< 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 (Node *nodes, Index *freeNodes, FwSizeType capacity) |
| void | setStorage (ByteArray data, FwSizeType capacity) |
Public Member Functions inherited from Fw::MapBase< K, V > | |
| void | copyDataFrom (const MapBase< K, V > &map) |
| Copy data from another map. More... | |
Public Member Functions inherited from Fw::SizedContainer | |
| 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 | ExternalRedBlackTreeMapTester |
Additional Inherited Members | |
Protected Member Functions inherited from Fw::MapBase< K, V > | |
| MapBase () | |
| Zero-argument constructor. More... | |
| virtual | ~MapBase ()=default |
| Destructor. More... | |
Protected Member Functions inherited from Fw::SizedContainer | |
| SizedContainer () | |
| Zero-argument constructor. More... | |
| virtual | ~SizedContainer ()=default |
| Destructor. More... | |
Definition at line 17 of file ExternalRedBlackTreeMap.hpp.
| using Fw::ExternalRedBlackTreeMap< K, V >::ConstIterator = MapConstIterator<K, V> |
The type of a const iterator.
Definition at line 31 of file ExternalRedBlackTreeMap.hpp.
| using Fw::ExternalRedBlackTreeMap< K, V >::Index = typename RedBlackTreeSetOrMapImpl<K, V>::Index |
The type of a tree node index.
Definition at line 37 of file ExternalRedBlackTreeMap.hpp.
| using Fw::ExternalRedBlackTreeMap< K, V >::Node = typename RedBlackTreeSetOrMapImpl<K, V>::Node |
The type of a tree node.
Definition at line 34 of file ExternalRedBlackTreeMap.hpp.
|
default |
Zero-argument constructor.
|
inline |
Constructor providing typed backing storage. nodes must point to at least capacity elements of type Node. freeNodes must point to at least capacity elements of type FwSizeType.
| nodes | The nodes |
| freeNodes | The free nodes |
| capacity | The capacity |
Definition at line 50 of file ExternalRedBlackTreeMap.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 61 of file ExternalRedBlackTreeMap.hpp.
|
inline |
Copy constructor.
Definition at line 69 of file ExternalRedBlackTreeMap.hpp.
|
overridedefault |
Destructor.
|
inlineoverridevirtual |
Get the begin iterator
Implements Fw::MapBase< K, V >.
Definition at line 89 of file ExternalRedBlackTreeMap.hpp.
|
inlineoverridevirtual |
Clear the map.
Implements Fw::SizedContainer.
Definition at line 92 of file ExternalRedBlackTreeMap.hpp.
|
inlineoverridevirtual |
Get the end iterator
Implements Fw::MapBase< K, V >.
Definition at line 96 of file ExternalRedBlackTreeMap.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 100 of file ExternalRedBlackTreeMap.hpp.
|
inlinestatic |
Get the alignment of the storage for an RedBlackTreeSetOrMapImpl
Definition at line 156 of file ExternalRedBlackTreeMap.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 161 of file ExternalRedBlackTreeMap.hpp.
|
inlineoverridevirtual |
Get the capacity of the map (max number of entries)
Implements Fw::SizedContainer.
Definition at line 108 of file ExternalRedBlackTreeMap.hpp.
|
inlineoverridevirtual |
Get the size (number of entries)
Implements Fw::SizedContainer.
Definition at line 112 of file ExternalRedBlackTreeMap.hpp.
|
inlineoverridevirtual |
Insert a (key, value) pair in the map
| key | The key |
| value | The value |
Implements Fw::MapBase< K, V >.
Definition at line 116 of file ExternalRedBlackTreeMap.hpp.
|
inline |
operator=
Definition at line 80 of file ExternalRedBlackTreeMap.hpp.
|
inlineoverridevirtual |
Remove a (key, value) pair from the map
| key | The key |
| value | The value |
Implements Fw::MapBase< K, V >.
Definition at line 124 of file ExternalRedBlackTreeMap.hpp.
|
inline |
Set the backing storage (typed data) nodes must point to at least capacity elements of type Node. freeNodes must point to at least capacity elements of type FwSizeType.
| nodes | The nodes |
| freeNodes | The free nodes |
| capacity | The capacity |
Definition at line 133 of file ExternalRedBlackTreeMap.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 143 of file ExternalRedBlackTreeMap.hpp.
|
friend |
Definition at line 23 of file ExternalRedBlackTreeMap.hpp.