distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
distortos::test::DynamicRawFifoQueueWrapper Class Reference

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

#include <QueueWrappers.hpp>

Inheritance diagram for distortos::test::DynamicRawFifoQueueWrapper:
[legend]
Collaboration diagram for distortos::test::DynamicRawFifoQueueWrapper:
[legend]

Public Member Functions

 DynamicRawFifoQueueWrapper (size_t queueSize)
 DynamicFifoQueueWrapper'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

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

Detailed Description

DynamicRawFifoQueueWrapper class is a variant of RawFifoQueueWrapper that has dynamic storage for queue's contents.

Constructor & Destructor Documentation

◆ DynamicRawFifoQueueWrapper()

distortos::test::DynamicRawFifoQueueWrapper::DynamicRawFifoQueueWrapper ( size_t  queueSize)
explicit

DynamicFifoQueueWrapper's constructor.

Parameters
[in]queueSizeis the maximum number of elements in queue

Member Data Documentation

◆ rawFifoQueue_

DynamicRawFifoQueue distortos::test::DynamicRawFifoQueueWrapper::rawFifoQueue_
private

internal DynamicRawFifoQueue object that will be wrapped


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