|
Blender V5.3
|
#include <FN_field.hh>
Classes | |
| struct | Value |
| struct | Input |
| struct | MultiFn |
Public Types | |
| using | Variant = std::variant<Value, Input, MultiFn> |
Public Member Functions | |
| GFieldRef (const GField &field) | |
| const FieldInputsPtr & | field_inputs () const |
| uint64_t | hash () const |
Inline Methods | |
| template<typename T> | |
| GFieldRef (const Field< T > &field) | |
| GFieldRef (const FieldInput &field_input) | |
| GFieldRef (const FieldOperation &field_multi_fn, int output_i=0) | |
| GFieldRef (Variant variant) | |
| const Variant & | variant () const |
| const CPPType & | cpp_type () const |
| static GFieldRef | from_constant (const CPPType &type, const void *value) |
A version of GField that only references data from other fields but does not own any data itself. This allows it to be smaller and trivially copyable making it more efficient in some contexts. This is mainly used during field evaluation.
Definition at line 246 of file FN_field.hh.
| using blender::fn::GFieldRef::Variant = std::variant<Value, Input, MultiFn> |
Definition at line 260 of file FN_field.hh.
| blender::fn::GFieldRef::GFieldRef | ( | const GField & | field | ) |
Create a reference to the given fields. The caller is responsible for making sure that the referenced data stays valid.
Definition at line 373 of file field.cc.
References blender::if(), T, and blender::v.
Referenced by from_constant(), and GFieldRef().
Definition at line 674 of file FN_field.hh.
References GFieldRef().
|
inlineexplicit |
Definition at line 659 of file FN_field.hh.
|
inlineexplicit |
Definition at line 661 of file FN_field.hh.
|
inlineexplicit |
Definition at line 666 of file FN_field.hh.
References variant().
|
inline |
These are the same as the corresponding GField methods.
Definition at line 683 of file FN_field.hh.
References BLI_assert_unreachable_static_t, T, and blender::v.
Referenced by blender::fn::evaluate_fields().
| const FieldInputsPtr & blender::fn::GFieldRef::field_inputs | ( | ) | const |
Definition at line 398 of file field.cc.
References BLI_assert_unreachable_static_t, field_inputs(), T, and blender::v.
Referenced by field_inputs(), and blender::nodes::LazyFunctionForExtractingReferenceSet::gather_references_from_field().
|
inlinestatic |
Definition at line 668 of file FN_field.hh.
References GFieldRef().
Referenced by blender::fn::FieldEvaluator::evaluate().
| uint64_t blender::fn::GFieldRef::hash | ( | ) | const |
Definition at line 456 of file field.cc.
References BLI_assert_unreachable_static_t, blender::get_default_hash(), hash(), T, and blender::v.
Referenced by hash().
|
inline |
Get access to the underlying Variant.
Definition at line 678 of file FN_field.hh.
Referenced by blender::fn::build_multi_function_procedure_for_fields(), blender::fn::FieldHashDeep::ensure(), blender::fn::evaluate_fields(), GFieldRef(), blender::fn::operator==(), and blender::fn::preprocess_field_tree().