Blender  V3.3
generic_virtual_vector_array.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
4 
5 namespace blender {
6 
7 void GVArray_For_GVVectorArrayIndex::get(const int64_t index_in_vector, void *r_value) const
8 {
9  vector_array_.get_vector_element(index_, index_in_vector, r_value);
10 }
11 
13  void *r_value) const
14 {
15  type_->default_construct(r_value);
16  vector_array_.get_vector_element(index_, index_in_vector, r_value);
17 }
18 
20 {
21  return varray_.size();
22 }
23 
25  const int64_t index_in_vector,
26  void *r_value) const
27 {
28  varray_.get(index_in_vector, r_value);
29 }
30 
32 {
33  return true;
34 }
35 
37 {
38  return span_.size();
39 }
40 
42  const int64_t index_in_vector,
43  void *r_value) const
44 {
45  type_->copy_assign(span_[index_in_vector], r_value);
46 }
47 
49 {
50  return true;
51 }
52 
53 } // namespace blender
#define UNUSED(x)
void copy_assign(const void *src, void *dst) const
void default_construct(void *ptr) const
int64_t size() const
void get(int64_t index, void *r_value) const
void get(int64_t index_in_vector, void *r_value) const override
void get_to_uninitialized(int64_t index_in_vector, void *r_value) const override
int64_t get_vector_size_impl(int64_t UNUSED(index)) const override
void get_vector_element_impl(int64_t UNUSED(index), int64_t index_in_vector, void *r_value) const override
int64_t get_vector_size_impl(int64_t index) const override
void get_vector_element_impl(int64_t index, int64_t index_in_vector, void *r_value) const override
void get_vector_element(const int64_t index, const int64_t index_in_vector, void *r_value) const
__int64 int64_t
Definition: stdint.h:89