11 #ifndef __SOP_CacheManager__
12 #define __SOP_CacheManager__
67 void alertUnlockSOP(
SOP_Node *unlocker,
75 void alertCookEndSOP(
SOP_Node *node);
82 void alertGeometryChangedSOP(
SOP_Node *node);
89 void alertTouchedSOP(
SOP_Node *node);
100 void setCheckpoint(
const char *mark);
106 void unloadToCheckpoint(
const char *mark);
110 bool hasNewCheckpoint(
const char *mark);
115 void cullToMemory(
int64 amount);
119 void cullToMaxMemory();
122 SOP_CacheData *getData(
int idx)
const;
129 {
return myUnloadState; }
133 {
return myTotalMem; }
137 {
return myMemoryState; }
141 {
return myMaxMemory; }
169 SOP_CacheData *myCheckPointHead, *myCheckPointTail;
173 SOP_CacheData *myLoadedHead, *myLoadedTail;
183 SOP_BaseCache *myBaseCache;
186 bool myDisableMemoryTracking;
GT_API const UT_StringHolder time
SOP_CacheMemoryState getMemoryState() const
Returns the current memory state.
int64 getMaxMemory() const
Returns maximum allowed memory.
SOP_CacheUnloadState getUnloadState() const
**If you just want to fire and args
int64 getTotalMem() const
Returns total used cache memory in bytes.