VISH
0.2
|
A Domain-related abstract base class for reference-counted objects which occupy some memory but are able to release it on demand. More...
#include </home/werner/origo/vish/memcore/Creator.hpp>
A Domain-related abstract base class for reference-counted objects which occupy some memory but are able to release it on demand.
MemCore::CreatorBase::CreatorBase | ( | const WCachePtr & | MyCache | ) | [inline] |
Construct with Cache object given.
Note that enableCaching() has to be called explicitly later once a Creator has been associated with this Creature.
virtual RefPtr<Domain> MemCore::CreatorBase::create | ( | ) | [pure virtual] |
Actually create the object, e.g.
load it from disk.
Implemented in Wizt::VBOCreator, MemCore::Creator, Wizt::TextureCreator, Wizt::DisplayListCreator, MyOnDemandDataCreator, and MemCore::AlzheimerCreator.
virtual const type_info& MemCore::CreatorBase::getType | ( | ) | [pure virtual] |
Query the associated value type of this creator object.
This type information can possibly be determined without actually loading any data. Whether or not this is the case is up to the implementation of the child class.
Implemented in MemCore::Creator, Wizt::VBOCreator, Wizt::TextureCreator, MemCore::AlzheimerCreator, Wizt::DisplayListCreator, and MyOnDemandDataCreator.
virtual bool MemCore::CreatorBase::request | ( | const RefPtr< Result > & | ) | [inline, virtual] |
virtual RefPtr<Domain> MemCore::CreatorBase::take | ( | ) | [inline, virtual] |
Take the data out of this creator and yield it as return value.
This function implies a release() once the strong reference pointer to the data object is gone. This creator will no longer keep the data alive.
Reimplemented in MemCore::AlzheimerCreator.