Skip to content

Engine → Assets → asset_importer.h

sub_asset_table

Syntax

class CONJURE_API sub_asset_table

Constructors

AccessSignatureDescription
publicsub_asset_table();
publicexplicit sub_asset_table( std::vector<sub_asset_entry> existing);

Important

Copy constructor and assignment has been deleted.

Destructors

AccessSignatureDescription
public~sub_asset_table();

Variables

AccessNameTypeDefaultDescription
privatemChangedboolfalse
privatemEntriesstd::vector<sub_asset_entry>{}
privatemMutexmutable std::mutex{}

Functions

Public

changed

[[nodiscard]] bool changed() const;

True when id_for allocated at least one new uuid.

entries

[[nodiscard]] std::vector<sub_asset_entry> entries() const;

Every entry, sorted by sub path.

id_for

[[nodiscard]] asset_id id_for(
    std::string_view subPath);

The uuid for a sub path, allocating a new one on first use.