Blender  V3.3
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
blender::bke::AssetCatalogCollection Class Reference

#include <BKE_asset_catalog.hh>

Inheritance diagram for blender::bke::AssetCatalogCollection:
blender::bke::tests::TestableAssetCatalogCollection

Public Member Functions

 AssetCatalogCollection ()=default
 
 AssetCatalogCollection (const AssetCatalogCollection &other)=delete
 
 AssetCatalogCollection (AssetCatalogCollection &&other) noexcept=default
 
std::unique_ptr< AssetCatalogCollectiondeep_copy () const
 

Static Protected Member Functions

static OwningAssetCatalogMap copy_catalog_map (const OwningAssetCatalogMap &orig)
 

Protected Attributes

OwningAssetCatalogMap catalogs_
 
OwningAssetCatalogMap deleted_catalogs_
 
std::unique_ptr< AssetCatalogDefinitionFilecatalog_definition_file_
 
bool has_unsaved_changes_ = false
 

Detailed Description

All catalogs that are owned by a single asset library, and managed by a single instance of #AssetCatalogService. The undo system for asset catalog edits contains historical copies of this struct.

Definition at line 252 of file BKE_asset_catalog.hh.

Constructor & Destructor Documentation

◆ AssetCatalogCollection() [1/3]

blender::bke::AssetCatalogCollection::AssetCatalogCollection ( )
default

◆ AssetCatalogCollection() [2/3]

blender::bke::AssetCatalogCollection::AssetCatalogCollection ( const AssetCatalogCollection other)
delete

◆ AssetCatalogCollection() [3/3]

blender::bke::AssetCatalogCollection::AssetCatalogCollection ( AssetCatalogCollection &&  other)
defaultnoexcept

Member Function Documentation

◆ copy_catalog_map()

OwningAssetCatalogMap blender::bke::AssetCatalogCollection::copy_catalog_map ( const OwningAssetCatalogMap orig)
staticprotected

◆ deep_copy()

std::unique_ptr< AssetCatalogCollection > blender::bke::AssetCatalogCollection::deep_copy ( ) const

Member Data Documentation

◆ catalog_definition_file_

std::unique_ptr<AssetCatalogDefinitionFile> blender::bke::AssetCatalogCollection::catalog_definition_file_
protected

◆ catalogs_

OwningAssetCatalogMap blender::bke::AssetCatalogCollection::catalogs_
protected

All catalogs known, except the known-but-deleted ones.

Definition at line 264 of file BKE_asset_catalog.hh.

Referenced by deep_copy(), and blender::bke::tests::TestableAssetCatalogCollection::get_catalogs().

◆ deleted_catalogs_

OwningAssetCatalogMap blender::bke::AssetCatalogCollection::deleted_catalogs_
protected

Catalogs that have been deleted. They are kept around so that the load-merge-save of catalog definition files can actually delete them if they already existed on disk (instead of the merge operation resurrecting them).

Definition at line 269 of file BKE_asset_catalog.hh.

Referenced by deep_copy(), and blender::bke::tests::TestableAssetCatalogCollection::get_deleted_catalogs().

◆ has_unsaved_changes_

bool blender::bke::AssetCatalogCollection::has_unsaved_changes_ = false
protected

Whether any of the catalogs have unsaved changes.

Definition at line 276 of file BKE_asset_catalog.hh.

Referenced by deep_copy().


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