VISH  0.2
Public Types | Public Member Functions
Wizt::Seagrass Class Reference

The Anemone Cache, called the Seagrass, is based on Anemone objects. More...

#include </home/werner/origo/vish/ocean/Anemonia/Seagrass.hpp>

List of all members.

Public Types

Public Member Functions


Detailed Description

The Anemone Cache, called the Seagrass, is based on Anemone objects.

The Seagrass class manages Anemone objects, which are referred to from creator objects that are stored in application code. All these creator objects are child classes of the AnemoneCreatorBase;

Sea grass meadows are inhabited or visited by a diverse and abundant fish fauna. Resident fishes are typically small, cryptic, and of little commercial value. [...] Some higher vertebrates can also be found in sea grass meadows. [...] Sea grasses have potential for extremely high primary productivity. [...] Sea grasses are extremely efficient at capturing and utilizing nutrients. [...] (source: http://savefloridareefs.com/page2/Seagrassandmangroves.html )


Member Typedef Documentation

The dependencies of an Anemone object are Creatures.

Their important property is that they are MemCore::Intercubes. Once this Intercube dies, it will schedule all cached Anemone objects for deletion as well. However, the Anemone objects will not be deleted immediately, but only scheduled for deletion. The actual deletion must be done via the Seagrass.

The fact that Creature objects are related to cache management as well is of no relevance here, the Creature's cache is independent from the Seagrass. In particular, the Creature used here may refer to RAM objects, while Anemone objects reside on the GPU.


Member Function Documentation

bool Wizt::Seagrass::insert ( const Dependencies_t Dependencies,
const CachedObject_t theAnemoneCreator,
bool  overwriteIfFound = true 
)

Register dependencies for an Anemone Creator.

Once those dependencies die, so will their interface die, deferred destructor objects which tell the Seagrass to delete the respective Anemone objects at next occasion.

int Wizt::Seagrass::lawn ( )

Lawn all the seagrass contained here, i.e.

remove all stored entries. Same as purge() (a more conventional naming).


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