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

implementation of RawQueueWrapper for RawFifoQueue More...

#include <QueueWrappers.hpp>

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

Public Member Functions

constexpr RawFifoQueueWrapper (RawFifoQueue &rawFifoQueue)
 RawFifoQueueWrapper'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 RawFifoQueue::pop() More...
 
int push (uint8_t priority, const void *data, size_t size) const override
 Wrapper for RawFifoQueue::push() More...
 
int tryPop (uint8_t &priority, void *buffer, size_t size) const override
 Wrapper for RawFifoQueue::tryPop() More...
 
int tryPopFor (TickClock::duration duration, uint8_t &priority, void *buffer, size_t size) const override
 Wrapper for RawFifoQueue::tryPopFor() More...
 
int tryPopUntil (TickClock::time_point timePoint, uint8_t &priority, void *buffer, size_t size) const override
 Wrapper for RawFifoQueue::tryPopUntil() More...
 
int tryPush (uint8_t priority, const void *data, size_t size) const override
 Wrapper for RawFifoQueue::tryPush() More...
 
int tryPushFor (TickClock::duration duration, uint8_t priority, const void *data, size_t size) const override
 Wrapper for RawFifoQueue::tryPushFor() More...
 
int tryPushUntil (TickClock::time_point timePoint, uint8_t priority, const void *data, size_t size) const override
 Wrapper for RawFifoQueue::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

RawFifoQueuerawFifoQueue_
 reference to wrapped RawFifoQueue object More...
 

Detailed Description

implementation of RawQueueWrapper for RawFifoQueue

Constructor & Destructor Documentation

◆ RawFifoQueueWrapper()

constexpr distortos::test::RawFifoQueueWrapper::RawFifoQueueWrapper ( RawFifoQueue rawFifoQueue)
inlineexplicit

RawFifoQueueWrapper's constructor.

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

Member Function Documentation

◆ check()

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

Tests whether pushed and popped data match.

As RawFifoQueue doesn't support priority, priority1 and priority2 values are ignored.

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::RawFifoQueueWrapper::pop ( uint8_t &  priority,
void *  buffer,
size_t  size 
) const
overridevirtual

◆ push()

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

◆ tryPop()

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

◆ tryPopFor()

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

◆ tryPopUntil()

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

◆ tryPush()

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

◆ tryPushFor()

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

◆ tryPushUntil()

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

Member Data Documentation

◆ rawFifoQueue_

RawFifoQueue& distortos::test::RawFifoQueueWrapper::rawFifoQueue_
private

reference to wrapped RawFifoQueue object


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