![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/DataStructures/ExternalRedBlackTreeSet.hpp>
Public Types | |
| using | ConstIterator = SetConstIterator< T > |
| The type of a const iterator. More... | |
| using | Node = typename RedBlackTreeSetOrMapImpl< T, Nil >::Node |
| The type of a tree node. More... | |
| using | Index = typename RedBlackTreeSetOrMapImpl< T, Nil >::Index |
| The type of a tree node index. More... | |
Public Types inherited from Fw::SetBase< T > | |
| using | ConstIterator = SetConstIterator< T > |
| The type of a set const iterator. More... | |
Public Member Functions | |
| ExternalRedBlackTreeSet ()=default | |
| Zero-argument constructor. More... | |
| ExternalRedBlackTreeSet (Node *nodes, Index *freeNodes, FwSizeType capacity) | |
| ExternalRedBlackTreeSet (ByteArray data, FwSizeType capacity) | |
| ExternalRedBlackTreeSet (const ExternalRedBlackTreeSet< T > &set) | |
| Copy constructor. More... | |
| ~ExternalRedBlackTreeSet () override=default | |
| Destructor. More... | |
| ExternalRedBlackTreeSet< T > & | operator= (const ExternalRedBlackTreeSet< T > &set) |
| operator= More... | |
| ConstIterator | begin () const override |
| void | clear () override |
| Clear the set. More... | |
| ConstIterator | end () const override |
| Success | find (const T &element) const override |
| FwSizeType | getCapacity () const override |
| FwSizeType | getSize () const override |
| Success | insert (const T &element) override |
| Success | remove (const T &element) override |
| void | setStorage (Node *nodes, Index *freeNodes, FwSizeType capacity) |
| void | setStorage (ByteArray data, FwSizeType capacity) |
Public Member Functions inherited from Fw::SetBase< T > | |
| void | copyDataFrom (const SetBase< T > &set) |
| Copy data from another set. 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 TT > | |
| class | ExternalRedBlackTreeSetTester |
Additional Inherited Members | |
Protected Member Functions inherited from Fw::SetBase< T > | |
| SetBase () | |
| Zero-argument constructor. More... | |
| virtual | ~SetBase ()=default |
| Destructor. More... | |
Protected Member Functions inherited from Fw::SizedContainer | |
| SizedContainer () | |
| Zero-argument constructor. More... | |
| virtual | ~SizedContainer ()=default |
| Destructor. More... | |
Definition at line 18 of file ExternalRedBlackTreeSet.hpp.
| using Fw::ExternalRedBlackTreeSet< T >::ConstIterator = SetConstIterator<T> |
The type of a const iterator.
Definition at line 32 of file ExternalRedBlackTreeSet.hpp.
| using Fw::ExternalRedBlackTreeSet< T >::Index = typename RedBlackTreeSetOrMapImpl<T, Nil>::Index |
The type of a tree node index.
Definition at line 38 of file ExternalRedBlackTreeSet.hpp.
| using Fw::ExternalRedBlackTreeSet< T >::Node = typename RedBlackTreeSetOrMapImpl<T, Nil>::Node |
The type of a tree node.
Definition at line 35 of file ExternalRedBlackTreeSet.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 51 of file ExternalRedBlackTreeSet.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 62 of file ExternalRedBlackTreeSet.hpp.
|
inline |
Copy constructor.
Definition at line 70 of file ExternalRedBlackTreeSet.hpp.
|
overridedefault |
Destructor.
|
inlineoverridevirtual |
Get the begin iterator
Implements Fw::SetBase< T >.
Definition at line 90 of file ExternalRedBlackTreeSet.hpp.
|
inlineoverridevirtual |
Clear the set.
Implements Fw::SizedContainer.
Definition at line 93 of file ExternalRedBlackTreeSet.hpp.
|
inlineoverridevirtual |
Get the end iterator
Implements Fw::SetBase< T >.
Definition at line 97 of file ExternalRedBlackTreeSet.hpp.
|
inlineoverridevirtual |
Find a value associated with an element in the set
| element | The element |
Implements Fw::SetBase< T >.
Definition at line 101 of file ExternalRedBlackTreeSet.hpp.
|
inlinestatic |
Get the alignment of the storage for an RedBlackTreeSetOrMapImpl
Definition at line 156 of file ExternalRedBlackTreeSet.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 ExternalRedBlackTreeSet.hpp.
|
inlineoverridevirtual |
Get the capacity of the set (max number of entries)
Implements Fw::SizedContainer.
Definition at line 109 of file ExternalRedBlackTreeSet.hpp.
|
inlineoverridevirtual |
Get the size (number of entries)
Implements Fw::SizedContainer.
Definition at line 113 of file ExternalRedBlackTreeSet.hpp.
|
inlineoverridevirtual |
Insert an element in the set
| element | The element |
Implements Fw::SetBase< T >.
Definition at line 117 of file ExternalRedBlackTreeSet.hpp.
|
inline |
operator=
Definition at line 81 of file ExternalRedBlackTreeSet.hpp.
|
inlineoverridevirtual |
Remove an element from the set
| element | The element |
Implements Fw::SetBase< T >.
Definition at line 124 of file ExternalRedBlackTreeSet.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 ExternalRedBlackTreeSet.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 ExternalRedBlackTreeSet.hpp.
|
friend |
Definition at line 24 of file ExternalRedBlackTreeSet.hpp.