distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
distortos::test::StaticFifoQueueWrapper< QueueSize > Class Template Reference

StaticFifoQueueWrapper class is a variant of FifoQueueWrapper that has automatic storage for queue's contents. More...

#include <QueueWrappers.hpp>

Inheritance diagram for distortos::test::StaticFifoQueueWrapper< QueueSize >:
[legend]
Collaboration diagram for distortos::test::StaticFifoQueueWrapper< QueueSize >:
[legend]

Public Types

using TestStaticFifoQueue = StaticFifoQueue< OperationCountingType, QueueSize >
 StaticFifoQueue with OperationCountingType and storage for QueueSize elements. More...
 
- Public Types inherited from distortos::test::FifoQueueWrapper
using TestFifoQueue = FifoQueue< OperationCountingType >
 FifoQueue with OperationCountingType. More...
 

Public Member Functions

 StaticFifoQueueWrapper ()
 StaticFifoQueueWrapper's constructor. More...
 
- Public Member Functions inherited from distortos::test::FifoQueueWrapper
constexpr FifoQueueWrapper (TestFifoQueue &fifoQueue)
 FifoQueueWrapper's constructor. More...
 
bool check (uint8_t priority1, const OperationCountingType &value1, uint8_t priority2, const OperationCountingType &value2) const override
 Tests whether pushed and popped data match. More...
 
int emplace (uint8_t priority, OperationCountingType::Value value={}) const override
 Wrapper for FifoQueue::emplace() More...
 
int pop (uint8_t &priority, OperationCountingType &value) const override
 Wrapper for FifoQueue::pop() More...
 
int push (uint8_t priority, const OperationCountingType &value) const override
 Wrapper for FifoQueue::push(..., const OperationCountingType&) More...
 
int push (uint8_t priority, OperationCountingType &&value) const override
 Wrapper for FifoQueue::push(..., OperationCountingType&&) More...
 
int tryEmplace (uint8_t priority, OperationCountingType::Value value={}) const override
 Wrapper for FifoQueue::tryEmplace() More...
 
int tryEmplaceFor (TickClock::duration duration, uint8_t priority, OperationCountingType::Value value={}) const override
 Wrapper for FifoQueue::tryEmplaceFor() More...
 
int tryEmplaceUntil (TickClock::time_point timePoint, uint8_t priority, OperationCountingType::Value value={}) const override
 Wrapper for FifoQueue::tryEmplaceUntil() More...
 
int tryPop (uint8_t &priority, OperationCountingType &value) const override
 Wrapper for FifoQueue::tryPop() More...
 
int tryPopFor (TickClock::duration duration, uint8_t &priority, OperationCountingType &value) const override
 Wrapper for FifoQueue::tryPopFor() More...
 
int tryPopUntil (TickClock::time_point timePoint, uint8_t &priority, OperationCountingType &value) const override
 Wrapper for FifoQueue::tryPopUntil() More...
 
int tryPush (uint8_t priority, const OperationCountingType &value) const override
 Wrapper for FifoQueue::tryPush(..., const OperationCountingType&) More...
 
int tryPush (uint8_t priority, OperationCountingType &&value) const override
 Wrapper for FifoQueue::tryPush(..., OperationCountingType&&) More...
 
int tryPushFor (TickClock::duration duration, uint8_t priority, const OperationCountingType &value) const override
 Wrapper for FifoQueue::tryPushFor(..., const OperationCountingType&) More...
 
int tryPushFor (TickClock::duration duration, uint8_t priority, OperationCountingType &&value) const override
 Wrapper for FifoQueue::tryPushFor(..., OperationCountingType&&) More...
 
int tryPushUntil (TickClock::time_point timePoint, uint8_t priority, const OperationCountingType &value) const override
 Wrapper for FifoQueue::tryPushUntil(..., const OperationCountingType&) More...
 
int tryPushUntil (TickClock::time_point timePoint, uint8_t priority, OperationCountingType &&value) const override
 Wrapper for FifoQueue::tryPushUntil(..., OperationCountingType&&) More...
 
- Public Member Functions inherited from distortos::test::NonRawQueueWrapper
bool checkCounters (size_t constructed, size_t copyConstructed, size_t moveConstructed, size_t destructed, size_t copyAssigned, size_t moveAssigned, size_t swapped) const override
 Wrapper for OperationCountingType::checkCounters(). More...
 
- Public Member Functions inherited from distortos::test::QueueWrapper
virtual ~QueueWrapper ()=0
 QueueWrapper's destructor. More...
 

Private Attributes

TestStaticFifoQueue fifoQueue_
 internal TestStaticFifoQueue object that will be wrapped More...
 

Detailed Description

template<size_t QueueSize>
class distortos::test::StaticFifoQueueWrapper< QueueSize >

StaticFifoQueueWrapper class is a variant of FifoQueueWrapper that has automatic storage for queue's contents.

Template Parameters
QueueSizeis the maximum number of elements in queue

Member Typedef Documentation

◆ TestStaticFifoQueue

template<size_t QueueSize>
using distortos::test::StaticFifoQueueWrapper< QueueSize >::TestStaticFifoQueue = StaticFifoQueue<OperationCountingType, QueueSize>

StaticFifoQueue with OperationCountingType and storage for QueueSize elements.

Constructor & Destructor Documentation

◆ StaticFifoQueueWrapper()

template<size_t QueueSize>
distortos::test::StaticFifoQueueWrapper< QueueSize >::StaticFifoQueueWrapper ( )
inline

StaticFifoQueueWrapper's constructor.

Member Data Documentation

◆ fifoQueue_

template<size_t QueueSize>
TestStaticFifoQueue distortos::test::StaticFifoQueueWrapper< QueueSize >::fifoQueue_
private

internal TestStaticFifoQueue object that will be wrapped


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