8 #ifndef __SIM_Cache_h__
9 #define __SIM_Cache_h__
20 class SIM_SimulationState;
21 template <
typename T>
class UT_Array;
49 void cacheAndAdvance();
65 bool deleteAfterTime(
const SIM_Time &time);
73 void clearForDestruction();
80 const SIM_Time &getCurrentTime()
const;
83 const SIM_Time &getEarliestTime()
const;
84 const SIM_Time &getLatestTime()
const;
88 SIM_SimulationState &getCurrentSimulationObjects()
const;
99 bool allowinterpolation);
107 bool allowinterpolation);
121 int getObjectsAtPastTimes(
124 const int num_objects,
130 int getRelationshipsAtPastTimes(
155 void clearInterpolatedObjects(
160 void postSimulationStep();
164 void loadFromDisk(SIM_CacheEntry *entry);
167 void ensureCacheCompliesWithOptions();
170 void clearInterpolatedObjects(
bool clearsubsteps);
175 bool allowinterpolation,
185 SIM_CacheEntry *getInitialEntry();
187 void clearInitialEntry();
189 SIM_CacheEntry *getCurrentEntry()
const;
191 void setCurrentEntry(SIM_CacheEntry *newentry);
196 SIM_CacheEntry *myCurrentEntry;
197 SIM_CacheEntry *myInitialEntry;
GLsizei GLenum GLsizei GLsizei GLuint memory
GT_API const UT_StringHolder time
Holds pointers to a number of SIM_Object objects.
This class stores all the caching options used by the SIM_Cache.