Blender V5.0
blender::fn::UserData Class Reference

#include <FN_user_data.hh>

Inherited by blender::nodes::GeoNodesUserData.

Public Member Functions

virtual ~UserData ()=default
virtual destruct_ptr< LocalUserDataget_local (LinearAllocator<> &allocator)

Detailed Description

This allows passing arbitrary data into a function. For that, UserData has to be subclassed. This mainly exists because it's more type safe than passing a void * with no type information attached.

Some lazy-functions may expect to find a certain type of user data when executed.

Definition at line 28 of file FN_user_data.hh.

Constructor & Destructor Documentation

◆ ~UserData()

virtual blender::fn::UserData::~UserData ( )
virtualdefault

Member Function Documentation

◆ get_local()

destruct_ptr< LocalUserData > UserData::get_local ( LinearAllocator<> & allocator)
virtual

Get thread local data for this user-data and the current thread.

Reimplemented in blender::nodes::GeoNodesUserData.

Definition at line 9 of file user_data.cc.


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