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

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

#include <QueueWrappers.hpp>

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

Public Types

using TestStaticMessageQueue = StaticMessageQueue< OperationCountingType, QueueSize >
 StaticMessageQueue with OperationCountingType and storage for QueueSize elements. More...
 
- Public Types inherited from distortos::test::MessageQueueWrapper
using TestMessageQueue = MessageQueue< OperationCountingType >
 MessageQueue with OperationCountingType. More...
 

Public Member Functions

 StaticMessageQueueWrapper ()
 StaticMessageQueueWrapper'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

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

Detailed Description

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

StaticMessageQueueWrapper class is a variant of MessageQueueWrapper that has automatic storage for queue's contents.

Template Parameters
QueueSizeis the maximum number of elements in queue

Member Typedef Documentation

◆ TestStaticMessageQueue

StaticMessageQueue with OperationCountingType and storage for QueueSize elements.

Constructor & Destructor Documentation

◆ StaticMessageQueueWrapper()

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

StaticMessageQueueWrapper's constructor.

Member Data Documentation

◆ messageQueue_

template<size_t QueueSize>
TestStaticMessageQueue distortos::test::StaticMessageQueueWrapper< QueueSize >::messageQueue_
private

internal TestStaticMessageQueue object that will be wrapped


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