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_re2::RegexpStatus Class Reference
Collaboration diagram for duckdb_re2::RegexpStatus:

Public Member Functions

void set_code (RegexpStatusCode code)
void set_error_arg (const StringPiece &error_arg)
void set_tmp (std::string *tmp)
RegexpStatusCode code () const
const StringPiece & error_arg () const
bool ok () const
void Copy (const RegexpStatus &status)
std::string Text () const

Static Public Member Functions

static std::string CodeText (RegexpStatusCode code)

Private Member Functions

 RegexpStatus (const RegexpStatus &)=delete
RegexpStatus & operator= (const RegexpStatus &)=delete

Private Attributes

RegexpStatusCode code_
StringPiece error_arg_
std::string * tmp_

Constructor & Destructor Documentation

◆ RegexpStatus()

duckdb_re2::RegexpStatus::RegexpStatus ( )
inline
322400: code_(kRegexpSuccess), tmp_(NULL) {}

◆ ~RegexpStatus()

duckdb_re2::RegexpStatus::~RegexpStatus ( )
inline
322401{ delete tmp_; }

Member Function Documentation

◆ set_code()

void duckdb_re2::RegexpStatus::set_code ( RegexpStatusCode code)
inline
322403{ code_ = code; }

◆ set_error_arg()

void duckdb_re2::RegexpStatus::set_error_arg ( const StringPiece & error_arg)
inline
322404{ error_arg_ = error_arg; }

◆ set_tmp()

void duckdb_re2::RegexpStatus::set_tmp ( std::string * tmp)
inline
322405{ delete tmp_; tmp_ = tmp; }

◆ code()

RegexpStatusCode duckdb_re2::RegexpStatus::code ( ) const
inline
322406{ return code_; }

◆ error_arg()

const StringPiece & duckdb_re2::RegexpStatus::error_arg ( ) const
inline
322407{ return error_arg_; }

◆ ok()

bool duckdb_re2::RegexpStatus::ok ( ) const
inline
322408{ return code() == kRegexpSuccess; }

◆ Copy()

void duckdb_re2::RegexpStatus::Copy ( const RegexpStatus & status)
473480 {
473481 code_ = status.code_;
473482 error_arg_ = status.error_arg_;
473483}

◆ CodeText()

std::string duckdb_re2::RegexpStatus::CodeText ( RegexpStatusCode code)
static
473464 {
473465 if (code < 0 || code >= arraysize(kErrorStrings))
473466 code = kRegexpInternalError;
473467 return kErrorStrings[code];
473468}

◆ Text()

std::string duckdb_re2::RegexpStatus::Text ( ) const
473470 {
473471 if (error_arg_.empty())
473472 return CodeText(code_);
473473 std::string s;
473474 s.append(CodeText(code_));
473475 s.append(": ");
473476 s.append(error_arg_.data(), error_arg_.size());
473477 return s;
473478}

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