Blender V5.0
blender::asset_system::AssetCatalogTreeItem Class Reference

#include <AS_asset_catalog_tree.hh>

Public Types

using ChildMap = std::map<std::string, AssetCatalogTreeItem>
using ItemIterFn = FunctionRef<void(const AssetCatalogTreeItem &)>

Public Member Functions

 AssetCatalogTreeItem (StringRef name, CatalogID catalog_id, StringRef simple_name, const AssetCatalogTreeItem *parent=nullptr)
CatalogID get_catalog_id () const
StringRefNull get_simple_name () const
StringRefNull get_name () const
bool has_unsaved_changes () const
AssetCatalogPath catalog_path () const
int count_parents () const
bool has_children () const
void foreach_child (ItemIterFn callback) const

Friends

class AssetCatalogTree

Detailed Description

Representation of a catalog path in the AssetCatalogTree.

Definition at line 28 of file AS_asset_catalog_tree.hh.

Member Typedef Documentation

◆ ChildMap

Container for child items. Uses a #std::map to keep items ordered by their name (i.e. their last catalog component).

Definition at line 32 of file AS_asset_catalog_tree.hh.

◆ ItemIterFn

Constructor & Destructor Documentation

◆ AssetCatalogTreeItem()

blender::asset_system::AssetCatalogTreeItem::AssetCatalogTreeItem ( StringRef name,
CatalogID catalog_id,
StringRef simple_name,
const AssetCatalogTreeItem * parent = nullptr )

Member Function Documentation

◆ catalog_path()

AssetCatalogPath blender::asset_system::AssetCatalogTreeItem::catalog_path ( ) const

◆ count_parents()

int blender::asset_system::AssetCatalogTreeItem::count_parents ( ) const

◆ foreach_child()

◆ get_catalog_id()

CatalogID blender::asset_system::AssetCatalogTreeItem::get_catalog_id ( ) const

◆ get_name()

◆ get_simple_name()

StringRefNull blender::asset_system::AssetCatalogTreeItem::get_simple_name ( ) const

Definition at line 31 of file asset_catalog_tree.cc.

◆ has_children()

bool blender::asset_system::AssetCatalogTreeItem::has_children ( ) const

◆ has_unsaved_changes()

bool blender::asset_system::AssetCatalogTreeItem::has_unsaved_changes ( ) const

Definition at line 35 of file asset_catalog_tree.cc.

◆ AssetCatalogTree

friend class AssetCatalogTree
friend

Definition at line 50 of file AS_asset_catalog_tree.hh.

References AssetCatalogTree, AssetCatalogTreeItem(), and name.

Referenced by AssetCatalogTree.


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