distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
distortos::internal::CopyConstructQueueFunctor< T > Class Template Reference

#include "distortos/internal/synchronization/CopyConstructQueueFunctor.hpp"

Inheritance diagram for distortos::internal::CopyConstructQueueFunctor< T >:
[legend]
Collaboration diagram for distortos::internal::CopyConstructQueueFunctor< T >:
[legend]

Public Member Functions

constexpr CopyConstructQueueFunctor (const T &value)
 CopyConstructQueueFunctor's constructor. More...
 
void operator() (void *const storage) const override
 Copy-constructs the element in the queue's storage. More...
 

Private Attributes

const T & value_
 reference to object that will be used as argument of copy constructor More...
 

Detailed Description

template<typename T>
class distortos::internal::CopyConstructQueueFunctor< T >

CopyConstructQueueFunctor is a functor used for pushing of data to the queue using copy-construction

Template Parameters
Tis the type of data pushed to the queue

Constructor & Destructor Documentation

◆ CopyConstructQueueFunctor()

template<typename T >
constexpr distortos::internal::CopyConstructQueueFunctor< T >::CopyConstructQueueFunctor ( const T &  value)
inlineexplicit

CopyConstructQueueFunctor's constructor.

Parameters
[in]valueis a reference to object that will be used as argument of copy constructor

Member Function Documentation

◆ operator()()

template<typename T >
void distortos::internal::CopyConstructQueueFunctor< T >::operator() ( void *const  storage) const
inlineoverride

Copy-constructs the element in the queue's storage.

Parameters
[in,out]storageis a pointer to storage for element

Member Data Documentation

◆ value_

template<typename T >
const T& distortos::internal::CopyConstructQueueFunctor< T >::value_
private

reference to object that will be used as argument of copy constructor


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