VISH
0.2
|
The Anemone Cache, called the Seagrass, is based on Anemone objects. More...
#include </home/werner/origo/vish/ocean/Anemonia/Seagrass.hpp>
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 )
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.
bool Wizt::Seagrass::insert | ( | const Dependencies_t & | Dependencies, |
const CachedObject_t & | theAnemoneCreator, | ||
bool | overwriteIfFound = true |
||
) |
int Wizt::Seagrass::lawn | ( | ) |
Lawn all the seagrass contained here, i.e.
remove all stored entries. Same as purge() (a more conventional naming).