Blender
V4.3
source
blender
blenlib
BLI_cpp_types.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
7
#include "
BLI_cpp_type.hh
"
8
#include "
BLI_vector.hh
"
9
10
namespace
blender
{
11
15
class
VectorCPPType
{
16
public
:
18
const
CPPType
&
self
;
20
const
CPPType
&
value
;
21
22
template
<
typename
ValueType>
VectorCPPType
(
TypeTag<ValueType>
/*value_type*/
);
23
27
static
const
VectorCPPType
*
get_from_self
(
const
CPPType
&
self
);
32
static
const
VectorCPPType
*
get_from_value
(
const
CPPType
&value);
33
34
template
<
typename
ValueType>
static
const
VectorCPPType
&
get
()
35
{
36
static
const
VectorCPPType
&type =
VectorCPPType::get_impl<std::decay_t<ValueType>
>();
37
return
type;
38
}
39
40
template
<
typename
ValueType>
static
const
VectorCPPType
&
get_impl
();
41
42
private
:
43
void
register_self();
44
};
45
46
}
// namespace blender
BLI_cpp_type.hh
BLI_vector.hh
blender::CPPType
Definition
BLI_cpp_type.hh:101
blender::VectorCPPType
Definition
BLI_cpp_types.hh:15
blender::VectorCPPType::self
const CPPType & self
Definition
BLI_cpp_types.hh:18
blender::VectorCPPType::get_impl
static const VectorCPPType & get_impl()
blender::VectorCPPType::get_from_self
static const VectorCPPType * get_from_self(const CPPType &self)
Definition
blenlib/intern/cpp_types.cc:32
blender::VectorCPPType::value
const CPPType & value
Definition
BLI_cpp_types.hh:20
blender::VectorCPPType::get_from_value
static const VectorCPPType * get_from_value(const CPPType &value)
Definition
blenlib/intern/cpp_types.cc:39
blender::VectorCPPType::VectorCPPType
VectorCPPType(TypeTag< ValueType >)
Definition
BLI_cpp_types_make.hh:13
blender::VectorCPPType::get
static const VectorCPPType & get()
Definition
BLI_cpp_types.hh:34
blender
Definition
ANIM_action.hh:36
blender::TypeTag
Definition
BLI_parameter_pack_utils.hh:31
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0