distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
distortos::test::DynamicRawMessageQueueWrapper Class Reference

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

#include <QueueWrappers.hpp>

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

Public Member Functions

 DynamicRawMessageQueueWrapper (size_t queueSize)
 DynamicMessageQueueWrapper's constructor. More...
 
- Public Member Functions inherited from distortos::test::RawMessageQueueWrapper
constexpr RawMessageQueueWrapper (RawMessageQueue &rawMessageQueue)
 RawMessageQueueWrapper'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 RawMessageQueue::pop() More...
 
int push (uint8_t priority, const void *data, size_t size) const override
 Wrapper for RawMessageQueue::push() More...
 
int tryPop (uint8_t &priority, void *buffer, size_t size) const override
 Wrapper for RawMessageQueue::tryPop() More...
 
int tryPopFor (TickClock::duration duration, uint8_t &priority, void *buffer, size_t size) const override
 Wrapper for RawMessageQueue::tryPopFor() More...
 
int tryPopUntil (TickClock::time_point timePoint, uint8_t &priority, void *buffer, size_t size) const override
 Wrapper for RawMessageQueue::tryPopUntil() More...
 
int tryPush (uint8_t priority, const void *data, size_t size) const override
 Wrapper for RawMessageQueue::tryPush() More...
 
int tryPushFor (TickClock::duration duration, uint8_t priority, const void *data, size_t size) const override
 Wrapper for RawMessageQueue::tryPushFor() More...
 
int tryPushUntil (TickClock::time_point timePoint, uint8_t priority, const void *data, size_t size) const override
 Wrapper for RawMessageQueue::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

DynamicRawMessageQueue rawMessageQueue_
 internal DynamicRawMessageQueue object that will be wrapped More...
 

Detailed Description

DynamicRawMessageQueueWrapper class is a variant of RawMessageQueueWrapper that has dynamic storage for queue's contents.

Constructor & Destructor Documentation

◆ DynamicRawMessageQueueWrapper()

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

DynamicMessageQueueWrapper's constructor.

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

Member Data Documentation

◆ rawMessageQueue_

DynamicRawMessageQueue distortos::test::DynamicRawMessageQueueWrapper::rawMessageQueue_
private

internal DynamicRawMessageQueue object that will be wrapped


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