![]() |
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.
|
#include <duckdb.hpp>

Classes | |
| class | BaseSegmentIterator |
| class | SegmentIterationHelper |
| class | SegmentNodeIterationHelper |
Public Member Functions | |
| SegmentTree (idx_t base_row_id=0) | |
| SegmentLock | Lock () const |
| bool | IsEmpty (SegmentLock &l) const |
| optional_ptr< SegmentNode< T > > | GetRootSegment () const |
| Gets a pointer to the first segment. Useful for scans. | |
| optional_ptr< SegmentNode< T > > | GetRootSegment (SegmentLock &l) const |
| vector< unique_ptr< SegmentNode< T > > > | MoveSegments (SegmentLock &l) |
| Obtains ownership of the data of the segment tree. | |
| vector< unique_ptr< SegmentNode< T > > > | MoveSegments () |
| vector< unique_ptr< SegmentNode< T > > > & | ReferenceLoadedSegmentsMutable (SegmentLock &l) |
| idx_t | GetSegmentCount () const |
| idx_t | GetSegmentCount (SegmentLock &l) const |
| optional_ptr< SegmentNode< T > > | GetSegmentByIndex (int64_t index) const |
| Gets a pointer to the nth segment. Negative numbers start from the back. | |
| optional_ptr< SegmentNode< T > > | GetSegmentByIndex (SegmentLock &l, int64_t index) const |
| optional_ptr< SegmentNode< T > > | GetNextSegment (SegmentNode< T > &node) const |
| Gets the next segment. | |
| optional_ptr< SegmentNode< T > > | GetNextSegment (SegmentLock &l, SegmentNode< T > &node) const |
| optional_ptr< SegmentNode< T > > | GetLastSegment (SegmentLock &l) const |
| Gets a pointer to the last segment. Useful for appends. | |
| optional_ptr< SegmentNode< T > > | GetSegment (idx_t row_number) const |
| Gets a pointer to a specific column segment for the given row. | |
| optional_ptr< SegmentNode< T > > | GetSegment (SegmentLock &l, idx_t row_number) const |
| void | AppendSegment (shared_ptr< T > segment) |
| void | AppendSegment (SegmentLock &l, shared_ptr< T > segment) |
| void | AppendSegment (SegmentLock &l, shared_ptr< T > segment, idx_t row_start) |
| bool | HasSegment (SegmentNode< T > &segment) const |
| Debug method, check whether the segment is in the segment tree. | |
| bool | HasSegment (SegmentLock &, SegmentNode< T > &segment) const |
| void | EraseSegments (SegmentLock &l, idx_t segment_start) |
| Erase all segments after a specific segment. | |
| idx_t | GetSegmentIndex (SegmentLock &l, idx_t row_number) const |
| Get the segment index of the column segment for the given row. | |
| bool | TryGetSegmentIndex (SegmentLock &l, idx_t row_number, idx_t &result) const |
| void | Verify (SegmentLock &) const |
| void | Verify () |
| idx_t | GetBaseRowId () const |
| SegmentIterationHelper | Segments () const |
| SegmentIterationHelper | Segments (SegmentLock &l) const |
| SegmentNodeIterationHelper | SegmentNodes () const |
| SegmentNodeIterationHelper | SegmentNodes (SegmentLock &l) const |
Protected Member Functions | |
| virtual shared_ptr< T > | LoadSegment () const |
| Load the next segment - only used when lazily loading. | |
| optional_ptr< SegmentNode< T > > | GetRootSegmentInternal () const |
Protected Attributes | |
| atomic< bool > | finished_loading |
Private Member Functions | |
| bool | LoadNextSegment (SegmentLock &l) const |
| Load the next segment, if there are any left to load. | |
| void | LoadAllSegments (SegmentLock &l) const |
| Load all segments, if there are any left to load. | |
| void | AppendSegmentInternal (SegmentLock &l, shared_ptr< T > segment, idx_t row_start) const |
| Append a column segment to the tree. | |
| void | AppendSegmentInternal (SegmentLock &l, shared_ptr< T > segment) const |
Private Attributes | |
| vector< unique_ptr< SegmentNode< T > > > | nodes |
| The nodes in the tree, can be binary searched. | |
| mutex | node_lock |
| Lock to access or modify the nodes. | |
| idx_t | base_row_id |
| Base row id (row id of the first segment). | |
The SegmentTree maintains a list of all segments of a specific column in a table, and allows searching for a segment by row number
|
inlineexplicit |
|
inlinevirtual |
|
inline |
Locks the segment tree. All methods to the segment tree either lock the segment tree, or take an already obtained lock.

|
inline |
|
inline |
Gets a pointer to the first segment. Useful for scans.


|
inline |
|
inline |
Obtains ownership of the data of the segment tree.

|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Gets a pointer to the nth segment. Negative numbers start from the back.


|
inline |
|
inline |
Gets the next segment.


|
inline |
|
inline |
Gets a pointer to the last segment. Useful for appends.

|
inline |
Gets a pointer to a specific column segment for the given row.


|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Debug method, check whether the segment is in the segment tree.


|
inline |
|
inline |
Erase all segments after a specific segment.

|
inline |
Get the segment index of the column segment for the given row.

|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotectedvirtual |
Load the next segment - only used when lazily loading.
Reimplemented in duckdb::RowGroupSegmentTree.

|
inlineprotected |
|
inlineprivate |
Load the next segment, if there are any left to load.


|
inlineprivate |
Load all segments, if there are any left to load.


|
inlineprivate |
Append a column segment to the tree.

|
inlineprivate |