![]() |
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.
|

Public Types | |
| using | Aggregates = vector<AggregateObject> |
| using | ValidityBytes = TemplatedValidityMask<uint8_t> |
Public Member Functions | |
| TupleDataLayout () | |
| Creates an empty TupleDataLayout. | |
| TupleDataLayout | Copy () const |
| Create a copy of this TupleDataLayout. | |
| void | Initialize (vector< LogicalType > types_p, Aggregates aggregates_p, TupleDataValidityType validity_type, TupleDataNestednessType nestedness_type=TupleDataNestednessType::TOP_LEVEL_LAYOUT) |
| Initializes the TupleDataLayout with the specified types and aggregates to an empty TupleDataLayout. | |
| void | Initialize (vector< LogicalType > types, TupleDataValidityType validity_type, TupleDataNestednessType nestedness_type=TupleDataNestednessType::TOP_LEVEL_LAYOUT) |
| Initializes the TupleDataLayout with the specified types to an empty TupleDataLayout. | |
| void | Initialize (Aggregates aggregates_p) |
| Initializes the TupleDataLayout with the specified aggregates to an empty TupleDataLayout. | |
| void | Initialize (const vector< BoundOrderByNode > &orders, const LogicalType &type, bool has_payload) |
| Initializes a TupleDataLayout with the specified ORDER BY to an empty TupleDataLayout. | |
| idx_t | ColumnCount () const |
| Returns the number of data columns. | |
| const vector< LogicalType > & | GetTypes () const |
| Returns a list of the column types for this data chunk. | |
| idx_t | AggregateCount () const |
| Returns the number of aggregates. | |
| Aggregates & | GetAggregates () |
| Returns a list of the aggregates for this data chunk. | |
| const Aggregates & | GetAggregates () const |
| SortKeyType | GetSortKeyType () const |
| Gets the sort key type of this layout (if applicable). | |
| bool | IsSortKeyLayout () const |
| Returns whether this is a sort key layout (in implementation file to avoid including here). | |
| const TupleDataLayout & | GetStructLayout (idx_t col_idx) const |
| Returns a map from column id to the struct TupleDataLayout. | |
| idx_t | GetRowWidth () const |
| Returns the total width required for each row, including padding. | |
| idx_t | GetDataOffset () const |
| Returns the offset to the start of the data. | |
| idx_t | GetDataWidth () const |
| Returns the total width required for the data, including padding. | |
| idx_t | GetAggrOffset () const |
| Returns the offset to the start of the aggregates. | |
| idx_t | GetAggrWidth () const |
| Returns the total width required for the aggregates, including padding. | |
| idx_t | GetSortWidth () const |
| Returns the total width required for sorting. | |
| const vector< idx_t > & | GetSortSkippableBytes () const |
| const vector< idx_t > & | GetOffsets () const |
| Returns the column offsets into each row. | |
| bool | AllConstant () const |
| Returns whether all columns in this layout are constant size. | |
| const vector< idx_t > & | GetVariableColumns () const |
| idx_t | GetHeapSizeOffset () const |
| Gets offset to where heap size is stored. | |
| bool | HasDestructor () const |
| Returns whether any of the aggregates have a destructor. | |
| const vector< idx_t > & | GetAggregateDestructorIndices () const |
| Returns the indices of the aggregates that have destructors. | |
| bool | AllValid () const |
| Returns whether none of the columns have NULLs. | |
Private Attributes | |
| vector< LogicalType > | types |
| The types of the data columns. | |
| Aggregates | aggregates |
| The aggregate functions. | |
| SortKeyType | sort_key_type |
| The sort key type associated with orders. | |
| unique_ptr< unordered_map< idx_t, TupleDataLayout > > | struct_layouts |
| Structs are a recursive TupleDataLayout. | |
| idx_t | flag_width |
| The width of the validity header. | |
| idx_t | data_width |
| The width of the data portion. | |
| idx_t | aggr_width |
| The width of the aggregate state portion. | |
| idx_t | sort_width |
| The width of the sort key. | |
| vector< idx_t > | sort_skippable_bytes |
| Bytes that are skippable during sorting. | |
| idx_t | row_width |
| The width of the entire row. | |
| vector< idx_t > | offsets |
| The offsets to the columns and aggregate data in each row. | |
| bool | all_constant |
| Whether all columns in this layout are constant size. | |
| vector< idx_t > | variable_columns |
| Indices of the variable columns. | |
| idx_t | heap_size_offset |
| Offset to the heap size of every row. | |
| vector< idx_t > | aggr_destructor_idxs |
| Indices of aggregate functions that have a destructor. | |
| TupleDataValidityType | validity_type |
| Whether none of the columns have NULLs. | |
| duckdb::TupleDataLayout::TupleDataLayout | ( | ) |
Creates an empty TupleDataLayout.

| TupleDataLayout duckdb::TupleDataLayout::Copy | ( | ) | const |
Create a copy of this TupleDataLayout.

| void duckdb::TupleDataLayout::Initialize | ( | vector< LogicalType > | types_p, |
| Aggregates | aggregates_p, | ||
| TupleDataValidityType | validity_type, | ||
| TupleDataNestednessType | nestedness_type = TupleDataNestednessType::TOP_LEVEL_LAYOUT ) |
Initializes the TupleDataLayout with the specified types and aggregates to an empty TupleDataLayout.


| void duckdb::TupleDataLayout::Initialize | ( | vector< LogicalType > | types, |
| TupleDataValidityType | validity_type, | ||
| TupleDataNestednessType | nestedness_type = TupleDataNestednessType::TOP_LEVEL_LAYOUT ) |
Initializes the TupleDataLayout with the specified types to an empty TupleDataLayout.

| void duckdb::TupleDataLayout::Initialize | ( | Aggregates | aggregates_p | ) |
Initializes the TupleDataLayout with the specified aggregates to an empty TupleDataLayout.

| void duckdb::TupleDataLayout::Initialize | ( | const vector< BoundOrderByNode > & | orders, |
| const LogicalType & | type, | ||
| bool | has_payload ) |
Initializes a TupleDataLayout with the specified ORDER BY to an empty TupleDataLayout.

|
inline |
Returns the number of data columns.

|
inline |
Returns a list of the column types for this data chunk.

|
inline |
Returns the number of aggregates.
|
inline |
Returns a list of the aggregates for this data chunk.

|
inline |
|
inline |
Gets the sort key type of this layout (if applicable).
| bool duckdb::TupleDataLayout::IsSortKeyLayout | ( | ) | const |
Returns whether this is a sort key layout (in implementation file to avoid including here).

|
inline |
Returns a map from column id to the struct TupleDataLayout.


|
inline |
Returns the total width required for each row, including padding.

|
inline |
Returns the offset to the start of the data.
|
inline |
Returns the total width required for the data, including padding.
|
inline |
Returns the offset to the start of the aggregates.

|
inline |
Returns the total width required for the aggregates, including padding.
|
inline |
Returns the total width required for sorting.

Returns the column offsets into each row.

|
inline |
Returns whether all columns in this layout are constant size.

|
inline |
Gets offset to where heap size is stored.
|
inline |
Returns whether any of the aggregates have a destructor.
Returns the indices of the aggregates that have destructors.
|
inline |
Returns whether none of the columns have NULLs.
