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

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

#include <QueueWrappers.hpp>

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

Public Types

using TestDynamicMessageQueue = DynamicMessageQueue< OperationCountingType >
 DynamicMessageQueue with OperationCountingType. More...
 
- Public Types inherited from distortos::test::MessageQueueWrapper
using TestMessageQueue = MessageQueue< OperationCountingType >
 MessageQueue with OperationCountingType. More...
 

Public Member Functions

 DynamicMessageQueueWrapper (size_t queueSize)
 DynamicMessageQueueWrapper's constructor. More...
 
- Public Member Functions inherited from distortos::test::MessageQueueWrapper
constexpr MessageQueueWrapper (TestMessageQueue &messageQueue)
 MessageQueueWrapper'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 MessageQueue::emplace() More...
 
int pop (uint8_t &priority, OperationCountingType &value) const override
 Wrapper for MessageQueue::pop() More...
 
int push (uint8_t priority, const OperationCountingType &value) const override
 Wrapper for MessageQueue::push(..., const OperationCountingType&) More...
 
int push (uint8_t priority, OperationCountingType &&value) const override
 Wrapper for MessageQueue::push(..., OperationCountingType&&) More...
 
int tryEmplace (uint8_t priority, OperationCountingType::Value value={}) const override
 Wrapper for MessageQueue::tryEmplace() More...
 
int tryEmplaceFor (TickClock::duration duration, uint8_t priority, OperationCountingType::Value value={}) const override
 Wrapper for MessageQueue::tryEmplaceFor() More...
 
int tryEmplaceUntil (TickClock::time_point timePoint, uint8_t priority, OperationCountingType::Value value={}) const override
 Wrapper for MessageQueue::tryEmplaceUntil() More...
 
int tryPop (uint8_t &priority, OperationCountingType &value) const override
 Wrapper for MessageQueue::tryPop() More...
 
int tryPopFor (TickClock::duration duration, uint8_t &priority, OperationCountingType &value) const override
 Wrapper for MessageQueue::tryPopFor() More...
 
int tryPopUntil (TickClock::time_point timePoint, uint8_t &priority, OperationCountingType &value) const override
 Wrapper for MessageQueue::tryPopUntil() More...
 
int tryPush (uint8_t priority, const OperationCountingType &value) const override
 Wrapper for MessageQueue::tryPush(..., const OperationCountingType&) More...
 
int tryPush (uint8_t priority, OperationCountingType &&value) const override
 Wrapper for MessageQueue::tryPush(..., OperationCountingType&&) More...
 
int tryPushFor (TickClock::duration duration, uint8_t priority, const OperationCountingType &value) const override
 Wrapper for MessageQueue::tryPushFor(..., const OperationCountingType&) More...
 
int tryPushFor (TickClock::duration duration, uint8_t priority, OperationCountingType &&value) const override
 Wrapper for MessageQueue::tryPushFor(..., OperationCountingType&&) More...
 
int tryPushUntil (TickClock::time_point timePoint, uint8_t priority, const OperationCountingType &value) const override
 Wrapper for MessageQueue::tryPushUntil(..., const OperationCountingType&) More...
 
int tryPushUntil (TickClock::time_point timePoint, uint8_t priority, OperationCountingType &&value) const override
 Wrapper for MessageQueue::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

TestDynamicMessageQueue messageQueue_
 internal TestDynamicMessageQueue object that will be wrapped More...
 

Detailed Description

DynamicMessageQueueWrapper class is a variant of MessageQueueWrapper that has dynamic storage for queue's contents.

Member Typedef Documentation

◆ TestDynamicMessageQueue

Constructor & Destructor Documentation

◆ DynamicMessageQueueWrapper()

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

DynamicMessageQueueWrapper's constructor.

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

Member Data Documentation

◆ messageQueue_

TestDynamicMessageQueue distortos::test::DynamicMessageQueueWrapper::messageQueue_
private

internal TestDynamicMessageQueue object that will be wrapped


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