ai::CacheScopeManager< Cache_t > Class Template Reference
CacheScopeManager: Instantiate this class to ensure a valid Cache.
More...
#include <IAIScopedCache.hpp>
List of all members.
Detailed Description
template<typename Cache_t>
class ai::CacheScopeManager< Cache_t >
CacheScopeManager: Instantiate this class to ensure a valid Cache.
CacheScopeManager instances can be safely nested as only one Cache object is created even if multiple CacheScopeManager objects exist. The Cache object is deleted when the last CacheScopeManager destructs. The Cache template parameter can be either one or a combination of the above cache classes or any other class which can be created and destroyed by this class.
Sample usage:
using MyAttribCache = BooleanAttributeCache <DocumentState, ai::unt8>; using MyCacheScopeManager = CacheScopeManager <MyAttribCache>;
Constructor & Destructor Documentation
template<typename Cache_t >
The documentation for this class was generated from the following file: