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

Public Member Functions | |
| DUCKDB_API | StringHeap (Allocator &allocator=Allocator::DefaultAllocator()) |
| DUCKDB_API void | Destroy () |
| DUCKDB_API void | Move (StringHeap &other) |
| DUCKDB_API string_t | AddString (const char *data, idx_t len) |
| Add a string to the string heap, returns a pointer to the string. | |
| DUCKDB_API string_t | AddString (const char *data) |
| Add a string to the string heap, returns a pointer to the string. | |
| DUCKDB_API string_t | AddString (const string &data) |
| Add a string to the string heap, returns a pointer to the string. | |
| DUCKDB_API string_t | AddString (const string_t &data) |
| Add a string to the string heap, returns a pointer to the string. | |
| DUCKDB_API string_t | AddBlob (const string_t &data) |
| Add a blob to the string heap; blobs can be non-valid UTF8. | |
| DUCKDB_API string_t | AddBlob (const char *data, idx_t len) |
| Add a blob to the string heap; blobs can be non-valid UTF8. | |
| DUCKDB_API string_t | EmptyString (idx_t len) |
| Allocates space for an empty string of size "len" on the heap. | |
| DUCKDB_API idx_t | SizeInBytes () const |
| Size of strings. | |
| DUCKDB_API idx_t | AllocationSize () const |
| Total allocation size (cached). | |
| DUCKDB_API ArenaAllocator & | GetAllocator () |
Private Attributes | |
| ArenaAllocator | allocator |
A string heap is the owner of a set of strings, strings can be inserted into it On every insert, a pointer to the inserted string is returned The returned pointer will remain valid until the StringHeap is destroyed
|
explicit |
| void duckdb::StringHeap::Destroy | ( | ) |
| void duckdb::StringHeap::Move | ( | StringHeap & | other | ) |
Add a string to the string heap, returns a pointer to the string.


| string_t duckdb::StringHeap::AddString | ( | const char * | data | ) |
Add a string to the string heap, returns a pointer to the string.

| string_t duckdb::StringHeap::AddString | ( | const string & | data | ) |
Add a string to the string heap, returns a pointer to the string.

Add a string to the string heap, returns a pointer to the string.

Add a blob to the string heap; blobs can be non-valid UTF8.


Add a blob to the string heap; blobs can be non-valid UTF8.

Allocates space for an empty string of size "len" on the heap.

| idx_t duckdb::StringHeap::SizeInBytes | ( | ) | const |
Size of strings.
| idx_t duckdb::StringHeap::AllocationSize | ( | ) | const |
Total allocation size (cached).
|
inline |