![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/DataStructures/FifoQueueBase.hpp>
Public Member Functions | |
| virtual const T & | at (FwSizeType index) const =0 |
| void | copyDataFrom (const FifoQueueBase< T > &queue) |
| Copy data from another queue. More... | |
| virtual Success | enqueue (const T &e)=0 |
| Success | peek (T &e, FwSizeType index=0) const |
| virtual Success | dequeue (T &e)=0 |
Public Member Functions inherited from Fw::SizedContainer | |
| virtual void | clear ()=0 |
| Clear the container. More... | |
| virtual FwSizeType | getSize () const =0 |
| virtual FwSizeType | getCapacity () const =0 |
| bool | isEmpty () const |
| bool | isFull () const |
Protected Member Functions | |
| 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 17 of file FifoQueueBase.hpp.
|
inlineprotected |
Zero-argument constructor.
Definition at line 33 of file FifoQueueBase.hpp.
|
protectedvirtualdefault |
Destructor.
|
pure virtual |
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 |
Implemented in Fw::ExternalFifoQueue< T >, and Fw::FifoQueue< T, C >.
|
inline |
Copy data from another queue.
| queue | The queue |
Definition at line 61 of file FifoQueueBase.hpp.
|
pure virtual |
Dequeue an item (remove from the left)
| e | The item (output) |
Implemented in Fw::ExternalFifoQueue< T >, and Fw::FifoQueue< T, C >.
|
pure virtual |
Enqueue an item (add to the right)
| e | The item (output) |
Implemented in Fw::ExternalFifoQueue< T >, and Fw::FifoQueue< T, C >.
|
inline |
Peek an item at an index Indices go from left to right in the range [0, size)
| e | The item (output) |
| index | The index (input) |
Definition at line 82 of file FifoQueueBase.hpp.