Blender
V5.0
source
blender
blenlib
intern
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
9
#include "
BLI_generic_virtual_vector_array.hh
"
10
11
namespace
blender
{
12
13
void
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
18
void
GVArray_For_GVVectorArrayIndex::get_to_uninitialized
(
const
int64_t
index_in_vector,
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
25
int64_t
GVVectorArray_For_SingleGVArray::get_vector_size_impl
(
const
int64_t
/*index*/
)
const
26
{
27
return
varray_.size();
28
}
29
30
void
GVVectorArray_For_SingleGVArray::get_vector_element_impl
(
const
int64_t
/*index*/
,
31
const
int64_t
index_in_vector,
32
void
*r_value)
const
33
{
34
varray_.get(index_in_vector, r_value);
35
}
36
37
bool
GVVectorArray_For_SingleGVArray::is_single_vector_impl
()
const
38
{
39
return
true
;
40
}
41
42
int64_t
GVVectorArray_For_SingleGSpan::get_vector_size_impl
(
const
int64_t
/*index*/
)
const
43
{
44
return
span_.size();
45
}
46
47
void
GVVectorArray_For_SingleGSpan::get_vector_element_impl
(
const
int64_t
/*index*/
,
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
54
bool
GVVectorArray_For_SingleGSpan::is_single_vector_impl
()
const
55
{
56
return
true
;
57
}
58
59
}
// namespace blender
BLI_generic_virtual_vector_array.hh
int64_t
long long int int64_t
Definition
btConvexHullComputer.cpp:31
blender::GVArrayImpl::type_
const CPPType * type_
Definition
BLI_generic_virtual_array.hh:32
blender::GVArray_For_GVVectorArrayIndex::get
void get(int64_t index_in_vector, void *r_value) const override
Definition
generic_virtual_vector_array.cc:13
blender::GVArray_For_GVVectorArrayIndex::get_to_uninitialized
void get_to_uninitialized(int64_t index_in_vector, void *r_value) const override
Definition
generic_virtual_vector_array.cc:18
blender::GVVectorArray_For_SingleGSpan::is_single_vector_impl
bool is_single_vector_impl() const override
Definition
generic_virtual_vector_array.cc:54
blender::GVVectorArray_For_SingleGSpan::get_vector_size_impl
int64_t get_vector_size_impl(int64_t) const override
Definition
generic_virtual_vector_array.cc:42
blender::GVVectorArray_For_SingleGSpan::get_vector_element_impl
void get_vector_element_impl(int64_t, int64_t index_in_vector, void *r_value) const override
Definition
generic_virtual_vector_array.cc:47
blender::GVVectorArray_For_SingleGVArray::get_vector_size_impl
int64_t get_vector_size_impl(int64_t index) const override
Definition
generic_virtual_vector_array.cc:25
blender::GVVectorArray_For_SingleGVArray::get_vector_element_impl
void get_vector_element_impl(int64_t index, int64_t index_in_vector, void *r_value) const override
Definition
generic_virtual_vector_array.cc:30
blender::GVVectorArray_For_SingleGVArray::is_single_vector_impl
bool is_single_vector_impl() const override
Definition
generic_virtual_vector_array.cc:37
blender::GVVectorArray::type_
const CPPType * type_
Definition
BLI_generic_virtual_vector_array.hh:22
blender
Definition
ANIM_action.hh:36
Generated on
for Blender by
doxygen
1.16.1