Blender V5.3
blender::LibraryForeachIDData Struct Reference

Public Member Functions

 BLI_LINKSTACK_DECLARE (ids_todo, ID *)

Public Attributes

Main * bmain
ID * owner_id
ID * self_id
LibraryForeachIDFlag flag
LibraryForeachIDCallbackFlag cb_flag
LibraryForeachIDCallbackFlag cb_flag_clear
FunctionRef< LibraryIDLinkCallback > callback
void * user_data
int status
Set< ID * > * ids_handled

Detailed Description

Definition at line 39 of file lib_query.cc.

Member Function Documentation

◆ BLI_LINKSTACK_DECLARE()

blender::LibraryForeachIDData::BLI_LINKSTACK_DECLARE ( ids_todo ,
ID *  )

Member Data Documentation

◆ bmain

Main* blender::LibraryForeachIDData::bmain

Definition at line 40 of file lib_query.cc.

Referenced by blender::library_foreach_ID_link().

◆ callback

FunctionRef<LibraryIDLinkCallback> blender::LibraryForeachIDData::callback

Function to call for every ID pointers of current processed data, and its opaque user data pointer.

Definition at line 63 of file lib_query.cc.

◆ cb_flag

LibraryForeachIDCallbackFlag blender::LibraryForeachIDData::cb_flag

Generic flags to be passed to all callback calls for current processed data.

Definition at line 55 of file lib_query.cc.

Referenced by blender::library_foreach_ID_link().

◆ cb_flag_clear

LibraryForeachIDCallbackFlag blender::LibraryForeachIDData::cb_flag_clear

Callback flags that are forbidden for all callback calls for current processed data.

Definition at line 57 of file lib_query.cc.

Referenced by blender::library_foreach_ID_link().

◆ flag

LibraryForeachIDFlag blender::LibraryForeachIDData::flag

Flags controlling the behavior of the 'foreach id' looping code.

Definition at line 53 of file lib_query.cc.

◆ ids_handled

Set<ID *>* blender::LibraryForeachIDData::ids_handled

Definition at line 73 of file lib_query.cc.

◆ owner_id

ID* blender::LibraryForeachIDData::owner_id

'Real' ID, the one that might be in bmain, only differs from self_id when the later is a private one.

Definition at line 45 of file lib_query.cc.

◆ self_id

ID* blender::LibraryForeachIDData::self_id

ID from which the current ID pointer is being processed. It may be an embedded ID like master collection or root node tree.

Definition at line 50 of file lib_query.cc.

◆ status

int blender::LibraryForeachIDData::status

Store the returned value from the callback, to decide how to continue the processing of ID pointers for current data.

Definition at line 69 of file lib_query.cc.

◆ user_data

void* blender::LibraryForeachIDData::user_data

Definition at line 64 of file lib_query.cc.


The documentation for this struct was generated from the following file: