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::BlockPatternMatchVector Struct Reference

Public Member Functions

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

Private Attributes

std::vector< BitvectorHashmap > m_map
std::vector< uint64_t > m_extendedAscii
int64_t m_block_count

Constructor & Destructor Documentation

◆ BlockPatternMatchVector() [1/2]

duckdb_jaro_winkler::common::BlockPatternMatchVector::BlockPatternMatchVector ( )
inline
108380 : m_block_count(0)
108381 {}

◆ BlockPatternMatchVector() [2/2]

template<typename InputIt1>
duckdb_jaro_winkler::common::BlockPatternMatchVector::BlockPatternMatchVector ( InputIt1 first,
InputIt1 last )
inline
108384 : m_block_count(0)
108385 {
108386 insert(first, last);
108387 }

Member Function Documentation

◆ insert() [1/2]

template<typename CharT>
void duckdb_jaro_winkler::common::BlockPatternMatchVector::insert ( int64_t block,
CharT key,
int pos )
inline
108391 {
108392 uint64_t mask = 1ull << pos;
108393
108394 assert(block < m_block_count);
108395 if (key >= 0 && key <= 255) {
108396 m_extendedAscii[static_cast<size_t>(key * m_block_count + block)] |= mask;
108397 }
108398 else {
108399 m_map[static_cast<size_t>(block)].insert_mask(key, mask);
108400 }
108401 }
#define assert(x)
Definition duckdb.cpp:486071
GMat mask(const GMat &src, const GMat &mask)
::uint64_t uint64_t

◆ insert() [2/2]

template<typename InputIt1>
void duckdb_jaro_winkler::common::BlockPatternMatchVector::insert ( InputIt1 first,
InputIt1 last )
inline
108405 {
108406 int64_t len = std::distance(first, last);
108407 m_block_count = ceildiv(len, 64);
108408 m_map.resize(static_cast<size_t>(m_block_count));
108409 m_extendedAscii.resize(static_cast<size_t>(m_block_count * 256));
108410
108411 for (int64_t i = 0; i < len; ++i) {
108412 int64_t block = i / 64;
108413 int64_t pos = i % 64;
108414 insert(block, first[i], static_cast<int>(pos));
108415 }
108416 }
::int64_t int64_t

◆ get() [1/2]

template<typename CharT>
uint64_t duckdb_jaro_winkler::common::BlockPatternMatchVector::get ( CharT key) const
inline

combat func for PatternMatchVector

108423 {
108424 return get(0, key);
108425 }
__host__ cudaTextureObject_t get() const noexcept
Here is the call graph for this function:

◆ get() [2/2]

template<typename CharT>
uint64_t duckdb_jaro_winkler::common::BlockPatternMatchVector::get ( int64_t block,
CharT key ) const
inline
108429 {
108430 assert(block < m_block_count);
108431 if (key >= 0 && key <= 255) {
108432 return m_extendedAscii[static_cast<size_t>(key * m_block_count + block)];
108433 }
108434 else {
108435 return m_map[static_cast<size_t>(block)].get(key);
108436 }
108437 }

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