The type specific product cache. More...
#include <mia/core/productcache.hh>
Public Member Functions | |
void | add (const std::string &name, ProductPtr product) |
ProductPtr | get (const std::string &name) const |
TProductCache (const std::string &descriptor) | |
Public Member Functions inherited from CProductCache | |
void | clear () |
clear the cache More... | |
CProductCache (const std::string &name) | |
void | enable_write (bool enable) |
Additional Inherited Members | |
Protected Member Functions inherited from CProductCache | |
bool | is_enabled () const |
The type specific product cache.
ProductPtr | the shared pointer of the product that is actually stored in this cache. |
Definition at line 78 of file productcache.hh.
TProductCache< ProductPtr >::TProductCache | ( | const std::string & | descriptor | ) |
Constructor
Definition at line 145 of file productcache.hh.
void TProductCache< ProductPtr >::add | ( | const std::string & | name, |
ProductPtr | product | ||
) |
Add a product pointer to the cache if the cache is enabled
name | initializer string of the product |
product | the shared pointer of the product to be added |
Definition at line 161 of file productcache.hh.
References CProductCache::is_enabled(), and NS_MIA_END.
ProductPtr TProductCache< ProductPtr >::get | ( | const std::string & | name | ) | const |
Get a profuct if it is cached,
name | the initializer string |
Definition at line 151 of file productcache.hh.