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_jaro_winkler::common::PatternMatchVector Struct Reference
Collaboration diagram for duckdb_jaro_winkler::common::PatternMatchVector:

Classes

struct  MapElem

Public Member Functions

template<typename InputIt1>
 PatternMatchVector (InputIt1 first, InputIt1 last)
template<typename InputIt1>
void insert (InputIt1 first, InputIt1 last)
template<typename CharT>
void insert (CharT key, int64_t pos)
template<typename CharT>
uint64_t get (CharT key) const
template<typename CharT>
uint64_t get (int64_t block, CharT key) const

Private Attributes

BitvectorHashmap m_map
std::array< uint64_t, 256 > m_extendedAscii

Constructor & Destructor Documentation

◆ PatternMatchVector() [1/2]

duckdb_jaro_winkler::common::PatternMatchVector::PatternMatchVector ( )
inline
108315 : m_map(), m_extendedAscii()
108316 {}

◆ PatternMatchVector() [2/2]

template<typename InputIt1>
duckdb_jaro_winkler::common::PatternMatchVector::PatternMatchVector ( InputIt1 first,
InputIt1 last )
inline
108319 : m_map(), m_extendedAscii()
108320 {
108321 insert(first, last);
108322 }

Member Function Documentation

◆ insert() [1/2]

template<typename InputIt1>
void duckdb_jaro_winkler::common::PatternMatchVector::insert ( InputIt1 first,
InputIt1 last )
inline
108326 {
108327 uint64_t mask = 1;
108328 for (int64_t i = 0; i < std::distance(first, last); ++i) {
108329 auto key = first[i];
108330 if (key >= 0 && key <= 255) {
108331 m_extendedAscii[static_cast<size_t>(key)] |= mask;
108332 }
108333 else {
108334 m_map.insert_mask(key, mask);
108335 }
108336 mask <<= 1;
108337 }
108338 }
GMat mask(const GMat &src, const GMat &mask)
::uint64_t uint64_t

◆ insert() [2/2]

template<typename CharT>
void duckdb_jaro_winkler::common::PatternMatchVector::insert ( CharT key,
int64_t pos )
inline
108342 {
108343 uint64_t mask = 1ull << pos;
108344 if (key >= 0 && key <= 255) {
108345 m_extendedAscii[key] |= mask;
108346 }
108347 else {
108348 m_map.insert_mask(key, mask);
108349 }
108350 }

◆ get() [1/2]

template<typename CharT>
uint64_t duckdb_jaro_winkler::common::PatternMatchVector::get ( CharT key) const
inline
108354 {
108355 if (key >= 0 && key <= 255) {
108356 return m_extendedAscii[static_cast<size_t>(key)];
108357 }
108358 else {
108359 return m_map.get(key);
108360 }
108361 }

◆ get() [2/2]

template<typename CharT>
uint64_t duckdb_jaro_winkler::common::PatternMatchVector::get ( int64_t block,
CharT key ) const
inline

combat func for BlockPatternMatchVector

108368 {
108369 (void)block;
108370 assert(block == 0);
108371 return get(key);
108372 }
#define assert(x)
Definition duckdb.cpp:486071
__host__ cudaTextureObject_t get() const noexcept
Here is the call graph for this function:

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