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::dtime_t Struct Reference

Type used to represent time (microseconds) More...

#include <duckdb.hpp>

Inheritance diagram for duckdb::dtime_t:

Public Member Functions

constexpr dtime_t (int64_t micros_p)
 
dtime_toperator= (int64_t micros_p)
 
 operator int64_t () const
 
 operator double () const
 
bool operator== (const dtime_t &rhs) const
 
bool operator!= (const dtime_t &rhs) const
 
bool operator<= (const dtime_t &rhs) const
 
bool operator< (const dtime_t &rhs) const
 
bool operator> (const dtime_t &rhs) const
 
bool operator>= (const dtime_t &rhs) const
 
dtime_t operator+ (const int64_t &micros) const
 
dtime_t operator+ (const double &micros) const
 
dtime_t operator- (const int64_t &micros) const
 
dtime_t operator* (const idx_t &copies) const
 
dtime_t operator/ (const idx_t &copies) const
 
int64_t operator- (const dtime_t &other) const
 
dtime_toperator+= (const int64_t &micros)
 
dtime_toperator-= (const int64_t &micros)
 
dtime_toperator+= (const dtime_t &other)
 

Static Public Member Functions

static dtime_t allballs ()
 

Public Attributes

int64_t micros
 

Detailed Description

Type used to represent time (microseconds)

Constructor & Destructor Documentation

◆ dtime_t()

constexpr duckdb::dtime_t::dtime_t ( int64_t  micros_p)
inlineexplicitconstexpr
4448 : micros(micros_p) {
4449 }

Member Function Documentation

◆ operator=()

dtime_t & duckdb::dtime_t::operator= ( int64_t  micros_p)
inline
4450 {
4451 micros = micros_p;
4452 return *this;
4453 }

◆ operator int64_t()

duckdb::dtime_t::operator int64_t ( ) const
inlineexplicit
4456 {
4457 return micros;
4458 }

◆ operator double()

duckdb::dtime_t::operator double ( ) const
inlineexplicit
4459 {
4460 return static_cast<double>(micros);
4461 }

◆ operator==()

bool duckdb::dtime_t::operator== ( const dtime_t rhs) const
inline
4464 {
4465 return micros == rhs.micros;
4466 };

◆ operator!=()

bool duckdb::dtime_t::operator!= ( const dtime_t rhs) const
inline
4467 {
4468 return micros != rhs.micros;
4469 };

◆ operator<=()

bool duckdb::dtime_t::operator<= ( const dtime_t rhs) const
inline
4470 {
4471 return micros <= rhs.micros;
4472 };

◆ operator<()

bool duckdb::dtime_t::operator< ( const dtime_t rhs) const
inline
4473 {
4474 return micros < rhs.micros;
4475 };

◆ operator>()

bool duckdb::dtime_t::operator> ( const dtime_t rhs) const
inline
4476 {
4477 return micros > rhs.micros;
4478 };

◆ operator>=()

bool duckdb::dtime_t::operator>= ( const dtime_t rhs) const
inline
4479 {
4480 return micros >= rhs.micros;
4481 };

◆ operator+() [1/2]

dtime_t duckdb::dtime_t::operator+ ( const int64_t micros) const
inline
4484 {
4485 return dtime_t(this->micros + micros);
4486 };

◆ operator+() [2/2]

dtime_t duckdb::dtime_t::operator+ ( const double micros) const
inline
4487 {
4488 return dtime_t(this->micros + int64_t(micros));
4489 };
::int64_t int64_t

◆ operator-() [1/2]

dtime_t duckdb::dtime_t::operator- ( const int64_t micros) const
inline
4490 {
4491 return dtime_t(this->micros - micros);
4492 };

◆ operator*()

dtime_t duckdb::dtime_t::operator* ( const idx_t copies) const
inline
4493 {
4494 return dtime_t(this->micros * UnsafeNumericCast<int64_t>(copies));
4495 };

◆ operator/()

dtime_t duckdb::dtime_t::operator/ ( const idx_t copies) const
inline
4496 {
4497 return dtime_t(this->micros / UnsafeNumericCast<int64_t>(copies));
4498 };

◆ operator-() [2/2]

int64_t duckdb::dtime_t::operator- ( const dtime_t other) const
inline
4499 {
4500 return this->micros - other.micros;
4501 };

◆ operator+=() [1/2]

dtime_t & duckdb::dtime_t::operator+= ( const int64_t micros)
inline
4504 {
4505 this->micros += micros;
4506 return *this;
4507 };

◆ operator-=()

dtime_t & duckdb::dtime_t::operator-= ( const int64_t micros)
inline
4508 {
4509 this->micros -= micros;
4510 return *this;
4511 };

◆ operator+=() [2/2]

dtime_t & duckdb::dtime_t::operator+= ( const dtime_t other)
inline
4512 {
4513 this->micros += other.micros;
4514 return *this;
4515 };

◆ allballs()

static dtime_t duckdb::dtime_t::allballs ( )
inlinestatic
4518 { // NOLINT
4519 return dtime_t(0);
4520 } // NOLINT

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