|
My Project
|
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 | |
| 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 79 of file productcache.hh.
| TProductCache< ProductPtr >::TProductCache | ( | const std::string & | descriptor | ) |
Constructor
Definition at line 148 of file productcache.hh.
References CProductCache::CProductCache().
| 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 166 of file productcache.hh.
References get(), and CProductCache::is_enabled().
| ProductPtr TProductCache< ProductPtr >::get | ( | const std::string & | name | ) | const |
Get a profuct if it is cached,
| name | the initializer string |
Definition at line 154 of file productcache.hh.
Referenced by add().