Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

fuzzy_wrapper Class Reference

fuzzy wrapper library interface it's safe to call methods in multithreaded program add/remove methods will be executed one by one; "write" blocking mode match method can be executed in multiple threads at the same time; "read" non-blocking mode More...

#include <fuzzywrapper.h>

Inheritance diagram for fuzzy_wrapper:

fuzzy_wrapper_impl

List of all members.

Public Member Functions

virtual ~fuzzy_wrapper ()
 destructor
virtual bool add (const char *phrase)=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)=0
 removes the previously added ngram caller can remove the same n-gram many times unless references count goes to zero
virtual bool match (ngram_quality nq, phonetic_quality fq, const char *phrase, linked_result &suggestions) const =0
 does the fuzzy match


Detailed Description

fuzzy wrapper library interface it's safe to call methods in multithreaded program add/remove methods will be executed one by one; "write" blocking mode match method can be executed in multiple threads at the same time; "read" non-blocking mode

Definition at line 83 of file fuzzywrapper.h.


Constructor & Destructor Documentation

virtual fuzzy_wrapper::~fuzzy_wrapper (  )  [inline, virtual]

destructor

Definition at line 88 of file fuzzywrapper.h.


Member Function Documentation

virtual bool fuzzy_wrapper::add ( const char *  phrase  )  [pure virtual]

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

Parameters:
phrase  input phrase

Implemented in fuzzy_wrapper_impl.

virtual bool fuzzy_wrapper::remove ( const char *  phrase  )  [pure virtual]

removes the previously added ngram caller can remove the same n-gram many times unless references count goes to zero

Parameters:
phrase  input phrase

Implemented in fuzzy_wrapper_impl.

virtual bool fuzzy_wrapper::match ( ngram_quality  nq,
phonetic_quality  fq,
const char *  phrase,
linked_result suggestions 
) const [pure virtual]

does the fuzzy match

Parameters:
nq  ngram quality
fq  phonetic quality

Implemented in fuzzy_wrapper_impl.


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


© Copyright Terimber 2003-.