Blender
V3.3
|
#include <BKE_asset_catalog.hh>
Public Member Functions | |
AssetCatalogCollection ()=default | |
AssetCatalogCollection (const AssetCatalogCollection &other)=delete | |
AssetCatalogCollection (AssetCatalogCollection &&other) noexcept=default | |
std::unique_ptr< AssetCatalogCollection > | deep_copy () const |
Static Protected Member Functions | |
static OwningAssetCatalogMap | copy_catalog_map (const OwningAssetCatalogMap &orig) |
Protected Attributes | |
OwningAssetCatalogMap | catalogs_ |
OwningAssetCatalogMap | deleted_catalogs_ |
std::unique_ptr< AssetCatalogDefinitionFile > | catalog_definition_file_ |
bool | has_unsaved_changes_ = false |
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.
|
default |
|
delete |
|
defaultnoexcept |
|
staticprotected |
Definition at line 661 of file blenkernel/intern/asset_catalog.cc.
References copy(), and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().
Referenced by deep_copy().
std::unique_ptr< AssetCatalogCollection > blender::bke::AssetCatalogCollection::deep_copy | ( | ) | const |
Definition at line 645 of file blenkernel/intern/asset_catalog.cc.
References catalog_definition_file_, catalogs_, copy(), copy_catalog_map(), deleted_catalogs_, and has_unsaved_changes_.
Referenced by blender::bke::tests::TEST_F().
|
protected |
Definition at line 273 of file BKE_asset_catalog.hh.
Referenced by blender::bke::tests::TestableAssetCatalogCollection::allocate_catalog_definition_file(), deep_copy(), and blender::bke::tests::TestableAssetCatalogCollection::get_catalog_definition_file().
|
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().
|
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().
|
protected |
Whether any of the catalogs have unsaved changes.
Definition at line 276 of file BKE_asset_catalog.hh.
Referenced by deep_copy().