distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
distortos::test::RawQueueWrapper Class Referenceabstract

common implementation of QueueWrapper for Raw{Fifo,Message}Queue More...

#include <QueueWrappers.hpp>

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

Public Member Functions

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...
 
virtual int pop (uint8_t &priority, void *buffer, size_t size) const =0
 Wrapper for Raw{Fifo,Message}Queue::pop() More...
 
int pop (uint8_t &priority, OperationCountingType &value) const final override
 Redirects the call to "raw" pop(). More...
 
virtual int push (uint8_t priority, const void *data, size_t size) const =0
 Wrapper for Raw{Fifo,Message}Queue::push() 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...
 
virtual int tryPop (uint8_t &priority, void *buffer, size_t size) const =0
 Wrapper for Raw{Fifo,Message}Queue::tryPop() More...
 
int tryPop (uint8_t &priority, OperationCountingType &value) const final override
 Redirects the call to "raw" tryPop(). More...
 
virtual int tryPopFor (TickClock::duration duration, uint8_t &priority, void *buffer, size_t size) const =0
 Wrapper for Raw{Fifo,Message}Queue::tryPopFor() More...
 
int tryPopFor (TickClock::duration duration, uint8_t &priority, OperationCountingType &value) const final override
 Redirects the call to "raw" tryPopFor(). More...
 
virtual int tryPopUntil (TickClock::time_point timePoint, uint8_t &priority, void *buffer, size_t size) const =0
 Wrapper for Raw{Fifo,Message}Queue::tryPopUntil() More...
 
int tryPopUntil (TickClock::time_point timePoint, uint8_t &priority, OperationCountingType &value) const final override
 Redirects the call to "raw" tryPopUntil(). More...
 
virtual int tryPush (uint8_t priority, const void *data, size_t size) const =0
 Wrapper for Raw{Fifo,Message}Queue::tryPush() 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...
 
virtual int tryPushFor (TickClock::duration duration, uint8_t priority, const void *data, size_t size) const =0
 Wrapper for Raw{Fifo,Message}Queue::tryPushFor() 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...
 
virtual int tryPushUntil (TickClock::time_point timePoint, uint8_t priority, const void *data, size_t size) const =0
 Wrapper for Raw{Fifo,Message}Queue::tryPushUntil() 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...
 
virtual bool check (uint8_t priority1, const OperationCountingType &value1, uint8_t priority2, const OperationCountingType &value2) const =0
 Tests whether pushed and popped data match. More...
 

Detailed Description

common implementation of QueueWrapper for Raw{Fifo,Message}Queue

Member Function Documentation

◆ checkCounters()

bool distortos::test::RawQueueWrapper::checkCounters ( size_t  constructed,
size_t  copyConstructed,
size_t  moveConstructed,
size_t  destructed,
size_t  copyAssigned,
size_t  moveAssigned,
size_t  swapped 
) const
overridevirtual

Wrapper for OperationCountingType::checkCounters().

A stub which returns true.

Implements distortos::test::QueueWrapper.

◆ emplace()

int distortos::test::RawQueueWrapper::emplace ( uint8_t  priority,
OperationCountingType::Value  value = {} 
) const
finaloverridevirtual

Redirects the call to "raw" push().

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ pop() [1/2]

virtual int distortos::test::RawQueueWrapper::pop ( uint8_t &  priority,
void *  buffer,
size_t  size 
) const
pure virtual

Wrapper for Raw{Fifo,Message}Queue::pop()

Implemented in distortos::test::RawMessageQueueWrapper, and distortos::test::RawFifoQueueWrapper.

◆ pop() [2/2]

int distortos::test::RawQueueWrapper::pop ( uint8_t &  priority,
OperationCountingType value 
) const
finaloverridevirtual

Redirects the call to "raw" pop().

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ push() [1/3]

virtual int distortos::test::RawQueueWrapper::push ( uint8_t  priority,
const void *  data,
size_t  size 
) const
pure virtual

Wrapper for Raw{Fifo,Message}Queue::push()

Implemented in distortos::test::RawMessageQueueWrapper, and distortos::test::RawFifoQueueWrapper.

◆ push() [2/3]

int distortos::test::RawQueueWrapper::push ( uint8_t  priority,
const OperationCountingType value 
) const
finaloverridevirtual

Redirects the call to "raw" push().

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ push() [3/3]

int distortos::test::RawQueueWrapper::push ( uint8_t  priority,
OperationCountingType &&  value 
) const
finaloverridevirtual

Redirects the call to push(..., const OperationCountingType&).

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ tryEmplace()

int distortos::test::RawQueueWrapper::tryEmplace ( uint8_t  priority,
OperationCountingType::Value  value = {} 
) const
finaloverridevirtual

Redirects the call to "raw" tryPush().

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ tryEmplaceFor()

int distortos::test::RawQueueWrapper::tryEmplaceFor ( TickClock::duration  duration,
uint8_t  priority,
OperationCountingType::Value  value = {} 
) const
finaloverridevirtual

Redirects the call to "raw" tryPushFor().

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ tryEmplaceUntil()

int distortos::test::RawQueueWrapper::tryEmplaceUntil ( TickClock::time_point  timePoint,
uint8_t  priority,
OperationCountingType::Value  value = {} 
) const
finaloverridevirtual

Redirects the call to "raw" tryPushUntil().

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ tryPop() [1/2]

virtual int distortos::test::RawQueueWrapper::tryPop ( uint8_t &  priority,
void *  buffer,
size_t  size 
) const
pure virtual

Wrapper for Raw{Fifo,Message}Queue::tryPop()

Implemented in distortos::test::RawMessageQueueWrapper, and distortos::test::RawFifoQueueWrapper.

◆ tryPop() [2/2]

int distortos::test::RawQueueWrapper::tryPop ( uint8_t &  priority,
OperationCountingType value 
) const
finaloverridevirtual

Redirects the call to "raw" tryPop().

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ tryPopFor() [1/2]

virtual int distortos::test::RawQueueWrapper::tryPopFor ( TickClock::duration  duration,
uint8_t &  priority,
void *  buffer,
size_t  size 
) const
pure virtual

Wrapper for Raw{Fifo,Message}Queue::tryPopFor()

Implemented in distortos::test::RawMessageQueueWrapper, and distortos::test::RawFifoQueueWrapper.

◆ tryPopFor() [2/2]

int distortos::test::RawQueueWrapper::tryPopFor ( TickClock::duration  duration,
uint8_t &  priority,
OperationCountingType value 
) const
finaloverridevirtual

Redirects the call to "raw" tryPopFor().

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ tryPopUntil() [1/2]

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

Wrapper for Raw{Fifo,Message}Queue::tryPopUntil()

Implemented in distortos::test::RawMessageQueueWrapper, and distortos::test::RawFifoQueueWrapper.

◆ tryPopUntil() [2/2]

int distortos::test::RawQueueWrapper::tryPopUntil ( TickClock::time_point  timePoint,
uint8_t &  priority,
OperationCountingType value 
) const
finaloverridevirtual

Redirects the call to "raw" tryPopUntil().

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ tryPush() [1/3]

virtual int distortos::test::RawQueueWrapper::tryPush ( uint8_t  priority,
const void *  data,
size_t  size 
) const
pure virtual

Wrapper for Raw{Fifo,Message}Queue::tryPush()

Implemented in distortos::test::RawMessageQueueWrapper, and distortos::test::RawFifoQueueWrapper.

◆ tryPush() [2/3]

int distortos::test::RawQueueWrapper::tryPush ( uint8_t  priority,
const OperationCountingType value 
) const
finaloverridevirtual

Redirects the call to "raw" tryPush().

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ tryPush() [3/3]

int distortos::test::RawQueueWrapper::tryPush ( uint8_t  priority,
OperationCountingType &&  value 
) const
finaloverridevirtual

Redirects the call to tryPush(..., const OperationCountingType&).

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ tryPushFor() [1/3]

virtual int distortos::test::RawQueueWrapper::tryPushFor ( TickClock::duration  duration,
uint8_t  priority,
const void *  data,
size_t  size 
) const
pure virtual

Wrapper for Raw{Fifo,Message}Queue::tryPushFor()

Implemented in distortos::test::RawMessageQueueWrapper, and distortos::test::RawFifoQueueWrapper.

◆ tryPushFor() [2/3]

int distortos::test::RawQueueWrapper::tryPushFor ( TickClock::duration  duration,
uint8_t  priority,
const OperationCountingType value 
) const
finaloverridevirtual

Redirects the call to "raw" tryPushFor().

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ tryPushFor() [3/3]

int distortos::test::RawQueueWrapper::tryPushFor ( TickClock::duration  duration,
uint8_t  priority,
OperationCountingType &&  value 
) const
finaloverridevirtual

Redirects the call to tryPushFor(..., const OperationCountingType&).

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ tryPushUntil() [1/3]

virtual int distortos::test::RawQueueWrapper::tryPushUntil ( TickClock::time_point  timePoint,
uint8_t  priority,
const void *  data,
size_t  size 
) const
pure virtual

Wrapper for Raw{Fifo,Message}Queue::tryPushUntil()

Implemented in distortos::test::RawMessageQueueWrapper, and distortos::test::RawFifoQueueWrapper.

◆ tryPushUntil() [2/3]

int distortos::test::RawQueueWrapper::tryPushUntil ( TickClock::time_point  timePoint,
uint8_t  priority,
const OperationCountingType value 
) const
finaloverridevirtual

Redirects the call to "raw" tryPushUntil().

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

◆ tryPushUntil() [3/3]

int distortos::test::RawQueueWrapper::tryPushUntil ( TickClock::time_point  timePoint,
uint8_t  priority,
OperationCountingType &&  value 
) const
finaloverridevirtual

Redirects the call to tryPushUntil(..., const OperationCountingType&).

Implements distortos::test::QueueWrapper.

Here is the call graph for this function:

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