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

A function object class used by detach_loop() and submit_loop() to execute a loop function over a specified range of indices. More...

#include <BS_thread_pool.hpp>

Public Member Functions

void operator() ()
 

Public Attributes

std::shared_ptr< std::decay_t< F > > loop_ptr
 
start
 
end
 

Detailed Description

template<typename T, typename F>
struct BS::loop_task< T, F >

A function object class used by detach_loop() and submit_loop() to execute a loop function over a specified range of indices.

Template Parameters
TThe type of the indices.
FThe type of the function.

Member Function Documentation

◆ operator()()

template<typename T , typename F >
void BS::loop_task< T, F >::operator() ( )
inline
693 {
694 for (T i = start; i < end; ++i)
695 (*loop_ptr)(i);
696 }

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