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::RegexStringPieceArgs Struct Reference
Collaboration diagram for duckdb::RegexStringPieceArgs:

Public Member Functions

void Init (idx_t size)
void SetSize (idx_t size)
RegexStringPieceArgs & operator= (RegexStringPieceArgs &&other) noexcept

Public Attributes

idx_t size
idx_t capacity
 The currently allocated capacity for the groups.
duckdb_re2::StringPiece * group_buffer
 Used by ExtractAll to pre-allocate the storage for the groups.

Private Member Functions

void Clear ()

Constructor & Destructor Documentation

◆ RegexStringPieceArgs()

duckdb::RegexStringPieceArgs::RegexStringPieceArgs ( )
inline
233808 : size(0), capacity(0), group_buffer(nullptr) {
233809 }
idx_t capacity
The currently allocated capacity for the groups.
Definition duckdb.cpp:233850
duckdb_re2::StringPiece * group_buffer
Used by ExtractAll to pre-allocate the storage for the groups.
Definition duckdb.cpp:233852

◆ ~RegexStringPieceArgs()

duckdb::RegexStringPieceArgs::~RegexStringPieceArgs ( )
inline
233834 {
233835 Clear();
233836 }

Member Function Documentation

◆ Init()

void duckdb::RegexStringPieceArgs::Init ( idx_t size)
inline
233810 {
233811 this->size = size;
233812 // Allocate for one extra, for the all-encompassing match group
233813 this->capacity = size + 1;
233814 group_buffer = AllocateArray<duckdb_re2::StringPiece>(capacity);
233815 }

◆ SetSize()

void duckdb::RegexStringPieceArgs::SetSize ( idx_t size)
inline
233816 {
233817 this->size = size;
233818 if (size + 1 > capacity) {
233819 Clear();
233820 Init(size);
233821 }
233822 }

◆ operator=()

RegexStringPieceArgs & duckdb::RegexStringPieceArgs::operator= ( RegexStringPieceArgs && other)
inlinenoexcept
233824 {
233825 this->size = other.size;
233826 this->capacity = other.capacity;
233827 this->group_buffer = other.group_buffer;
233828 other.size = 0;
233829 other.capacity = 0;
233830 other.group_buffer = nullptr;
233831 return *this;
233832 }

◆ Clear()

void duckdb::RegexStringPieceArgs::Clear ( )
inlineprivate
233839 {
233840 DeleteArray<duckdb_re2::StringPiece>(group_buffer, capacity);
233841 group_buffer = nullptr;
233842
233843 size = 0;
233844 capacity = 0;
233845 }

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