9 #ifndef __PBIO_API__PBIO__TEMPLATES_INDEX_H_
10 #define __PBIO_API__PBIO__TEMPLATES_INDEX_H_
19 #include "ComplexObject.h"
22 #include "stl_wraps_impls/WrapOStreamImpl.h"
46 typedef LightSmartPtr<TemplatesIndex>::tPtr
Ptr;
136 const DHPtr &dll_handle,
156 TemplatesIndex::TemplatesIndex(
157 const DHPtr &dll_handle,
159 ComplexObject(dll_handle, impl)
169 std::ostringstream name_stream;
170 pbio::stl_wraps::WrapOStreamImpl name_stream_wrap(name_stream);
172 void* exception = NULL;
174 _dll_handle->TemplatesIndex_getMethodName(
177 pbio::stl_wraps::WrapOStream::write_func,
180 checkException(exception, *_dll_handle);
182 return name_stream.str();
189 void* exception = NULL;
191 const size_t size = _dll_handle->TemplatesIndex_size(
195 checkException(exception, *_dll_handle);
204 void* exception = NULL;
206 pbio::facerec::TemplateImpl*
const result_impl = _dll_handle->TemplatesIndex_at(
211 checkException(exception, *_dll_handle);
213 return Template::Ptr::make(_dll_handle, result_impl);
220 void* exception = NULL;
222 _dll_handle->TemplatesIndex_reserveSearchMemory(
227 checkException(exception, *_dll_handle);
230 #endif // __PBIO_API__PBIO__TEMPLATES_INDEX_H_
size_t size() const
Получить количество шаблонов в индексе. Потокобезопасный.
Definition: TemplatesIndex.h:187
Интерфейсный объект для работы с индексом шаблонов.
Definition: TemplatesIndex.h:37
std::string getMethodName() const
Получить имя метода. Потокобезопасный.
Definition: TemplatesIndex.h:167
Definition: Recognizer.h:64
Интерфейсный объект для создания и сравнения шаблонов.
Definition: Recognizer.h:37
LightSmartPtr< Template >::tPtr Ptr
Псевдоним для типа умного указателя на Template.
Definition: Template.h:46
LightSmartPtr< TemplatesIndex >::tPtr Ptr
Псевдоним для типа умного указателя на TemplatesIndex.
Definition: TemplatesIndex.h:46
Error - класс исключений, выбрасываемых при возникновении ошибок.
void reserveSearchMemory(const int queries_count) const
Зарезервировать память для временных буферов, используемых при поиске. Эти временные буферы требуют 8...
Definition: TemplatesIndex.h:218
pbio::Template::Ptr at(size_t i) const
Получить i-й шаблон. Потокобезопасный.
Definition: TemplatesIndex.h:202