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

implementation of RawQueueWrapper for RawMessageQueue More...

#include <QueueWrappers.hpp>

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

Public Member Functions

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

RawMessageQueuerawMessageQueue_
 reference to wrapped RawMessageQueue object More...
 

Detailed Description

implementation of RawQueueWrapper for RawMessageQueue

Constructor & Destructor Documentation

◆ RawMessageQueueWrapper()

constexpr distortos::test::RawMessageQueueWrapper::RawMessageQueueWrapper ( RawMessageQueue rawMessageQueue)
inlineexplicit

RawMessageQueueWrapper's constructor.

Parameters
[in]rawMessageQueueis a reference to wrapped RawMessageQueue object
Here is the call graph for this function:

Member Function Documentation

◆ check()

bool distortos::test::RawMessageQueueWrapper::check ( uint8_t  priority1,
const OperationCountingType value1,
uint8_t  priority2,
const OperationCountingType value2 
) const
overridevirtual

Tests whether pushed and popped data match.

Parameters
[in]priority1is the priority used for push() or emplace()
[in]value1is a reference to OperationCountingType object used for push() or emplace()
[in]priority2is the priority returned by pop()
[in]value2is a reference to OperationCountingType object returned by pop()
Returns
true if pushed and popped data matches, false otherwise

Implements distortos::test::QueueWrapper.

◆ pop()

int distortos::test::RawMessageQueueWrapper::pop ( uint8_t &  priority,
void *  buffer,
size_t  size 
) const
overridevirtual

◆ push()

int distortos::test::RawMessageQueueWrapper::push ( uint8_t  priority,
const void *  data,
size_t  size 
) const
overridevirtual

◆ tryPop()

int distortos::test::RawMessageQueueWrapper::tryPop ( uint8_t &  priority,
void *  buffer,
size_t  size 
) const
overridevirtual

◆ tryPopFor()

int distortos::test::RawMessageQueueWrapper::tryPopFor ( TickClock::duration  duration,
uint8_t &  priority,
void *  buffer,
size_t  size 
) const
overridevirtual

◆ tryPopUntil()

int distortos::test::RawMessageQueueWrapper::tryPopUntil ( TickClock::time_point  timePoint,
uint8_t &  priority,
void *  buffer,
size_t  size 
) const
overridevirtual

◆ tryPush()

int distortos::test::RawMessageQueueWrapper::tryPush ( uint8_t  priority,
const void *  data,
size_t  size 
) const
overridevirtual

◆ tryPushFor()

int distortos::test::RawMessageQueueWrapper::tryPushFor ( TickClock::duration  duration,
uint8_t  priority,
const void *  data,
size_t  size 
) const
overridevirtual

◆ tryPushUntil()

int distortos::test::RawMessageQueueWrapper::tryPushUntil ( TickClock::time_point  timePoint,
uint8_t  priority,
const void *  data,
size_t  size 
) const
overridevirtual

Member Data Documentation

◆ rawMessageQueue_

RawMessageQueue& distortos::test::RawMessageQueueWrapper::rawMessageQueue_
private

reference to wrapped RawMessageQueue object


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