Lumiera  0.pre.03
»edit your freedom«
ID< KIND > Class Template Reference

#include "steam/asset.hpp"

Description

template<class KIND>
class steam::asset::ID< KIND >

thin wrapper around a size_t hash ID used as primary key for all Asset objects.

The Template parameter is intended for tagging the ID with type information, causing the compiler to select specialised behaviour for the different kinds of Assets.

See also
Asset
AssetManager::getID generating ID values
asset::Media
ID<asset::Media>
Todo:
it would be desirable to use EntryID instead ///////////////////////////////////////////TICKET #739 : make identification schemes compatible

Definition at line 99 of file asset.hpp.

Public Member Functions

 ID (HashVal id)
 
 ID (const KIND &asset)
 
 operator HashVal () const
 

Static Public Attributes

static ID INVALID = ID{0}
 marker constant denoting a NIL asset
 

Private Attributes

HashVal hash_
 
+ Inheritance diagram for ID< KIND >:
+ Collaboration diagram for ID< KIND >:

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