![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/DataStructures/ExternalArraySet.hpp>
Public Types | |
| using | ConstIterator = SetConstIterator< T > |
| The type of a const iterator. More... | |
| using | Entry = SetOrMapImplEntry< T, Nil > |
| The type of a set entry. More... | |
Public Types inherited from Fw::SetBase< T > | |
| using | ConstIterator = SetConstIterator< T > |
| The type of a set const iterator. More... | |
Public Member Functions | |
| ExternalArraySet ()=default | |
| Zero-argument constructor. More... | |
| ExternalArraySet (Entry *entries, FwSizeType capacity) | |
| ExternalArraySet (ByteArray data, FwSizeType capacity) | |
| ExternalArraySet (const ExternalArraySet< T > &set) | |
| Copy constructor. More... | |
| ~ExternalArraySet () override=default | |
| Destructor. More... | |
| ExternalArraySet< T > & | operator= (const ExternalArraySet< 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 (Entry *entries, 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 | ExternalArraySetTester |
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 ExternalArraySet.hpp.
| using Fw::ExternalArraySet< T >::ConstIterator = SetConstIterator<T> |
The type of a const iterator.
Definition at line 32 of file ExternalArraySet.hpp.
| using Fw::ExternalArraySet< T >::Entry = SetOrMapImplEntry<T, Nil> |
The type of a set entry.
Definition at line 35 of file ExternalArraySet.hpp.
|
default |
Zero-argument constructor.
|
inline |
Constructor providing typed backing storage. entries must point to at least capacity elements of type ImplEntry.
| entries | The entries |
| capacity | The capacity |
Definition at line 47 of file ExternalArraySet.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 57 of file ExternalArraySet.hpp.
|
inline |
Copy constructor.
Definition at line 65 of file ExternalArraySet.hpp.
|
overridedefault |
Destructor.
|
inlineoverridevirtual |
Get the begin iterator
Implements Fw::SetBase< T >.
Definition at line 85 of file ExternalArraySet.hpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Get the end iterator
Implements Fw::SetBase< T >.
Definition at line 92 of file ExternalArraySet.hpp.
|
inlineoverridevirtual |
Find a value associated with an element in the set
| element | The element |
Implements Fw::SetBase< T >.
Definition at line 96 of file ExternalArraySet.hpp.
|
inlinestatic |
Get the alignment of the storage for an ArraySetOrMapImpl
Definition at line 149 of file ExternalArraySet.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 154 of file ExternalArraySet.hpp.
|
inlineoverridevirtual |
Get the capacity of the set (max number of entries)
Implements Fw::SizedContainer.
Definition at line 104 of file ExternalArraySet.hpp.
|
inlineoverridevirtual |
Get the size (number of entries)
Implements Fw::SizedContainer.
Definition at line 108 of file ExternalArraySet.hpp.
|
inlineoverridevirtual |
Insert an element in the set
| element | The element |
Implements Fw::SetBase< T >.
Definition at line 112 of file ExternalArraySet.hpp.
|
inline |
operator=
Definition at line 76 of file ExternalArraySet.hpp.
|
inlineoverridevirtual |
Remove an element from the set
| element | The element |
Implements Fw::SetBase< T >.
Definition at line 119 of file ExternalArraySet.hpp.
|
inline |
Set the backing storage (typed data) entries must point to at least capacity elements of type ImplEntry.
| entries | The entries |
| capacity | The capacity |
Definition at line 127 of file ExternalArraySet.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 136 of file ExternalArraySet.hpp.
|
friend |
Definition at line 24 of file ExternalArraySet.hpp.