Blender V5.0
generic_virtual_vector_array.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
10
11namespace blender {
12
13void GVArray_For_GVVectorArrayIndex::get(const int64_t index_in_vector, void *r_value) const
14{
15 vector_array_.get_vector_element(index_, index_in_vector, r_value);
16}
17
19 void *r_value) const
20{
21 type_->default_construct(r_value);
22 vector_array_.get_vector_element(index_, index_in_vector, r_value);
23}
24
26{
27 return varray_.size();
28}
29
31 const int64_t index_in_vector,
32 void *r_value) const
33{
34 varray_.get(index_in_vector, r_value);
35}
36
38{
39 return true;
40}
41
43{
44 return span_.size();
45}
46
48 const int64_t index_in_vector,
49 void *r_value) const
50{
51 type_->copy_assign(span_[index_in_vector], r_value);
52}
53
55{
56 return true;
57}
58
59} // namespace blender
long long int int64_t
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) const override
void get_vector_element_impl(int64_t, 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