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::CaptureNamesWalker Class Reference
Inheritance diagram for duckdb_re2::CaptureNamesWalker:
Collaboration diagram for duckdb_re2::CaptureNamesWalker:

Public Member Functions

std::map< int, std::string > * TakeMap ()
virtual Ignored PreVisit (Regexp *re, Ignored ignored, bool *stop)
virtual Ignored ShortVisit (Regexp *re, Ignored ignored)
Public Member Functions inherited from duckdb_re2::Regexp::Walker< Ignored >
virtual Ignored PostVisit (Regexp *re, Ignored parent_arg, Ignored pre_arg, Ignored *child_args, int nchild_args)
virtual Ignored Copy (Ignored arg)
Ignored Walk (Regexp *re, Ignored top_arg)
Ignored WalkExponential (Regexp *re, Ignored top_arg, int max_visits)
void Reset ()
bool stopped_early ()

Private Member Functions

 CaptureNamesWalker (const CaptureNamesWalker &)=delete
CaptureNamesWalker & operator= (const CaptureNamesWalker &)=delete

Private Attributes

std::map< int, std::string > * map_

Constructor & Destructor Documentation

◆ CaptureNamesWalker()

duckdb_re2::CaptureNamesWalker::CaptureNamesWalker ( )
inline
473570: map_(NULL) {}

◆ ~CaptureNamesWalker()

duckdb_re2::CaptureNamesWalker::~CaptureNamesWalker ( )
inline
473571{ delete map_; }

Member Function Documentation

◆ TakeMap()

std::map< int, std::string > * duckdb_re2::CaptureNamesWalker::TakeMap ( )
inline
473573 {
473574 std::map<int, std::string>* m = map_;
473575 map_ = NULL;
473576 return m;
473577 }

◆ PreVisit()

virtual Ignored duckdb_re2::CaptureNamesWalker::PreVisit ( Regexp * re,
Ignored ignored,
bool * stop )
inlinevirtual

Reimplemented from duckdb_re2::Regexp::Walker< Ignored >.

473579 {
473580 if (re->op() == kRegexpCapture && re->name() != NULL) {
473581 // Allocate map once we find a name.
473582 if (map_ == NULL)
473583 map_ = new std::map<int, std::string>;
473584
473585 (*map_)[re->cap()] = *re->name();
473586 }
473587 return ignored;
473588 }

◆ ShortVisit()

virtual Ignored duckdb_re2::CaptureNamesWalker::ShortVisit ( Regexp * re,
Ignored ignored )
inlinevirtual

Implements duckdb_re2::Regexp::Walker< Ignored >.

473590 {
473591 // Should never be called: we use Walk(), not WalkExponential().
473592#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
473593 LOG(DFATAL) << "CaptureNamesWalker::ShortVisit called";
473594#endif
473595 return ignored;
473596 }

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