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

implementation of QueueWrapper for FifoQueue More...

#include <QueueWrappers.hpp>

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

Public Types

using TestFifoQueue = FifoQueue< OperationCountingType >
 FifoQueue with OperationCountingType. More...
 

Public Member Functions

constexpr FifoQueueWrapper (TestFifoQueue &fifoQueue)
 FifoQueueWrapper'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 FifoQueue::emplace() More...
 
int pop (uint8_t &priority, OperationCountingType &value) const override
 Wrapper for FifoQueue::pop() More...
 
int push (uint8_t priority, const OperationCountingType &value) const override
 Wrapper for FifoQueue::push(..., const OperationCountingType&) More...
 
int push (uint8_t priority, OperationCountingType &&value) const override
 Wrapper for FifoQueue::push(..., OperationCountingType&&) More...
 
int tryEmplace (uint8_t priority, OperationCountingType::Value value={}) const override
 Wrapper for FifoQueue::tryEmplace() More...
 
int tryEmplaceFor (TickClock::duration duration, uint8_t priority, OperationCountingType::Value value={}) const override
 Wrapper for FifoQueue::tryEmplaceFor() More...
 
int tryEmplaceUntil (TickClock::time_point timePoint, uint8_t priority, OperationCountingType::Value value={}) const override
 Wrapper for FifoQueue::tryEmplaceUntil() More...
 
int tryPop (uint8_t &priority, OperationCountingType &value) const override
 Wrapper for FifoQueue::tryPop() More...
 
int tryPopFor (TickClock::duration duration, uint8_t &priority, OperationCountingType &value) const override
 Wrapper for FifoQueue::tryPopFor() More...
 
int tryPopUntil (TickClock::time_point timePoint, uint8_t &priority, OperationCountingType &value) const override
 Wrapper for FifoQueue::tryPopUntil() More...
 
int tryPush (uint8_t priority, const OperationCountingType &value) const override
 Wrapper for FifoQueue::tryPush(..., const OperationCountingType&) More...
 
int tryPush (uint8_t priority, OperationCountingType &&value) const override
 Wrapper for FifoQueue::tryPush(..., OperationCountingType&&) More...
 
int tryPushFor (TickClock::duration duration, uint8_t priority, const OperationCountingType &value) const override
 Wrapper for FifoQueue::tryPushFor(..., const OperationCountingType&) More...
 
int tryPushFor (TickClock::duration duration, uint8_t priority, OperationCountingType &&value) const override
 Wrapper for FifoQueue::tryPushFor(..., OperationCountingType&&) More...
 
int tryPushUntil (TickClock::time_point timePoint, uint8_t priority, const OperationCountingType &value) const override
 Wrapper for FifoQueue::tryPushUntil(..., const OperationCountingType&) More...
 
int tryPushUntil (TickClock::time_point timePoint, uint8_t priority, OperationCountingType &&value) const override
 Wrapper for FifoQueue::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

TestFifoQueuefifoQueue_
 reference to wrapped TestFifoQueue object More...
 

Detailed Description

implementation of QueueWrapper for FifoQueue

Member Typedef Documentation

◆ TestFifoQueue

Constructor & Destructor Documentation

◆ FifoQueueWrapper()

constexpr distortos::test::FifoQueueWrapper::FifoQueueWrapper ( TestFifoQueue fifoQueue)
inlineexplicit

FifoQueueWrapper's constructor.

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

Member Function Documentation

◆ check()

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

Tests whether pushed and popped data match.

As FifoQueue 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.

◆ emplace()

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

◆ pop()

int distortos::test::FifoQueueWrapper::pop ( uint8_t &  priority,
OperationCountingType value 
) const
overridevirtual

◆ push() [1/2]

int distortos::test::FifoQueueWrapper::push ( uint8_t  priority,
const OperationCountingType value 
) const
overridevirtual

◆ push() [2/2]

int distortos::test::FifoQueueWrapper::push ( uint8_t  priority,
OperationCountingType &&  value 
) const
overridevirtual

◆ tryEmplace()

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

◆ tryEmplaceFor()

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

◆ tryEmplaceUntil()

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

◆ tryPop()

int distortos::test::FifoQueueWrapper::tryPop ( uint8_t &  priority,
OperationCountingType value 
) const
overridevirtual

◆ tryPopFor()

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

◆ tryPopUntil()

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

◆ tryPush() [1/2]

int distortos::test::FifoQueueWrapper::tryPush ( uint8_t  priority,
const OperationCountingType value 
) const
overridevirtual

◆ tryPush() [2/2]

int distortos::test::FifoQueueWrapper::tryPush ( uint8_t  priority,
OperationCountingType &&  value 
) const
overridevirtual

◆ tryPushFor() [1/2]

int distortos::test::FifoQueueWrapper::tryPushFor ( TickClock::duration  duration,
uint8_t  priority,
const OperationCountingType value 
) const
overridevirtual

◆ tryPushFor() [2/2]

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

◆ tryPushUntil() [1/2]

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

◆ tryPushUntil() [2/2]

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

Member Data Documentation

◆ fifoQueue_

TestFifoQueue& distortos::test::FifoQueueWrapper::fifoQueue_
private

reference to wrapped TestFifoQueue object


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