Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software 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 the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
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

operator() ()
 

Public Attributes

std::shared_ptr< std::decay_t< F > > block_ptr
 
start
 
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 }

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