VISH  0.2
Classes | Public Member Functions
MemCore::CreatorBase Class Reference

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>

List of all members.

Classes

Public Member Functions


Detailed Description

A Domain-related abstract base class for reference-counted objects which occupy some memory but are able to release it on demand.

Note:
CreatorBase(R) is a registered trademark of CreatorCo.com. The nomenclature used within the MemCore library is unrelated to this webservice.

Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Asynchron mode: Hm.

Data seem not to be available, i.e. the create() function return a null ptr. So, request creating them. Returns false if that is not possible. If create() returned false, and the requestCreation() as well, then we have a real problem.

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.


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