Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
Fiber::FunctionalCreatorBase Class Referenceabstract
Inheritance diagram for Fiber::FunctionalCreatorBase:
MemCore::AlzheimerCreator< Fiber::MemBase, CreativeArrayBase > MemCore::Creator< RefType, MyCreatorBase > MemCore::CreatorBase< Domain > Fiber::FunctionalCreator Fiber::LeaftletCreator

Public Types

using Base_t = AlzheimerCreator<MemBase, CreativeArrayBase>

Public Member Functions

 FunctionalCreatorBase (bool DataReProductionIsCheaperThanFunctor=true, const MemCore::WeakPtr< MemCore::Cache > &theCache=MemCore::Cache::MemCache())
virtual RefPtr< MemBasecompute () const =0
bool isUnderCreation () const override
bool request (const result &R) override
Public Member Functions inherited from MemCore::Creator< RefType, MyCreatorBase >
 Creator (const RefPtr< RefType > &D, const WCachePtr &MyCache)
RefPtr< RefType > get () const override
CacheablePtr getCacheable () const override
const type_info & getType () override
bool hasData () const override
Creature::ReasonForReleasal release () override
bool supersede (const RefPtr< Domain > &NewData, bool CreateAsOld=false)
RefPtr< RefType > take () override
Public Member Functions inherited from MemCore::CreatorBase< Domain >
RefPtr< Domain > create (bool CreateAsOld=false)
RefPtr< Domain > createAsOld ()
 CreatorBase (const WCachePtr &theCache)
RefPtr< Domain > get_or_request (const result &R=nullptr)
bool isUnderCreation () const override
virtual bool request (const result &R=nullptr)

Public Attributes

bool DataProductionIsCheaperThanFunctor = true

Protected Member Functions

RefPtr< MemBaseproduce () override
 Called from CreatureBase<MemBase>::create() : Actually allocate memory and load data from disc, if not yet loaded.
Protected Member Functions inherited from MemCore::Creator< RefType, MyCreatorBase >
RefPtr< RefType > produce () override

Protected Attributes

std::future< RefPtr< MemBase > > AsynchroneouslyComputedData
std::mutex production_mutex