distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
distortos::internal::MemcpyPushQueueFunctor Class Reference

MemcpyPushQueueFunctor is a functor used for pushing of data to the raw queue with memcpy() More...

#include <MemcpyPushQueueFunctor.hpp>

Inheritance diagram for distortos::internal::MemcpyPushQueueFunctor:
[legend]
Collaboration diagram for distortos::internal::MemcpyPushQueueFunctor:
[legend]

Public Member Functions

constexpr MemcpyPushQueueFunctor (const void *const data, const size_t size)
 MemcpyPushQueueFunctor's constructor. More...
 
void operator() (void *storage) const override
 Copies the data to raw queue's storage (with memcpy()). More...
 

Private Attributes

const void *const data_
 pointer to data that will be pushed to raw queue More...
 
const size_t size_
 size of data_, bytes More...
 

Detailed Description

MemcpyPushQueueFunctor is a functor used for pushing of data to the raw queue with memcpy()

Constructor & Destructor Documentation

◆ MemcpyPushQueueFunctor()

constexpr distortos::internal::MemcpyPushQueueFunctor::MemcpyPushQueueFunctor ( const void *const  data,
const size_t  size 
)
inline

MemcpyPushQueueFunctor's constructor.

Parameters
[in]datais a pointer to data that will be pushed to raw queue
[in]sizeis the size of data, bytes
Here is the call graph for this function:

Member Function Documentation

◆ operator()()

void distortos::internal::MemcpyPushQueueFunctor::operator() ( void *  storage) const
override

Copies the data to raw queue's storage (with memcpy()).

Parameters
[in,out]storageis a pointer to storage for element
Here is the caller graph for this function:

Member Data Documentation

◆ data_

const void* const distortos::internal::MemcpyPushQueueFunctor::data_
private

pointer to data that will be pushed to raw queue

◆ size_

const size_t distortos::internal::MemcpyPushQueueFunctor::size_
private

size of data_, bytes


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