Blender V5.3
blender::FileListInternEntry Struct Reference

#include <filelist_intern.hh>

Classes

struct  [struct].local_data

Public Member Functions

asset_system::AssetRepresentation * get_asset () const

Public Attributes

FileListInternEntry * next = nullptr
FileListInternEntry * prev = nullptr
FileUID uid = 0
eFileSel_File_Types typeflag = eFileSel_File_Types(0)
int blentype = 0
char * relpath = nullptr
char * redirection_path = nullptr
const char * name = nullptr
bool free_name = false
struct  local_data
std::weak_ptr< asset_system::AssetRepresentation > asset
bool blenderlib_has_no_preview = false
eFileAttributes attributes = eFileAttributes(0)
BLI_stat_t st = {0}

Detailed Description

Definition at line 48 of file filelist_intern.hh.

Member Function Documentation

◆ get_asset()

asset_system::AssetRepresentation * blender::FileListInternEntry::get_asset ( ) const
inline

Be careful not to use the returned asset pointer in a context where it might be dangling, e.g. because the file list or the asset library were destroyed.

Definition at line 98 of file filelist_intern.hh.

References asset, and blender::BLI_assert().

Referenced by blender::compare_asset_catalog(), blender::fileentry_uiname(), blender::filelist_entry_get_asset_representation(), blender::filelist_file_create_entry(), blender::filelist_file_internal_get_asset_data(), blender::filelist_readjob_list_lib_add_datablock(), and blender::is_filtered_asset().

Member Data Documentation

◆ asset

std::weak_ptr<asset_system::AssetRepresentation> blender::FileListInternEntry::asset

References an asset in the asset library storage. The file list inserts this asset representation into the library, and removes it again when the file list is destructed. In that sense it manages the asset but doesn't own it.

Weak pointer so access is protected in case the asset library gets destructed externally.

Definition at line 85 of file filelist_intern.hh.

Referenced by blender::filelist_intern_entry_free(), blender::filelist_readjob_list_lib_add_datablock(), blender::filelist_readjob_main_assets_add_items(), get_asset(), and blender::remote_asset_library_refresh_online_assets_status().

◆ attributes

◆ blenderlib_has_no_preview

bool blender::FileListInternEntry::blenderlib_has_no_preview = false

◆ blentype

◆ free_name

bool blender::FileListInternEntry::free_name = false

◆ local_data

◆ name

◆ next

FileListInternEntry* blender::FileListInternEntry::next = nullptr

Definition at line 49 of file filelist_intern.hh.

◆ prev

FileListInternEntry * blender::FileListInternEntry::prev = nullptr

Definition at line 49 of file filelist_intern.hh.

◆ redirection_path

char* blender::FileListInternEntry::redirection_path = nullptr

◆ relpath

◆ st

◆ typeflag

◆ uid


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