F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Types::SpscQueue< E, CAPACITY > Class Template Reference

#include <Utils/Types/SpscQueue.hpp>

Public Member Functions

 SpscQueue ()
 
bool isFull () const
 
bool isEmpty () const
 
bool produce (const E &element)
 
bool consume (E &elementOut)
 
bool peek (E &elementOut) const
 
bool consume ()
 

Detailed Description

template<class E, FwSizeType CAPACITY>
class Types::SpscQueue< E, CAPACITY >

Definition at line 49 of file SpscQueue.hpp.

Constructor & Destructor Documentation

◆ SpscQueue()

template<class E , FwSizeType CAPACITY>
Types::SpscQueue< E, CAPACITY >::SpscQueue ( )
inline

Definition at line 55 of file SpscQueue.hpp.

Member Function Documentation

◆ consume() [1/2]

template<class E , FwSizeType CAPACITY>
bool Types::SpscQueue< E, CAPACITY >::consume ( E &  elementOut)
inline

Definition at line 80 of file SpscQueue.hpp.

◆ consume() [2/2]

template<class E , FwSizeType CAPACITY>
bool Types::SpscQueue< E, CAPACITY >::consume ( )
inline

Definition at line 107 of file SpscQueue.hpp.

◆ isEmpty()

template<class E , FwSizeType CAPACITY>
bool Types::SpscQueue< E, CAPACITY >::isEmpty ( ) const
inline

Definition at line 63 of file SpscQueue.hpp.

◆ isFull()

template<class E , FwSizeType CAPACITY>
bool Types::SpscQueue< E, CAPACITY >::isFull ( ) const
inline

Definition at line 59 of file SpscQueue.hpp.

◆ peek()

template<class E , FwSizeType CAPACITY>
bool Types::SpscQueue< E, CAPACITY >::peek ( E &  elementOut) const
inline

Definition at line 94 of file SpscQueue.hpp.

◆ produce()

template<class E , FwSizeType CAPACITY>
bool Types::SpscQueue< E, CAPACITY >::produce ( const E &  element)
inline

Definition at line 66 of file SpscQueue.hpp.


The documentation for this class was generated from the following file: