![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/DataStructures/RedBlackTreeMap.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 | Nodes = Node[C] |
The type of the tree node array. More... | |
using | Index = typename RedBlackTreeSetOrMapImpl< K, V >::Index |
The type of a tree node index. More... | |
using | FreeNodes = Index[C] |
The type of the free node array. More... | |
![]() | |
using | ConstIterator = MapConstIterator< K, V > |
The type of a map const iterator. More... | |
Public Member Functions | |
RedBlackTreeMap () | |
Zero-argument constructor. More... | |
RedBlackTreeMap (const RedBlackTreeMap< K, V, C > &map) | |
Copy constructor. More... | |
~RedBlackTreeMap () override=default | |
Destructor. More... | |
RedBlackTreeMap< K, V, C > & | operator= (const RedBlackTreeMap< 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 | RedBlackTreeMapTester |
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 RedBlackTreeMap.hpp.
using Fw::RedBlackTreeMap< K, V, C >::ConstIterator = MapConstIterator<K, V> |
The type of a const iterator.
Definition at line 35 of file RedBlackTreeMap.hpp.
using Fw::RedBlackTreeMap< K, V, C >::FreeNodes = Index[C] |
The type of the free node array.
Definition at line 47 of file RedBlackTreeMap.hpp.
using Fw::RedBlackTreeMap< K, V, C >::Index = typename RedBlackTreeSetOrMapImpl<K, V>::Index |
The type of a tree node index.
Definition at line 44 of file RedBlackTreeMap.hpp.
using Fw::RedBlackTreeMap< K, V, C >::Node = typename RedBlackTreeSetOrMapImpl<K, V>::Node |
The type of a tree node.
Definition at line 38 of file RedBlackTreeMap.hpp.
using Fw::RedBlackTreeMap< K, V, C >::Nodes = Node[C] |
The type of the tree node array.
Definition at line 41 of file RedBlackTreeMap.hpp.
|
inline |
Zero-argument constructor.
Definition at line 55 of file RedBlackTreeMap.hpp.
|
inline |
Copy constructor.
Definition at line 58 of file RedBlackTreeMap.hpp.
|
overridedefault |
Destructor.
|
inlineoverridevirtual |
Get the begin iterator
Implements Fw::MapBase< K, V >.
Definition at line 78 of file RedBlackTreeMap.hpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Get the end iterator
Implements Fw::MapBase< K, V >.
Definition at line 85 of file RedBlackTreeMap.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 89 of file RedBlackTreeMap.hpp.
|
inlineoverridevirtual |
Get the capacity of the map (max number of entries)
Implements Fw::SizedContainer.
Definition at line 97 of file RedBlackTreeMap.hpp.
|
inlineoverridevirtual |
Get the size (number of entries)
Implements Fw::SizedContainer.
Definition at line 101 of file RedBlackTreeMap.hpp.
|
inlineoverridevirtual |
Insert a (key, value) pair in the map
key | The key |
value | The value |
Implements Fw::MapBase< K, V >.
Definition at line 105 of file RedBlackTreeMap.hpp.
|
inline |
operator=
Definition at line 71 of file RedBlackTreeMap.hpp.
|
inlineoverridevirtual |
Remove a (key, value) pair from the map
key | The key |
value | The value |
Implements Fw::MapBase< K, V >.
Definition at line 113 of file RedBlackTreeMap.hpp.
|
friend |
Definition at line 20 of file RedBlackTreeMap.hpp.