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
internal::basic_writer< Range >::int_writer< Int, Specs >::num_writer Struct Reference

Public Member Functions

template<typename It>
void operator() (It &&it) const

Public Attributes

unsigned_type abs_value
int size
const std::string & groups
char_type sep

Member Function Documentation

◆ operator()()

template<typename Range>
template<typename Int, typename Specs>
template<typename It>
void internal::basic_writer< Range >::int_writer< Int, Specs >::num_writer::operator() ( It && it) const
inline
17818 {
17820 // Index of a decimal digit with the least significant digit having
17821 // index 0.
17822 int digit_index = 0;
17823 std::string::const_iterator group = groups.cbegin();
17825 it, abs_value, size,
17826 [this, s, &group, &digit_index](char_type*& buffer) {
17827 if (*group <= 0 || ++digit_index % *group != 0 ||
17828 *group == max_value<char>())
17829 return;
17830 if (group + 1 != groups.cend()) {
17831 digit_index = 0;
17832 ++group;
17833 }
17834 buffer -= s.size();
17835 std::uninitialized_copy(s.data(), s.data() + s.size(),
17836 make_checked(buffer, s.size()));
17837 });
17838 }
Definition duckdb.cpp:17649

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