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::sequence_task< T, F, R > Struct Template Reference

A function object class used by detach_sequence() and submit_sequence() to execute a sequence function over a specified index. More...

#include <BS_thread_pool.hpp>

Public Member Functions

R operator() ()

Public Attributes

std::shared_ptr< std::decay_t< F > > sequence_ptr
T i

Detailed Description

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

A function object class used by detach_sequence() and submit_sequence() to execute a sequence function over a specified index.

Template Parameters
TThe type of the index.
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::sequence_task< T, F, R >::operator() ( )
inline
714 {
715 return (*sequence_ptr)(i);
716 }
std::shared_ptr< std::decay_t< F > > sequence_ptr
Definition BS_thread_pool.hpp:718
T i
Definition BS_thread_pool.hpp:719

Member Data Documentation

◆ i

template<typename T, typename F, typename R>
T BS::sequence_task< T, F, R >::i

◆ sequence_ptr

template<typename T, typename F, typename R>
std::shared_ptr<std::decay_t<F> > BS::sequence_task< T, F, R >::sequence_ptr

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