|
Blender
V2.93
|
#include <FN_generic_span.hh>
Public Member Functions | |
| GMutableSpan (const CPPType &type, void *buffer, int64_t size) | |
| GMutableSpan (const CPPType &type) | |
| template<typename T > | |
| GMutableSpan (MutableSpan< T > array) | |
| operator GSpan () const | |
| const CPPType & | type () const |
| bool | is_empty () const |
| int64_t | size () const |
| void * | data () const |
| void * | operator[] (int64_t index) const |
| template<typename T > | |
| MutableSpan< T > | typed () const |
A generic mutable span. It behaves just like a blender::MutableSpan<T>, but the type is only known at run-time.
Definition at line 94 of file FN_generic_span.hh.
|
inline |
Definition at line 101 of file FN_generic_span.hh.
References BLI_assert, buffer, data_, blender::fn::CPPType::pointer_has_valid_alignment(), size(), and type().
|
inline |
Definition at line 109 of file FN_generic_span.hh.
|
inline |
Definition at line 114 of file FN_generic_span.hh.
|
inline |
Definition at line 139 of file FN_generic_span.hh.
References data_.
Referenced by blender::nodes::attribute_convert_calc(), blender::fn::CustomMF_DefaultOutput::call(), blender::fn::MFNetworkEvaluationStorage::finish_input_socket(), blender::fn::MFNetworkEvaluationStorage::get_mutable_single__full(), blender::fn::MFNetworkEvaluationStorage::get_single_input__full(), blender::bke::TemporaryWriteAttribute::initialize_span(), OutputAttributePtr::save(), blender::fn::MFNetworkEvaluationStorage::~MFNetworkEvaluationStorage(), and blender::bke::TemporaryWriteAttribute::~TemporaryWriteAttribute().
|
inline |
Definition at line 129 of file FN_generic_span.hh.
Referenced by blender::nodes::attribute_convert_calc(), and blender::fn::tests::TEST().
|
inline |
Definition at line 119 of file FN_generic_span.hh.
References data_.
|
inline |
Definition at line 144 of file FN_generic_span.hh.
References BLI_assert, data_, POINTER_OFFSET, and blender::fn::CPPType::size().
|
inline |
Definition at line 134 of file FN_generic_span.hh.
Referenced by blender::fn::MFParamsBuilder::add_single_mutable(), blender::fn::MFNetworkEvaluationStorage::add_single_output_from_caller(), blender::fn::MFParamsBuilder::add_uninitialized_single_output(), blender::nodes::attribute_convert_calc(), blender::fn::MFNetworkEvaluationStorage::get_mutable_single__single(), blender::fn::MFNetworkEvaluationStorage::get_single_input__single(), blender::fn::MFNetworkEvaluationStorage::get_single_output__single(), GMutableSpan(), OutputAttributePtr::save(), blender::fn::tests::TEST(), and blender::bke::TemporaryWriteAttribute::~TemporaryWriteAttribute().
|
inline |
Definition at line 124 of file FN_generic_span.hh.
Referenced by blender::fn::MFParamsBuilder::add_single_mutable(), blender::fn::MFParamsBuilder::add_uninitialized_single_output(), blender::fn::CustomMF_DefaultOutput::call(), blender::fn::MFNetworkEvaluationStorage::finish_input_socket(), blender::bke::TemporaryWriteAttribute::get_internal(), blender::fn::MFNetworkEvaluationStorage::get_single_input__full(), GMutableSpan(), blender::bke::TemporaryWriteAttribute::set_internal(), and blender::fn::MFNetworkEvaluationStorage::~MFNetworkEvaluationStorage().
|
inline |
Definition at line 151 of file FN_generic_span.hh.
References BLI_assert, data_, blender::fn::CPPType::is(), and T.
Referenced by blender::bke::WriteAttribute::get_span(), blender::bke::TypedWriteAttribute< T >::get_span(), blender::bke::WriteAttribute::get_span_for_write_only(), blender::bke::TypedWriteAttribute< T >::get_span_for_write_only(), blender::nodes::interpolate_existing_attributes(), blender::nodes::randomize_attribute_on_component(), and blender::fn::tests::TEST().