Castor3D 0.12.0
Multiplatform 3D engine
Types publics | Fonctions membres publiques statiques | Liste de tous les membres
Référence du modèle de la structure castor3d::PtrCacheTraitsBaseT< ResT, KeyT >

#include <CacheModule.hpp>

Graphe d'héritage de castor3d::PtrCacheTraitsBaseT< ResT, KeyT >:
Inheritance graph
[légende]

Types publics

using ElementT = ResT
 
using ElementKeyT = KeyT
 
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) >
 

Fonctions membres publiques statiques

template<typename ... ParametersT>
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)
 

Documentation des définitions de type membres

◆ ElementCacheT

template<typename ResT , typename KeyT >
using castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::ElementCacheT = castor::ResourceCacheBaseT< ElementT, ElementKeyT, PtrCacheTraitsT< ElementT, ElementKeyT > >

◆ ElementCleanerT

template<typename ResT , typename KeyT >
using castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::ElementCleanerT = std::function< void( ElementT & ) >

◆ ElementContT

template<typename ResT , typename KeyT >
using castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::ElementContT = std::unordered_map< ElementKeyT, ElementPtrT >

◆ ElementInitialiserT

template<typename ResT , typename KeyT >
using castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::ElementInitialiserT = std::function< void( ElementT & ) >

◆ ElementKeyT

template<typename ResT , typename KeyT >
using castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::ElementKeyT = KeyT

◆ ElementMergerT

template<typename ResT , typename KeyT >
using castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::ElementMergerT = std::function< void( ElementCacheT const & , ElementContT & , ElementPtrT ) >

◆ ElementObsT

template<typename ResT , typename KeyT >
using castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::ElementObsT = std::weak_ptr< ElementT >

◆ ElementPtrT

template<typename ResT , typename KeyT >
using castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::ElementPtrT = std::shared_ptr< ElementT >

◆ ElementT

template<typename ResT , typename KeyT >
using castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::ElementT = ResT

Documentation des fonctions membres

◆ areElementsEqual() [1/4]

template<typename ResT , typename KeyT >
static bool castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::areElementsEqual ( ElementObsT const &  lhs,
ElementObsT const &  rhs 
)
inlinestatic

◆ areElementsEqual() [2/4]

template<typename ResT , typename KeyT >
static bool castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::areElementsEqual ( ElementObsT const &  lhs,
ElementPtrT const &  rhs 
)
inlinestatic

◆ areElementsEqual() [3/4]

template<typename ResT , typename KeyT >
static bool castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::areElementsEqual ( ElementPtrT const &  lhs,
ElementObsT const &  rhs 
)
inlinestatic

◆ areElementsEqual() [4/4]

template<typename ResT , typename KeyT >
static bool castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::areElementsEqual ( ElementPtrT const &  lhs,
ElementPtrT const &  rhs 
)
inlinestatic

◆ isElementObsNull()

template<typename ResT , typename KeyT >
static bool castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::isElementObsNull ( ElementObsT const &  element)
inlinestatic

◆ makeElement()

template<typename ResT , typename KeyT >
template<typename ... ParametersT>
static ElementPtrT castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::makeElement ( ElementCacheT const &  cache,
ElementKeyT const &  key,
ParametersT &&...  params 
)
inlinestatic

◆ makeElementObs()

template<typename ResT , typename KeyT >
static ElementObsT castor3d::PtrCacheTraitsBaseT< ResT, KeyT >::makeElementObs ( ElementPtrT const &  element)
inlinestatic

La documentation de cette structure a été générée à partir du fichier suivant :