Castor3D 0.16.0
Multiplatform 3D engine
castor::ResourceCacheTraitsT< ResT, KeyT > Struct Template Reference

Detailed Description

template<typename ResT, typename KeyT>
struct castor::ResourceCacheTraitsT< ResT, KeyT >

Traits structure to specialise a cache behaviour.

Remarks
Must hold:
  • Name: The element type name.
  • ElementT: The resource type.
  • ElementPtrT: The resource pointer type.
  • ElementContT: The resource container type.
  • ElementCacheT: The resource base cache type.
  • ElementInitialiserT: The prototype of the function use to initialise a resource.
  • ElementCleanerT: The prototype of the function use to cleanup a resource.
  • ElementMergerT: The prototype of the function use to merge a cache element into another cache.
  • static ElementPtrT makeElement( ElementKeyT const &, ParametersT && ... ): The element creation function.

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