Blender V4.3
blender::fn::lazy_function::UserData Class Reference

#include <FN_lazy_function.hh>

Inherited by blender::nodes::GeoNodesLFUserData.

Public Member Functions

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

Detailed Description

This allows passing arbitrary data into a lazy-function during execution. 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 94 of file FN_lazy_function.hh.

Constructor & Destructor Documentation

◆ ~UserData()

virtual blender::fn::lazy_function::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::GeoNodesLFUserData.

Definition at line 73 of file lazy_function.cc.


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