Castor3D 0.12.0
Multiplatform 3D engine
Public Types | Static Public Attributes | List of all members
castor3d::PtrCacheTraitsT< Overlay, castor::String > Struct Reference

#include <OverlayModule.hpp>

Inheritance diagram for castor3d::PtrCacheTraitsT< Overlay, castor::String >:
Inheritance graph
[legend]
Collaboration diagram for castor3d::PtrCacheTraitsT< Overlay, castor::String >:
Collaboration graph
[legend]

Public Types

using ResT = Overlay
 
using KeyT = castor::String
 
using Base = PtrCacheTraitsBaseT< ResT, KeyT >
 
using ElementT = typename Base::ElementT
 
using ElementPtrT = typename Base::ElementPtrT
 
using ElementObsT = typename Base::ElementObsT
 
- Public Types inherited from castor3d::PtrCacheTraitsBaseT< Overlay, castor::String >
using ElementT = Overlay
 
using ElementKeyT = castor::String
 
using ElementPtrT = std::shared_ptr< ElementT >
 
using ElementObsT = std::weak_ptr< ElementT >
 
using ElementContT = std::unordered_map< ElementKeyT, ElementPtrT >
 
using ElementCacheT = castor::ResourceCacheBaseT< ElementT, ElementKeyT, PtrCacheTraitsT< ElementT, ElementKeyT > >
 
using ElementInitialiserT = std::function< void(ElementT &) >
 
using ElementCleanerT = std::function< void(ElementT &) >
 
using ElementMergerT = std::function< void(ElementCacheT const &, ElementContT &, ElementPtrT) >
 

Static Public Attributes

static C3D_API const castor::String Name
 

Additional Inherited Members

- Static Public Member Functions inherited from castor3d::PtrCacheTraitsBaseT< Overlay, castor::String >
static ElementPtrT makeElement (ElementCacheT const &cache, ElementKeyT const &key, ParametersT &&... params)
 
static ElementObsT makeElementObs (ElementPtrT const &element)
 
static bool areElementsEqual (ElementObsT const &lhs, ElementObsT const &rhs)
 
static bool areElementsEqual (ElementObsT const &lhs, ElementPtrT const &rhs)
 
static bool areElementsEqual (ElementPtrT const &lhs, ElementObsT const &rhs)
 
static bool areElementsEqual (ElementPtrT const &lhs, ElementPtrT const &rhs)
 
static bool isElementObsNull (ElementObsT const &element)
 

Detailed Description

Helper structure to specialise a cache behaviour.

Remarks
Specialisation for Overlay.

Member Typedef Documentation

◆ Base

using castor3d::PtrCacheTraitsT< Overlay, castor::String >::Base = PtrCacheTraitsBaseT< ResT, KeyT >

◆ ElementObsT

using castor3d::PtrCacheTraitsT< Overlay, castor::String >::ElementObsT = typename Base::ElementObsT

◆ ElementPtrT

using castor3d::PtrCacheTraitsT< Overlay, castor::String >::ElementPtrT = typename Base::ElementPtrT

◆ ElementT

using castor3d::PtrCacheTraitsT< Overlay, castor::String >::ElementT = typename Base::ElementT

◆ KeyT

using castor3d::PtrCacheTraitsT< Overlay, castor::String >::KeyT = castor::String

◆ ResT

using castor3d::PtrCacheTraitsT< Overlay, castor::String >::ResT = Overlay

Member Data Documentation

◆ Name

C3D_API const castor::String castor3d::PtrCacheTraitsT< Overlay, castor::String >::Name
static

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