|
Blender V5.3
|
#include <NOD_geometry_nodes_list.hh>
Inherits blender::blender::ImplicitSharingMixin.
Classes | |
| class | ArrayData |
| class | SingleData |
Public Types | |
| using | DataVariant = std::variant<ArrayData, SingleData> |
Public Member Functions | |
| GList ()=delete | |
| GList (const CPPType &type) | |
| GList (const CPPType &type, DataVariant data, const int64_t size) | |
| DataVariant & | data () |
| const DataVariant & | data () const |
| const CPPType & | cpp_type () const |
| int64_t | size () const |
| std::variant< GSpan, GPointer > | values () const |
| std::variant< GMutableSpan, GMutablePointer > | values_for_write () |
| void | delete_self () override |
| GListPtr | copy () const |
| GVArray | varray () const |
| void | count_memory (MemoryCounter &memory) const |
| void | ensure_owns_direct_data () |
| bool | owns_direct_data () const |
| template<typename T> | |
| const List< T > & | typed () const |
| template<typename T> | |
| List< T > & | typed () |
| Public Member Functions inherited from blender::blender::ImplicitSharingInfo | |
| virtual | ~ImplicitSharingInfo () |
| bool | is_mutable () const |
| bool | is_expired () const |
| void | add_user () const |
| void | add_weak_user () const |
| void | tag_ensured_mutable () const |
| int64_t | version () const |
| int | strong_users () const |
| void | remove_user_and_delete_if_last () const |
| void | remove_weak_user_and_delete_if_last () const |
Static Public Member Functions | |
| static GListPtr | create (const CPPType &type, DataVariant data, const int64_t size) |
| template<typename ContainerT> | |
| static GListPtr | from_container (ContainerT &&container) |
| static GListPtr | from_garray (GArray<> array) |
| static GListPtr | from_single (GPointer value, int64_t size) |
Definition at line 22 of file NOD_geometry_nodes_list.hh.
| using blender::nodes::GList::DataVariant = std::variant<ArrayData, SingleData> |
Definition at line 58 of file NOD_geometry_nodes_list.hh.
|
delete |
|
inline |
Definition at line 71 of file NOD_geometry_nodes_list.hh.
References GList().
| blender::nodes::GList::GList | ( | const CPPType & | type, |
| DataVariant | data, | ||
| const int64_t | size ) |
Definition at line 258 of file geometry_nodes_list.cc.
| GListPtr blender::nodes::GList::copy | ( | ) | const |
Definition at line 80 of file geometry_nodes_list.cc.
References create().
| void blender::nodes::GList::count_memory | ( | MemoryCounter & | memory | ) | const |
Definition at line 97 of file geometry_nodes_list.cc.
|
inline |
Definition at line 218 of file NOD_geometry_nodes_list.hh.
Referenced by blender::bke::detail::SocketValueVariantTypeInfo::is_interpretable_as_fn(), blender::geometry::mix_socket_values_same_type(), blender::nodes::node_geo_construct_curves_cc::node_geo_exec(), blender::bke::detail::SocketValueVariantTypeInfo::try_convert_fn(), typed(), and typed().
|
static |
Definition at line 263 of file geometry_nodes_list.cc.
References data(), blender::nodes::GListPtr::GListPtr(), and size().
Referenced by copy(), blender::nodes::create_repeated_list(), blender::bke::bake::deserialize_value_list(), blender::nodes::node_geo_filter_list_cc::filter_list(), from_container(), from_garray(), blender::nodes::node_geo_field_to_list_cc::node_geo_exec(), blender::nodes::node_geo_sort_list_cc::node_geo_exec(), and blender::bke::socket_value_visitor::tests::TEST_F().
|
inline |
Definition at line 208 of file NOD_geometry_nodes_list.hh.
Referenced by create(), blender::nodes::GList::SingleData::ForValue(), and GList().
|
inline |
Definition at line 213 of file NOD_geometry_nodes_list.hh.
|
overridevirtual |
Implements blender::blender::ImplicitSharingMixin.
Definition at line 75 of file geometry_nodes_list.cc.
| void blender::nodes::GList::ensure_owns_direct_data | ( | ) |
Definition at line 109 of file geometry_nodes_list.cc.
References blender::ImplicitSharingPtr< T, IsStrong >::ensure_mutable_inplace(), blender::bke::SocketValueVariant::ensure_owns_direct_data(), blender::nodes::Bundle::ensure_owns_direct_data(), and typed().
|
inlinestatic |
Definition at line 188 of file NOD_geometry_nodes_list.hh.
References create(), blender::ImplicitSharedValue< T >::data, blender::CPPType::get(), blender::ImplicitSharingPtr< T, IsStrong >::ImplicitSharingPtr, and T.
Referenced by blender::nodes::execute_multi_function_on_value_variant__list_individual(), blender::nodes::List< T >::from_container(), blender::nodes::node_geo_closure_to_list_cc::node_geo_exec(), blender::nodes::node_geo_collection_children_cc::node_geo_exec(), blender::nodes::node_geo_combine_list_cc::node_geo_exec(), blender::nodes::node_geo_get_attribute_names_cc::node_geo_exec(), blender::nodes::node_geo_get_grid_names_cc::node_geo_exec(), blender::nodes::node_geo_get_nested_bundle_paths_cc::node_geo_exec(), blender::nodes::node_geo_transfer_attributes_cc::node_geo_exec(), blender::bke::bake::tests::TEST_F(), and blender::bke::socket_value_visitor::tests::TEST_F().
Definition at line 268 of file geometry_nodes_list.cc.
References blender::nodes::array_data_from_garray(), create(), array< T, alignment >::size(), and size().
Referenced by blender::nodes::create_repeated_list(), blender::bke::bake::deserialize_value_list(), blender::nodes::evaluate_field_to_list(), blender::nodes::execute_multi_function_on_value_variant__list(), blender::nodes::node_geo_filter_list_cc::filter_list(), blender::nodes::node_geo_closure_to_list_cc::node_geo_exec(), blender::nodes::node_geo_combine_list_cc::node_geo_exec(), blender::nodes::node_geo_filter_list_cc::node_geo_exec(), and blender::nodes::node_geo_geometry_materials::node_geo_exec().
Definition at line 275 of file geometry_nodes_list.cc.
References blender::nodes::GList::SingleData::ForValue(), size(), and blender::GPointer::type().
| bool blender::nodes::GList::owns_direct_data | ( | ) | const |
Definition at line 130 of file geometry_nodes_list.cc.
References blender::Span< T >::begin(), BLI_assert_unreachable_static_t, blender::Span< T >::end(), blender::nodes::Bundle::owns_direct_data(), T, typed(), and values().
|
inline |
Definition at line 223 of file NOD_geometry_nodes_list.hh.
Referenced by blender::nodes::GList::ArrayData::count_memory(), create(), blender::nodes::execute_multi_function_on_value_variant__list(), blender::nodes::GList::ArrayData::ForConstructed(), blender::nodes::GList::ArrayData::ForDefaultValue(), blender::nodes::GList::ArrayData::ForUninitialized(), blender::nodes::GList::ArrayData::ForValue(), from_garray(), from_single(), GList(), blender::nodes::GList::ArrayData::span_for_write(), and blender::bke::detail::SocketValueVariantTypeInfo::try_convert_fn().
Definition at line 235 of file NOD_geometry_nodes_list.hh.
References blender::BLI_assert(), cpp_type(), and GList().
Get a typed reference to this field. Note that Field<T> happens to be identical to GField on a bit-level. So this is just a cast.
Definition at line 228 of file NOD_geometry_nodes_list.hh.
References blender::BLI_assert(), cpp_type(), and GList().
Referenced by ensure_owns_direct_data(), blender::nodes::node_geo_construct_curves_cc::node_geo_exec(), and owns_direct_data().
Access values stored in the list. This is a variant because lists support different storage backends and more may be added in the future.
Definition at line 234 of file geometry_nodes_list.cc.
References BLI_assert_unreachable, blender::GPointer::GPointer(), and blender::GSpan::GSpan().
Referenced by owns_direct_data(), and blender::bke::detail::SocketValueVariantTypeInfo::try_convert_fn().
| std::variant< GMutableSpan, GMutablePointer > blender::nodes::GList::values_for_write | ( | ) |
Definition at line 246 of file geometry_nodes_list.cc.
References BLI_assert_unreachable.
Referenced by blender::geometry::mix_socket_values_same_type().
| GVArray blender::nodes::GList::varray | ( | ) | const |
Access the list as virtual array.
Definition at line 85 of file geometry_nodes_list.cc.
References BLI_assert_unreachable, blender::GVArray::from_single_ref(), blender::GVArray::from_span(), and blender::GSpan::GSpan().
Referenced by blender::nodes::node_geo_filter_list_cc::node_geo_exec().