Blender V5.0
blender::nodes::List Class Reference

#include <NOD_geometry_nodes_list.hh>

Inherits blender::ImplicitSharingMixin.

Classes

class  ArrayData
class  SingleData

Public Types

using DataVariant = std::variant<ArrayData, SingleData>

Public Member Functions

 List (const CPPType &type, DataVariant data, const int64_t size)
const DataVariantdata () const
const CPPTypecpp_type () const
int64_t size () const
void delete_self () override
GVArray varray () const
template<typename T>
VArray< Tvarray () const
Public Member Functions inherited from 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 ListPtr create (const CPPType &type, DataVariant data, const int64_t size)

Detailed Description

Definition at line 16 of file NOD_geometry_nodes_list.hh.

Member Typedef Documentation

◆ DataVariant

Definition at line 36 of file NOD_geometry_nodes_list.hh.

Constructor & Destructor Documentation

◆ List()

blender::nodes::List::List ( const CPPType & type,
DataVariant data,
const int64_t size )
inlineexplicit

Definition at line 44 of file NOD_geometry_nodes_list.hh.

References data(), and size().

Member Function Documentation

◆ cpp_type()

const CPPType & blender::nodes::List::cpp_type ( ) const
inline

◆ create()

ListPtr blender::nodes::List::create ( const CPPType & type,
DataVariant data,
const int64_t size )
inlinestatic

◆ data()

◆ delete_self()

void blender::nodes::List::delete_self ( )
overridevirtual

Implements blender::ImplicitSharingMixin.

Definition at line 122 of file geometry_nodes_list.cc.

◆ size()

◆ varray() [1/2]

template<typename T>
VArray< T > blender::nodes::List::varray ( ) const
inline

Definition at line 80 of file NOD_geometry_nodes_list.hh.

References T, blender::GVArray::typed(), and varray().

◆ varray() [2/2]

GVArray blender::nodes::List::varray ( ) const

Access the list as virtual array.

Definition at line 127 of file geometry_nodes_list.cc.

References BLI_assert_unreachable, blender::GVArray::from_single_ref(), and blender::GVArray::from_span().

Referenced by varray().


The documentation for this class was generated from the following files: