![]() |
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.
|
Classes | |
| struct | StringComparisonOperators |
Public Member Functions | |
| string_t (uint32_t len) | |
| string_t (const char *data, uint32_t len) | |
| string_t (const char *data) | |
| string_t (const string &value) | |
| bool | IsInlined () const |
| const char * | GetData () const |
| const char * | GetDataUnsafe () const |
| char * | GetDataWriteable () const |
| const char * | GetPrefix () const |
| char * | GetPrefixWriteable () |
| idx_t | GetSize () const |
| void | SetSizeAndFinalize (uint32_t size, idx_t allocated_size) |
| bool | Empty () const |
| string | GetString () const |
| operator string () const | |
| char * | GetPointer () const |
| void | SetPointer (char *new_ptr) |
| void | Finalize () |
| void | Verify () const |
| void | VerifyUTF8 () const |
| void | VerifyCharacters () const |
| void | VerifyNull () const |
| bool | operator== (const string_t &r) const |
| bool | operator!= (const string_t &r) const |
| bool | operator> (const string_t &r) const |
| bool | operator< (const string_t &r) const |
Static Public Attributes | |
| static constexpr idx_t | PREFIX_BYTES = 4 * sizeof(char) |
| static constexpr idx_t | INLINE_BYTES = 12 * sizeof(char) |
| static constexpr idx_t | HEADER_SIZE = sizeof(uint32_t) + PREFIX_BYTES |
| static constexpr idx_t | MAX_STRING_SIZE = NumericLimits<uint32_t>::Maximum() |
| static constexpr idx_t | PREFIX_LENGTH = PREFIX_BYTES |
| static constexpr idx_t | INLINE_LENGTH = INLINE_BYTES |
Private Attributes | ||
| union { | ||
| struct { | ||
| uint32_t length | ||
| char prefix [4] | ||
| char * ptr | ||
| } pointer | ||
| struct { | ||
| uint32_t length | ||
| char inlined [12] | ||
| } inlined | ||
| } | value | |
Friends | |
| struct | StringComparisonOperators |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Data was written to the 'value.pointer.ptr', has to be copied to the inlined bytes

|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |