fuzzy_matcher Class Reference
fuzzy match library interface
More...
#include <fuzzyaccess.h>
List of all members.
|
Public Member Functions |
virtual | ~fuzzy_matcher () |
| destructor
|
virtual size_t | add (const char *phrase, TERIMBER::byte_allocator &all)=0 |
| adds a new n-gram to the internal repository (utf-8) caller can add the same n-gram many times class will support internal references count
|
virtual bool | remove (const char *phrase, TERIMBER::byte_allocator &all)=0 |
| removes the previously added ngram caller can remove the same n-gram many times unless the references count goes to zero
|
virtual bool | remove (size_t ident, TERIMBER::byte_allocator &all)=0 |
| remove previously added ngram by ident caller can remove the same n-gram many times unless the references count goes to zero
|
virtual bool | match (ngram_quality nq, phonetic_quality pq, const char *phrase, TERIMBER::byte_allocator &all, TERIMBER::byte_allocator &tmp, TERIMBER::_list< const char * > &suggestions) const =0 |
| does the fuzzy match
|
virtual bool | match (ngram_quality nq, phonetic_quality fq, const char *phrase, TERIMBER::byte_allocator &all, TERIMBER::byte_allocator &tmp, TERIMBER::_list< size_t > &suggestions) const =0 |
| does the fuzzy match
|
virtual void | reset ()=0 |
| clean up engine
|
Detailed Description
fuzzy match library interface
Definition at line 37 of file fuzzyaccess.h.
Constructor & Destructor Documentation
virtual fuzzy_matcher::~fuzzy_matcher |
( |
|
) |
[inline, virtual] |
Member Function Documentation
virtual size_t fuzzy_matcher::add |
( |
const char * |
phrase, |
|
|
TERIMBER::byte_allocator & |
all | |
|
) |
| | [pure virtual] |
virtual bool fuzzy_matcher::remove |
( |
const char * |
phrase, |
|
|
TERIMBER::byte_allocator & |
all | |
|
) |
| | [pure virtual] |
virtual bool fuzzy_matcher::remove |
( |
size_t |
ident, |
|
|
TERIMBER::byte_allocator & |
all | |
|
) |
| | [pure virtual] |
remove previously added ngram by ident caller can remove the same n-gram many times unless the references count goes to zero
- Parameters:
-
ident |
input ident |
all |
external allocator |
virtual bool fuzzy_matcher::match |
( |
ngram_quality |
nq, |
|
|
phonetic_quality |
pq, |
|
|
const char * |
phrase, |
|
|
TERIMBER::byte_allocator & |
all, |
|
|
TERIMBER::byte_allocator & |
tmp, |
|
|
TERIMBER::_list< const char * > & |
suggestions | |
|
) |
| | const [pure virtual] |
does the fuzzy match
- Parameters:
-
nq |
ngram quality for matching |
pq |
phonetic quality for matching |
phrase |
input phrase |
all |
external allocator for output container |
tmp |
external temporary allocator |
suggestions |
[out] output list of suggestions |
Referenced by var_object_repository::process_condition().
virtual bool fuzzy_matcher::match |
( |
ngram_quality |
nq, |
|
|
phonetic_quality |
fq, |
|
|
const char * |
phrase, |
|
|
TERIMBER::byte_allocator & |
all, |
|
|
TERIMBER::byte_allocator & |
tmp, |
|
|
TERIMBER::_list< size_t > & |
suggestions | |
|
) |
| | const [pure virtual] |
does the fuzzy match
- Parameters:
-
nq |
ngram quality for matching |
fq |
phonetic quality for matching |
phrase |
input phrase |
all |
external allocator for output container |
tmp |
external temporary allocator |
suggestions |
[out] output list of sugestions idents |
virtual void fuzzy_matcher::reset |
( |
|
) |
[pure virtual] |
The documentation for this class was generated from the following file: