![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/DataStructures/ExternalFifoQueue.hpp>
Public Member Functions | |
| ExternalFifoQueue ()=default | |
| Zero-argument constructor. More... | |
| ExternalFifoQueue (T *items, FwSizeType capacity) | |
| Constructor providing typed backing storage. More... | |
| ExternalFifoQueue (ByteArray data, FwSizeType capacity) | |
| Constructor providing untyped backing storage. More... | |
| ExternalFifoQueue (const ExternalFifoQueue< T > &queue) | |
| Copy constructor. More... | |
| ~ExternalFifoQueue () override=default | |
| Destructor. More... | |
| ExternalFifoQueue< T > & | operator= (const ExternalFifoQueue< T > &queue) |
| operator= More... | |
| void | clear () override |
| Clear the queue. More... | |
| void | setStorage (T *items, FwSizeType capacity) |
| Set the storage (typed data) More... | |
| void | setStorage (ByteArray data, FwSizeType capacity) |
| Set the storage (untyped data) More... | |
| Success | enqueue (const T &e) override |
| const T & | at (FwSizeType index) const override |
| Success | dequeue (T &e) override |
| FwSizeType | getSize () const override |
| FwSizeType | getCapacity () const override |
Public Member Functions inherited from Fw::FifoQueueBase< T > | |
| void | copyDataFrom (const FifoQueueBase< T > &queue) |
| Copy data from another queue. More... | |
| Success | peek (T &e, FwSizeType index=0) const |
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 | ExternalFifoQueueTester |
Additional Inherited Members | |
Protected Member Functions inherited from Fw::FifoQueueBase< T > | |
| FifoQueueBase () | |
| Zero-argument constructor. More... | |
| virtual | ~FifoQueueBase ()=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 ExternalFifoQueue.hpp.
|
default |
Zero-argument constructor.
|
inline |
Constructor providing typed backing storage.
| items | The items |
| capacity | The capacity |
Definition at line 35 of file ExternalFifoQueue.hpp.
|
inline |
Constructor providing untyped backing storage.
| data | The data |
| capacity | The capacity |
Definition at line 43 of file ExternalFifoQueue.hpp.
|
inline |
Copy constructor.
Definition at line 51 of file ExternalFifoQueue.hpp.
|
overridedefault |
Destructor.
|
inlineoverridevirtual |
Get an item at an index. Indices go from left to right in the queue. Fails an assertion if the index is out of range.
| index | The index |
Implements Fw::FifoQueueBase< T >.
Definition at line 122 of file ExternalFifoQueue.hpp.
|
inlineoverridevirtual |
Clear the queue.
Implements Fw::SizedContainer.
Definition at line 73 of file ExternalFifoQueue.hpp.
|
inlineoverridevirtual |
Dequeue an element (remove from the left)
| e | The element (output) |
Implements Fw::FifoQueueBase< T >.
Definition at line 133 of file ExternalFifoQueue.hpp.
|
inlineoverridevirtual |
Enqueue an element (push on the right)
| e | The element (output) |
Implements Fw::FifoQueueBase< T >.
Definition at line 105 of file ExternalFifoQueue.hpp.
|
inlinestatic |
Get the alignment of the storage for an ExternalFifoQueue
Definition at line 160 of file ExternalFifoQueue.hpp.
|
inlinestatic |
Get the size of the storage for an ExternalFifoQueue of the specified capacity, as a byte array
| capacity | The capacity |
Definition at line 165 of file ExternalFifoQueue.hpp.
|
inlineoverridevirtual |
Get the capacity (maximum number of items stored in the queue)
Implements Fw::SizedContainer.
Definition at line 151 of file ExternalFifoQueue.hpp.
|
inlineoverridevirtual |
Get the size (number of items stored in the queue)
Implements Fw::SizedContainer.
Definition at line 147 of file ExternalFifoQueue.hpp.
|
inline |
operator=
Definition at line 62 of file ExternalFifoQueue.hpp.
|
inline |
Set the storage (typed data)
| items | The items |
| capacity | The capacity |
Definition at line 80 of file ExternalFifoQueue.hpp.
|
inline |
Set the storage (untyped data)
| data | The data |
| capacity | The capacity |
Definition at line 92 of file ExternalFifoQueue.hpp.
|
friend |
Definition at line 24 of file ExternalFifoQueue.hpp.