|
Blender V4.3
|
#include <asset_catalog_collection.hh>
Inherited by blender::asset_system::tests::TestableAssetCatalogCollection.
Public Types | |
| using | OnDuplicateCatalogIdFn |
Public Member Functions | |
| AssetCatalogCollection ()=default | |
| AssetCatalogCollection (const AssetCatalogCollection &other)=delete | |
| AssetCatalogCollection (AssetCatalogCollection &&other) noexcept=default | |
| std::unique_ptr< AssetCatalogCollection > | deep_copy () const |
| void | add_catalogs_from_existing (const AssetCatalogCollection &other, OnDuplicateCatalogIdFn on_duplicate_items) |
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 |
| friend | AssetCatalogService |
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 20 of file asset_catalog_collection.hh.
Definition at line 45 of file asset_catalog_collection.hh.
|
default |
|
delete |
|
defaultnoexcept |
| void blender::asset_system::AssetCatalogCollection::add_catalogs_from_existing | ( | const AssetCatalogCollection & | other, |
| AssetCatalogCollection::OnDuplicateCatalogIdFn | on_duplicate_items ) |
Copy the catalogs from other and append them to this collection. Copies no other data otherwise.
Definition at line 49 of file asset_catalog_collection.cc.
References catalogs_, and blender::asset_system::copy_catalog_map_into_existing().
|
staticprotected |
Definition at line 56 of file asset_catalog_collection.cc.
References BLI_assert_unreachable, copy(), and blender::asset_system::copy_catalog_map_into_existing().
Referenced by deep_copy().
| std::unique_ptr< AssetCatalogCollection > blender::asset_system::AssetCatalogCollection::deep_copy | ( | ) | const |
Definition at line 15 of file asset_catalog_collection.cc.
References catalog_definition_file_, catalogs_, copy(), copy_catalog_map(), deleted_catalogs_, and has_unsaved_changes_.
Referenced by blender::asset_system::tests::TEST_F(), blender::asset_system::tests::TEST_F(), and blender::asset_system::tests::TEST_F().
|
protected |
Definition at line 37 of file asset_catalog_collection.hh.
|
protected |
|
protected |
All catalogs known, except the known-but-deleted ones.
Definition at line 23 of file asset_catalog_collection.hh.
Referenced by add_catalogs_from_existing(), deep_copy(), and blender::asset_system::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 28 of file asset_catalog_collection.hh.
Referenced by deep_copy(), and blender::asset_system::tests::TestableAssetCatalogCollection::get_deleted_catalogs().
|
protected |
Whether any of the catalogs have unsaved changes.
Definition at line 35 of file asset_catalog_collection.hh.
Referenced by deep_copy().