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
duckdb::TryDecimalAdd Struct Reference

Public Member Functions

template<>
bool Operation (int16_t left, int16_t right, int16_t &result)
template<>
bool Operation (int32_t left, int32_t right, int32_t &result)
template<>
bool Operation (int64_t left, int64_t right, int64_t &result)
template<>
bool Operation (hugeint_t left, hugeint_t right, hugeint_t &result)
template<>
bool Operation (int16_t left, int16_t right, int16_t &result)
template<>
bool Operation (int32_t left, int32_t right, int32_t &result)
template<>
bool Operation (int64_t left, int64_t right, int64_t &result)
template<>
bool Operation (hugeint_t left, hugeint_t right, hugeint_t &result)

Static Public Member Functions

template<class TA, class TB, class TR>
static bool Operation (TA left, TB right, TR &result)

Member Function Documentation

◆ Operation() [1/5]

template<class TA, class TB, class TR>
bool duckdb::TryDecimalAdd::Operation ( TA left,
TB right,
TR & result )
inlinestatic
20198 {
20199 throw InternalException("Unimplemented type for TryDecimalAdd");
20200 }

◆ Operation() [2/5]

template<>
bool duckdb::TryDecimalAdd::Operation ( int16_t left,
int16_t right,
int16_t & result )
227974 {
227975 return TryDecimalAddTemplated<int16_t, -9999, 9999>(left, right, result);
227976}
::int16_t int16_t

◆ Operation() [3/5]

template<>
bool duckdb::TryDecimalAdd::Operation ( int32_t left,
int32_t right,
int32_t & result )
227979 {
227980 return TryDecimalAddTemplated<int32_t, -999999999, 999999999>(left, right, result);
227981}
::int32_t int32_t

◆ Operation() [4/5]

template<>
bool duckdb::TryDecimalAdd::Operation ( int64_t left,
int64_t right,
int64_t & result )
227984 {
227985 return TryDecimalAddTemplated<int64_t, -999999999999999999, 999999999999999999>(left, right, result);
227986}
::int64_t int64_t

◆ Operation() [5/5]

template<>
bool duckdb::TryDecimalAdd::Operation ( hugeint_t left,
hugeint_t right,
hugeint_t & result )
227989 {
227990 if (!TryAddOperator::Operation(left, right, result)) {
227991 return false;
227992 }
227993 if (result <= -Hugeint::POWERS_OF_TEN[38] || result >= Hugeint::POWERS_OF_TEN[38]) {
227994 return false;
227995 }
227996 return true;
227997}

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