|
| 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 |
◆ 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 }
◆ insert() [1/2]
template<typename InputIt1>
| void duckdb_jaro_winkler::common::PatternMatchVector::insert |
( |
InputIt1 | first, |
|
|
InputIt1 | last ) |
|
inline |
108326 {
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 }
108337 }
108338 }
GMat mask(const GMat &src, const GMat &mask)
◆ insert() [2/2]
template<typename CharT>
| void duckdb_jaro_winkler::common::PatternMatchVector::insert |
( |
CharT | key, |
|
|
int64_t | pos ) |
|
inline |
108342 {
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;
108372 }
#define assert(x)
Definition duckdb.cpp:486071
__host__ cudaTextureObject_t get() const noexcept
The documentation for this struct was generated from the following file: