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

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

#include <QueueWrappers.hpp>

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

Public Types

using TestStaticRawFifoQueue = StaticRawFifoQueue< OperationCountingType::Value, QueueSize >
 StaticRawFifoQueue with OperationCountingType::Value and storage for QueueSize elements. More...
 

Public Member Functions

 StaticRawFifoQueueWrapper ()
 StaticFifoQueueWrapper's constructor. More...
 
- Public Member Functions inherited from distortos::test::RawFifoQueueWrapper
constexpr RawFifoQueueWrapper (RawFifoQueue &rawFifoQueue)
 RawFifoQueueWrapper'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 pop (uint8_t &priority, void *buffer, size_t size) const override
 Wrapper for RawFifoQueue::pop() More...
 
int push (uint8_t priority, const void *data, size_t size) const override
 Wrapper for RawFifoQueue::push() More...
 
int tryPop (uint8_t &priority, void *buffer, size_t size) const override
 Wrapper for RawFifoQueue::tryPop() More...
 
int tryPopFor (TickClock::duration duration, uint8_t &priority, void *buffer, size_t size) const override
 Wrapper for RawFifoQueue::tryPopFor() More...
 
int tryPopUntil (TickClock::time_point timePoint, uint8_t &priority, void *buffer, size_t size) const override
 Wrapper for RawFifoQueue::tryPopUntil() More...
 
int tryPush (uint8_t priority, const void *data, size_t size) const override
 Wrapper for RawFifoQueue::tryPush() More...
 
int tryPushFor (TickClock::duration duration, uint8_t priority, const void *data, size_t size) const override
 Wrapper for RawFifoQueue::tryPushFor() More...
 
int tryPushUntil (TickClock::time_point timePoint, uint8_t priority, const void *data, size_t size) const override
 Wrapper for RawFifoQueue::tryPushUntil() More...
 
- Public Member Functions inherited from distortos::test::RawQueueWrapper
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...
 
int emplace (uint8_t priority, OperationCountingType::Value value={}) const final override
 Redirects the call to "raw" push(). More...
 
int pop (uint8_t &priority, OperationCountingType &value) const final override
 Redirects the call to "raw" pop(). More...
 
int push (uint8_t priority, const OperationCountingType &value) const final override
 Redirects the call to "raw" push(). More...
 
int push (uint8_t priority, OperationCountingType &&value) const final override
 Redirects the call to push(..., const OperationCountingType&). More...
 
int tryEmplace (uint8_t priority, OperationCountingType::Value value={}) const final override
 Redirects the call to "raw" tryPush(). More...
 
int tryEmplaceFor (TickClock::duration duration, uint8_t priority, OperationCountingType::Value value={}) const final override
 Redirects the call to "raw" tryPushFor(). More...
 
int tryEmplaceUntil (TickClock::time_point timePoint, uint8_t priority, OperationCountingType::Value value={}) const final override
 Redirects the call to "raw" tryPushUntil(). More...
 
int tryPop (uint8_t &priority, OperationCountingType &value) const final override
 Redirects the call to "raw" tryPop(). More...
 
int tryPopFor (TickClock::duration duration, uint8_t &priority, OperationCountingType &value) const final override
 Redirects the call to "raw" tryPopFor(). More...
 
int tryPopUntil (TickClock::time_point timePoint, uint8_t &priority, OperationCountingType &value) const final override
 Redirects the call to "raw" tryPopUntil(). More...
 
int tryPush (uint8_t priority, const OperationCountingType &value) const final override
 Redirects the call to "raw" tryPush(). More...
 
int tryPush (uint8_t priority, OperationCountingType &&value) const final override
 Redirects the call to tryPush(..., const OperationCountingType&). More...
 
int tryPushFor (TickClock::duration duration, uint8_t priority, const OperationCountingType &value) const final override
 Redirects the call to "raw" tryPushFor(). More...
 
int tryPushFor (TickClock::duration duration, uint8_t priority, OperationCountingType &&value) const final override
 Redirects the call to tryPushFor(..., const OperationCountingType&). More...
 
int tryPushUntil (TickClock::time_point timePoint, uint8_t priority, const OperationCountingType &value) const final override
 Redirects the call to "raw" tryPushUntil(). More...
 
int tryPushUntil (TickClock::time_point timePoint, uint8_t priority, OperationCountingType &&value) const final override
 Redirects the call to tryPushUntil(..., const OperationCountingType&). More...
 
- Public Member Functions inherited from distortos::test::QueueWrapper
virtual ~QueueWrapper ()=0
 QueueWrapper's destructor. More...
 

Private Attributes

TestStaticRawFifoQueue rawFifoQueue_
 internal TestStaticRawFifoQueue object that will be wrapped More...
 

Detailed Description

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

StaticRawFifoQueueWrapper class is a variant of RawFifoQueueWrapper that has automatic storage for queue's contents.

Template Parameters
QueueSizeis the maximum number of elements in queue

Member Typedef Documentation

◆ TestStaticRawFifoQueue

StaticRawFifoQueue with OperationCountingType::Value and storage for QueueSize elements.

Constructor & Destructor Documentation

◆ StaticRawFifoQueueWrapper()

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

StaticFifoQueueWrapper's constructor.

Member Data Documentation

◆ rawFifoQueue_

template<size_t QueueSize>
TestStaticRawFifoQueue distortos::test::StaticRawFifoQueueWrapper< QueueSize >::rawFifoQueue_
private

internal TestStaticRawFifoQueue object that will be wrapped


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