![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/DataStructures/RedBlackTreeSet.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 | Nodes = Node[C] |
| The type of the tree node array. More... | |
| using | Index = typename RedBlackTreeSetOrMapImpl< T, Nil >::Index |
| The type of a tree node index. More... | |
| using | FreeNodes = Index[C] |
| The type of the free node array. More... | |
Public Types inherited from Fw::SetBase< T > | |
| using | ConstIterator = SetConstIterator< T > |
| The type of a set const iterator. More... | |
Public Member Functions | |
| RedBlackTreeSet () | |
| Zero-argument constructor. More... | |
| RedBlackTreeSet (const RedBlackTreeSet< T, C > &set) | |
| Copy constructor. More... | |
| ~RedBlackTreeSet () override=default | |
| Destructor. More... | |
| RedBlackTreeSet< T, C > & | operator= (const RedBlackTreeSet< T, C > &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 |
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 |
Friends | |
| template<typename TT , FwSizeType CC> | |
| class | RedBlackTreeSetTester |
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 15 of file RedBlackTreeSet.hpp.
| using Fw::RedBlackTreeSet< T, C >::ConstIterator = SetConstIterator<T> |
The type of a const iterator.
Definition at line 35 of file RedBlackTreeSet.hpp.
| using Fw::RedBlackTreeSet< T, C >::FreeNodes = Index[C] |
The type of the free node array.
Definition at line 47 of file RedBlackTreeSet.hpp.
| using Fw::RedBlackTreeSet< T, C >::Index = typename RedBlackTreeSetOrMapImpl<T, Nil>::Index |
The type of a tree node index.
Definition at line 44 of file RedBlackTreeSet.hpp.
| using Fw::RedBlackTreeSet< T, C >::Node = typename RedBlackTreeSetOrMapImpl<T, Nil>::Node |
The type of a tree node.
Definition at line 38 of file RedBlackTreeSet.hpp.
| using Fw::RedBlackTreeSet< T, C >::Nodes = Node[C] |
The type of the tree node array.
Definition at line 41 of file RedBlackTreeSet.hpp.
|
inline |
Zero-argument constructor.
Definition at line 55 of file RedBlackTreeSet.hpp.
|
inline |
Copy constructor.
Definition at line 58 of file RedBlackTreeSet.hpp.
|
overridedefault |
Destructor.
|
inlineoverridevirtual |
Get the begin iterator
Implements Fw::SetBase< T >.
Definition at line 76 of file RedBlackTreeSet.hpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Get the end iterator
Implements Fw::SetBase< T >.
Definition at line 83 of file RedBlackTreeSet.hpp.
|
inlineoverridevirtual |
Find an element in the set
| element | The element |
Implements Fw::SetBase< T >.
Definition at line 87 of file RedBlackTreeSet.hpp.
|
inlineoverridevirtual |
Get the capacity of the set (max number of entries)
Implements Fw::SizedContainer.
Definition at line 94 of file RedBlackTreeSet.hpp.
|
inlineoverridevirtual |
Get the size (number of entries)
Implements Fw::SizedContainer.
Definition at line 98 of file RedBlackTreeSet.hpp.
|
inlineoverridevirtual |
Insert an element in the set
| element | The element |
Implements Fw::SetBase< T >.
Definition at line 102 of file RedBlackTreeSet.hpp.
|
inline |
operator=
Definition at line 69 of file RedBlackTreeSet.hpp.
|
inlineoverridevirtual |
Remove an element from the set
| element | The element |
Implements Fw::SetBase< T >.
Definition at line 109 of file RedBlackTreeSet.hpp.
|
friend |
Definition at line 20 of file RedBlackTreeSet.hpp.