![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/DataStructures/FifoQueue.hpp>
Public Member Functions | |
FifoQueue () | |
Zero-argument constructor. More... | |
FifoQueue (const FifoQueue< T, C > &queue) | |
Copy constructor. More... | |
~FifoQueue () override=default | |
Destructor. More... | |
FifoQueue< T, C > & | operator= (const FifoQueue< T, C > &queue) |
operator= More... | |
void | clear () override |
Clear the queue. More... | |
Success | enqueue (const T &e) override |
Success | dequeue (T &e) override |
FwSizeType | getSize () const override |
FwSizeType | getCapacity () const override |
const T & | at (FwSizeType index) const override |
![]() | |
void | copyDataFrom (const FifoQueueBase< T > &queue) |
Copy data from another queue. More... | |
Success | peek (T &e, FwSizeType index=0) const |
![]() | |
bool | isEmpty () const |
bool | isFull () const |
Friends | |
template<typename TT , FwSizeType CC> | |
class | FifoQueueTester |
Additional Inherited Members | |
![]() | |
FifoQueueBase () | |
Zero-argument constructor. More... | |
virtual | ~FifoQueueBase ()=default |
Destructor. More... | |
![]() | |
SizedContainer () | |
Zero-argument constructor. More... | |
virtual | ~SizedContainer ()=default |
Destructor. More... | |
Definition at line 16 of file FifoQueue.hpp.
|
inline |
Zero-argument constructor.
Definition at line 37 of file FifoQueue.hpp.
|
inline |
Copy constructor.
Definition at line 40 of file FifoQueue.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 85 of file FifoQueue.hpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Dequeue an item (remove from the left)
e | The item (output) |
Implements Fw::FifoQueueBase< T >.
Definition at line 68 of file FifoQueue.hpp.
|
inlineoverridevirtual |
Enqueue an item (push on the right)
e | The item (output) |
Implements Fw::FifoQueueBase< T >.
Definition at line 61 of file FifoQueue.hpp.
|
inlineoverridevirtual |
Get the capacity (maximum number of items stored in the queue)
Implements Fw::SizedContainer.
Definition at line 79 of file FifoQueue.hpp.
|
inlineoverridevirtual |
Get the size (number of items stored in the queue)
Implements Fw::SizedContainer.
Definition at line 75 of file FifoQueue.hpp.
|
inline |
operator=
Definition at line 51 of file FifoQueue.hpp.
|
friend |
Definition at line 21 of file FifoQueue.hpp.