RoveComm C++ 3.0.0
Welcome to the RoveComm C++ repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of RoveComm C++. The RoveComm C++ project is the RoveComm interface for high level systems and should not be used for microcontrollers.
Loading...
Searching...
No Matches
BS::block_task< T, F, R > Struct Template Reference

A function object class used by detach_blocks() and submit_blocks() to execute a block function over a specified range of indices. More...

#include <BS_thread_pool.hpp>

Public Member Functions

R operator() ()

Public Attributes

std::shared_ptr< std::decay_t< F > > block_ptr
T start
T end

Detailed Description

template<typename T, typename F, typename R>
struct BS::block_task< T, F, R >

A function object class used by detach_blocks() and submit_blocks() to execute a block function over a specified range of indices.

Template Parameters
TThe type of the indices.
FThe type of the function.
RThe return type of the function (can be void).

Member Function Documentation

◆ operator()()

template<typename T, typename F, typename R>
R BS::block_task< T, F, R >::operator() ( )
inline
674 {
675 return (*block_ptr)(start, end);
676 }
T end
Definition BS_thread_pool.hpp:680
T start
Definition BS_thread_pool.hpp:679
std::shared_ptr< std::decay_t< F > > block_ptr
Definition BS_thread_pool.hpp:678

Member Data Documentation

◆ block_ptr

template<typename T, typename F, typename R>
std::shared_ptr<std::decay_t<F> > BS::block_task< T, F, R >::block_ptr

◆ end

template<typename T, typename F, typename R>
T BS::block_task< T, F, R >::end

◆ start

template<typename T, typename F, typename R>
T BS::block_task< T, F, R >::start

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