This class stores all the caching options used by the SIM_Cache.
More...
#include <SIM_CacheOptions.h>
This class stores all the caching options used by the SIM_Cache.
Definition at line 16 of file SIM_CacheOptions.h.
SIM_CacheOptions::SIM_CacheOptions |
( |
| ) |
|
Constructor sets up default caching options.
bool SIM_CacheOptions::getAllowSaveSubsteps |
( |
| ) |
const |
Returns whether or not cache should save substep data.
bool SIM_CacheOptions::getAllowSaveToDisk |
( |
| ) |
const |
Returns whether or not cache entries can be sent to disk.
int SIM_CacheOptions::getCheckpointSpacing |
( |
| ) |
const |
|
inline |
int SIM_CacheOptions::getExplicitHistory |
( |
| ) |
const |
|
inline |
Returns the name of the initial state file.
bool SIM_CacheOptions::getIsCacheEnabled |
( |
| ) |
const |
Returns whether or not caching is enabled.
int64 SIM_CacheOptions::getMaxCacheMemSize |
( |
| ) |
const |
Returns the maximum memory footprint for all cached data.
bool SIM_CacheOptions::getUseExplicit |
( |
| ) |
const |
|
inline |
void SIM_CacheOptions::setAllowSaveSubsteps |
( |
bool |
allow | ) |
|
Sets whether or not cache should save substep data.
void SIM_CacheOptions::setAllowSaveToDisk |
( |
bool |
allow | ) |
|
Sets whether or not cache entries can be saved to disk.
Determines if we compress our .sim files. Compression can be very slow.
Definition at line 45 of file SIM_CacheOptions.h.
void SIM_CacheOptions::setExplicitCache |
( |
bool |
useexplicit, |
|
|
const char * |
explicitfname, |
|
|
int |
history, |
|
|
int |
checkpointspacing |
|
) |
| |
Determines if we are overriding the cache files with an explicit list of cache files. These will always be saved when added and only deleted according to history and checkpoint spacing This is also used when we are a player. When we are a player history is set to 0 and the cache files are never deleted.
void SIM_CacheOptions::setInitialState |
( |
const char * |
filename | ) |
|
Sets the initial state file name.
void SIM_CacheOptions::setIsCacheEnabled |
( |
bool |
enabled | ) |
|
Sets the enable state of the cache.
void SIM_CacheOptions::setMaxCacheMemSize |
( |
int64 |
maxsize | ) |
|
Sets the maximum allowed memory footprint of the cache (in bytes).
The documentation for this class was generated from the following file: