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

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

#include <QueueWrappers.hpp>

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

Public Types

using TestDynamicFifoQueue = DynamicFifoQueue< OperationCountingType >
 DynamicFifoQueue with OperationCountingType. More...
 
- Public Types inherited from distortos::test::FifoQueueWrapper
using TestFifoQueue = FifoQueue< OperationCountingType >
 FifoQueue with OperationCountingType. More...
 

Public Member Functions

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

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

Detailed Description

DynamicFifoQueueWrapper class is a variant of FifoQueueWrapper that has dynamic storage for queue's contents.

Member Typedef Documentation

◆ TestDynamicFifoQueue

Constructor & Destructor Documentation

◆ DynamicFifoQueueWrapper()

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

DynamicFifoQueueWrapper's constructor.

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

Member Data Documentation

◆ fifoQueue_

TestDynamicFifoQueue distortos::test::DynamicFifoQueueWrapper::fifoQueue_
private

internal TestDynamicFifoQueue object that will be wrapped


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