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::LinePosition Class Reference

Class that keeps track of line starts, used for line size verification. More...

Public Member Functions

 LinePosition (idx_t buffer_idx_p, idx_t buffer_pos_p, idx_t buffer_size_p)
idx_t operator- (const LinePosition &other) const
bool operator== (const LinePosition &other) const
idx_t GetGlobalPosition (idx_t requested_buffer_size, bool first_char_nl=false) const

Public Attributes

idx_t buffer_pos = 0
idx_t buffer_size = 0
idx_t buffer_idx = 0

Detailed Description

Class that keeps track of line starts, used for line size verification.

Constructor & Destructor Documentation

◆ LinePosition() [1/2]

duckdb::LinePosition::LinePosition ( )
inline
167155 {
167156 }

◆ LinePosition() [2/2]

duckdb::LinePosition::LinePosition ( idx_t buffer_idx_p,
idx_t buffer_pos_p,
idx_t buffer_size_p )
inline
167158 : buffer_pos(buffer_pos_p), buffer_size(buffer_size_p), buffer_idx(buffer_idx_p) {
167159 }

Member Function Documentation

◆ operator-()

idx_t duckdb::LinePosition::operator- ( const LinePosition & other) const
inline
167161 {
167162 if (other.buffer_idx == buffer_idx) {
167163 return buffer_pos - other.buffer_pos;
167164 }
167165 return other.buffer_size - other.buffer_pos + buffer_pos;
167166 }

◆ operator==()

bool duckdb::LinePosition::operator== ( const LinePosition & other) const
inline
167168 {
167169 return buffer_pos == other.buffer_pos && buffer_idx == other.buffer_idx && buffer_size == other.buffer_size;
167170 }

◆ GetGlobalPosition()

idx_t duckdb::LinePosition::GetGlobalPosition ( idx_t requested_buffer_size,
bool first_char_nl = false ) const
inline
167172 {
167173 return requested_buffer_size * buffer_idx + buffer_pos + first_char_nl;
167174 }

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