3DiVi Face SDK  3.21.0
 Указатель Классы Пространства имен Файлы Функции Переменные Определения типов Перечисления Элементы перечислений Свойства Группы
WrapVectorImpl.h
1 #ifndef __PBIO_API__PBIO__STL_WRAPS_IMPLS__WRAP_VECTOR_IMPL_H_
2 #define __PBIO_API__PBIO__STL_WRAPS_IMPLS__WRAP_VECTOR_IMPL_H_
3 
5 
6 
7 #include <vector>
8 
9 #include "pbio/stl_wraps/WrapVector.h"
10 
11 namespace pbio
12 {
13 namespace stl_wraps
14 {
15 
16 inline
17 void assign_pointers_vector_func(
18  void* pointers_vector,
19  void* const* elements,
20  int32_t elements_count)
21 {
22  ((std::vector<void*>*) pointers_vector)->assign(elements, elements + elements_count);
23 }
24 
25 inline
26 void assign_floats_vector_func(
27  void* pointers_vector,
28  float const* elements,
29  int32_t elements_count)
30 {
31  ((std::vector<float>*) pointers_vector)->assign(elements, elements + elements_count);
32 }
33 
34 } // stl_wraps namespace
35 } // pbio namespace
36 
38 
39 #endif // __PBIO_API__PBIO__STL_WRAPS_IMPLS__WRAP_VECTOR_IMPL_H_
40 
41 
42 
43 
44