Pioneer
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
GalaxyObjectCache< T, CompareT > Class Template Reference

#include <GalaxyCache.h>

Classes

class  Slave
 

Public Types

typedef std::vector< SystemPathPathVector
 
typedef std::map< SystemPath, RefCountedPtr< T >, CompareT > CacheMap
 
typedef std::map< SystemPath, T *, CompareT > AtticMap
 
typedef std::function< void()> CacheFilledCallback
 

Public Member Functions

 GalaxyObjectCache (Galaxy *galaxy)
 
 ~GalaxyObjectCache ()
 
RefCountedPtr< T > GetCached (const SystemPath &path)
 
RefCountedPtr< T > GetIfCached (const SystemPath &path)
 
void ClearCache ()
 
bool IsEmpty ()
 
void OutputCacheStatistics (bool reset=true)
 
RefCountedPtr< SlaveNewSlaveCache ()
 

Static Public Attributes

static const std::string CACHE_NAME
 

Member Typedef Documentation

◆ AtticMap

template<typename T , typename CompareT >
typedef std::map<SystemPath, T *, CompareT> GalaxyObjectCache< T, CompareT >::AtticMap

◆ CacheFilledCallback

template<typename T , typename CompareT >
typedef std::function<void()> GalaxyObjectCache< T, CompareT >::CacheFilledCallback

◆ CacheMap

template<typename T , typename CompareT >
typedef std::map<SystemPath, RefCountedPtr<T>, CompareT> GalaxyObjectCache< T, CompareT >::CacheMap

◆ PathVector

template<typename T , typename CompareT >
typedef std::vector<SystemPath> GalaxyObjectCache< T, CompareT >::PathVector

Constructor & Destructor Documentation

◆ GalaxyObjectCache()

template<typename T , typename CompareT >
GalaxyObjectCache< T, CompareT >::GalaxyObjectCache ( Galaxy galaxy)
inline

◆ ~GalaxyObjectCache()

template<typename T , typename CompareT >
GalaxyObjectCache< T, CompareT >::~GalaxyObjectCache

Member Function Documentation

◆ ClearCache()

template<typename T , typename CompareT >
void GalaxyObjectCache< T, CompareT >::ClearCache

◆ GetCached()

template<typename T , typename CompareT >
RefCountedPtr< T > GalaxyObjectCache< T, CompareT >::GetCached ( const SystemPath path)

◆ GetIfCached()

template<typename T , typename CompareT >
RefCountedPtr< T > GalaxyObjectCache< T, CompareT >::GetIfCached ( const SystemPath path)
Here is the call graph for this function:

◆ IsEmpty()

template<typename T , typename CompareT >
bool GalaxyObjectCache< T, CompareT >::IsEmpty ( )
inline

◆ NewSlaveCache()

template<typename T , typename CompareT >
RefCountedPtr< typename GalaxyObjectCache< T, CompareT >::Slave > GalaxyObjectCache< T, CompareT >::NewSlaveCache
Here is the call graph for this function:

◆ OutputCacheStatistics()

template<typename T , typename CompareT >
void GalaxyObjectCache< T, CompareT >::OutputCacheStatistics ( bool  reset = true)
Here is the call graph for this function:

Member Data Documentation

◆ CACHE_NAME

template<typename T , typename CompareT >
const std::string GalaxyObjectCache< T, CompareT >::CACHE_NAME
static

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