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

MemcpyPopQueueFunctor is a functor used for popping of data from the raw queue with memecpy() More...

#include <MemcpyPopQueueFunctor.hpp>

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

Public Member Functions

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

Private Attributes

void *const buffer_
 pointer to buffer for popped element More...
 
const size_t size_
 size of buffer_, bytes More...
 

Detailed Description

MemcpyPopQueueFunctor is a functor used for popping of data from the raw queue with memecpy()

Constructor & Destructor Documentation

◆ MemcpyPopQueueFunctor()

constexpr distortos::internal::MemcpyPopQueueFunctor::MemcpyPopQueueFunctor ( void *const  buffer,
const size_t  size 
)
inline

MemcpyPopQueueFunctor's constructor.

Parameters
[out]bufferis a pointer to buffer for popped element
[in]sizeis the size of buffer, bytes
Here is the call graph for this function:

Member Function Documentation

◆ operator()()

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

Copies the data from 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

◆ buffer_

void* const distortos::internal::MemcpyPopQueueFunctor::buffer_
private

pointer to buffer for popped element

◆ size_

const size_t distortos::internal::MemcpyPopQueueFunctor::size_
private

size of buffer_, bytes


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