Adobe.com
Contents Suites Classes Class Index Member Index

ai::CacheScopeManager< Cache_t > Class Template Reference

CacheScopeManager: Instantiate this class to ensure a valid Cache. More...

#include <IAIScopedCache.hpp>

Inheritance diagram for ai::CacheScopeManager< Cache_t >:
ai::CacheScopeSuppressor< Cache_t >

List of all members.

Public Member Functions

 CacheScopeManager ()

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 >
ai::CacheScopeManager< Cache_t >::CacheScopeManager (  )  [inline]

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


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2014 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks