|
The Vish Visualization Shell 0.3
Vish
|
A Creator object which forgets its data when memory is going low. More...
#include <elementary/memcore/AlzheimerCreator.hpp>
Additional Inherited Members | |
| Public Member Functions inherited from MemCore::Creator< RefType, MyCreatorBase > | |
| Creator (const RefPtr< RefType > &D, const WCachePtr &MyCache) | |
| Construct a creator with a data object. | |
| RefPtr< RefType > | get () const override |
| A passive function to return the current Data object if it exists. | |
| CacheablePtr | getCacheable () const override |
| A passive function to return the current Data object if it exists. | |
| const type_info & | getType () override |
| It is assumed that the Data object provides a getType() function retrieving the actual operational value type id. | |
| bool | hasData () const override |
| Tell whether data exist here. | |
| Creature::ReasonForReleasal | release () override |
| Release operation, nothing can be done here. | |
| bool | supersede (const RefPtr< Domain > &NewData, bool CreateAsOld=false) |
| Replace the data stored here (if any) by another data set. | |
| RefPtr< RefType > | take () override |
| An active function to take the strong pointer out of here. | |
| Public Member Functions inherited from MemCore::CreatorBase< Domain > | |
| RefPtr< Domain > | create (bool CreateAsOld=false) |
| Actually create the object, using an existing one if existent via the get() function, otherwise calling the virtual produce() function. | |
| RefPtr< Domain > | createAsOld () |
| Get and possibly create data here without touching it, which is useful if the data is required only temporary. | |
| CreatorBase (const WCachePtr &theCache) | |
| Construct with Cache object given. | |
| RefPtr< Domain > | get_or_request (const result &R=nullptr) |
| Asynchronous data access: Get the data if available, otherwise request them if possible and return nullptr. | |
| bool | isUnderCreation () const override |
| return true while a request issued by the producer is still ongoing | |
| virtual bool | request (const result &R=nullptr) |
| Asynchron mode: Request data to be created. | |
| Protected Member Functions inherited from MemCore::Creator< RefType, MyCreatorBase > | |
| Creator (const WCachePtr &MyCache) | |
| Constructor for no data yet. | |
| RefPtr< RefType > | produce () override |
| Object creation function (just returns the object which was specified during construction). | |