Home / Open source / Terimber 2.0
fuzzy_wrapper_impl Class Reference
List of all members.
Detailed Description
Definition at line 45 of file fuzzywrapper.cpp.
Constructor & Destructor Documentation
fuzzy_wrapper_impl::fuzzy_wrapper_impl |
( |
size_t |
memory_usage |
) |
|
fuzzy_wrapper_impl::~fuzzy_wrapper_impl |
( |
|
) |
|
Member Function Documentation
bool fuzzy_wrapper_impl::add |
( |
const char * |
phrase |
) |
[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
Implements fuzzy_wrapper.
Definition at line 99 of file fuzzywrapper.cpp.
References _all_container, _key, _matcher, _mtx, fuzzy_matcher_impl::add(), all_default_size, base_list< T >::empty(), base_list< T >::front(), mutex_keeper::lock(), list< T >::pop_front(), list< T >::push_front(), and mutex_keeper::unlock().
bool fuzzy_wrapper_impl::remove |
( |
const char * |
phrase |
) |
[virtual] |
removes the previously added ngram caller can remove the same n-gram many times unless references count goes to zero
Implements fuzzy_wrapper.
Definition at line 130 of file fuzzywrapper.cpp.
References _all_container, _key, _matcher, _mtx, all_default_size, base_list< T >::empty(), base_list< T >::front(), mutex_keeper::lock(), list< T >::pop_front(), list< T >::push_front(), fuzzy_matcher_impl::remove(), and mutex_keeper::unlock().
does the fuzzy match
Implements fuzzy_wrapper.
Definition at line 161 of file fuzzywrapper.cpp.
References _all_container, _key, _matcher, _mtx, linked_result::_next, linked_result::_str, all_default_size, base_list< T >::begin(), base_list< T >::empty(), base_list< T >::end(), base_list< T >::front(), mutex_keeper::lock(), fuzzy_matcher_impl::match(), list< T >::pop_front(), list< T >::push_front(), str_template::strlen(), and mutex_keeper::unlock().
Member Data Documentation
The documentation for this class was generated from the following file:
|
|