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_matcher Class Reference

fuzzy match library interface More...

#include <fuzzyaccess.h>

Inheritance diagram for fuzzy_matcher:

fuzzy_matcher_impl

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]

destructor

Definition at line 42 of file fuzzyaccess.h.


Member Function Documentation

virtual size_t fuzzy_matcher::add ( const char *  phrase,
TERIMBER::byte_allocator &  all 
) [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
all  external allocator

Referenced by var_object_repository::insert_object(), and var_object_repository::update_object().

virtual bool fuzzy_matcher::remove ( const char *  phrase,
TERIMBER::byte_allocator &  all 
) [pure virtual]

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

Parameters:
phrase  input phrase
all  external allocator

Referenced by var_object_repository::delete_object(), and var_object_repository::update_object().

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]

clean up engine

Implemented in fuzzy_matcher_impl.

Referenced by var_object_repository::reset().


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


© Copyright Terimber 2003-.