#include <TIL_TileCache.h>
|
| TIL_TileCache (TIL_TileManager *tman) |
|
| ~TIL_TileCache () override |
|
void | setCacheSize (int size_in_kb, bool force_redo=false) |
|
void | setInactiveCacheReduce (bool enable, int size_in_kb) |
|
void | setExternalResourceUsage (int64 bytes_used) |
|
void | setCookMode (bool cook) |
|
void | clear () |
|
void | lockCache () |
|
void | unlockCache () |
|
TIL_Tile * | getCachedTile (UT_TokenString *&token, int x, int y, int xsize, int ysize, void *node, const TIL_Plane *plane, int array_index, int component, int image_index, bool create_flag, bool &blocked, bool &created, TIL_Storage storage) |
|
TIL_Tile * | getBlackTile (UT_TokenString *&token, int x, int y, int xsize, int ysize, void *node, const TIL_Plane *plane, int array_index, int component, int image_index) |
|
bool | isTileInCache (const UT_TokenString *token, int x, int y) |
|
bool | areTilesInCache (const UT_TokenString *token, int x1, int y1, int x2, int y2) |
|
int | lockTile (TIL_Tile *tile, int access, int block=1) |
|
void | unlockTile (TIL_Tile *tile, int access) |
|
void | lockTileWriteToRead (TIL_Tile *tile, int score) |
|
int | isReadLocked (const TIL_Tile *t) const |
|
int | isWriteLocked (const TIL_Tile *t) const |
|
void | releaseTile (TIL_Tile *tile) |
|
void | freeTile (TIL_Tile *&tile) |
|
void | moveTileFromCacheToCheckpointList (const UT_TokenString *token, int xstart, int ystart, int xend, int yend, UT_ValArray< TIL_Tile * > &tile_list) |
|
void | decrementTileCheckpointCount (UT_ValArray< TIL_Tile * > &tile_list) |
|
void | possiblyResumeTrimming () |
|
void | removeAllWithParent (void *node) |
|
unsigned | getNumCheckpointedTiles () const |
|
unsigned int | getNumLockedTiles () const |
|
void | uncheckpointAllTiles () |
|
void | unlockAllTiles () |
|
int64 | getCacheSize () const |
|
int64 | getMaxCacheSize () const |
|
int64 | getInactiveCacheSize () const |
|
bool | getInactiveReduce () const |
|
TIL_Tile * | getTempTile () |
|
void | returnTile (TIL_Tile *tile) |
|
void | dumpContents (std::ostream &os) |
|
| UT_Cache () |
|
virtual | ~UT_Cache () |
|
| UT_Cache (const UT_Cache &)=delete |
|
UT_Cache & | operator= (const UT_Cache &)=delete |
|
void | utClearCache () |
|
virtual bool | utHasMinSize () const |
|
virtual int64 | utGetMinSize () const |
|
virtual void | utSetMinSize (int64) |
|
virtual bool | utUpdateCacheInfo () |
|
Definition at line 39 of file TIL_TileCache.h.
TIL_TileCache::~TIL_TileCache |
( |
| ) |
|
|
override |
static void TIL_TileCache::cacheReducePing |
( |
UI_Timer * |
t, |
|
|
void * |
data |
|
) |
| |
|
static |
void TIL_TileCache::clear |
( |
| ) |
|
void TIL_TileCache::dumpContents |
( |
std::ostream & |
os | ) |
|
TIL_Tile* TIL_TileCache::getCachedTile |
( |
UT_TokenString *& |
token, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
xsize, |
|
|
int |
ysize, |
|
|
void * |
node, |
|
|
const TIL_Plane * |
plane, |
|
|
int |
array_index, |
|
|
int |
component, |
|
|
int |
image_index, |
|
|
bool |
create_flag, |
|
|
bool & |
blocked, |
|
|
bool & |
created, |
|
|
TIL_Storage |
storage |
|
) |
| |
int64 TIL_TileCache::getCacheSize |
( |
| ) |
const |
|
inline |
int64 TIL_TileCache::getInactiveCacheSize |
( |
| ) |
const |
|
inline |
bool TIL_TileCache::getInactiveReduce |
( |
| ) |
const |
|
inline |
int64 TIL_TileCache::getMaxCacheSize |
( |
| ) |
const |
|
inline |
unsigned TIL_TileCache::getNumCheckpointedTiles |
( |
| ) |
const |
|
inline |
unsigned int TIL_TileCache::getNumLockedTiles |
( |
| ) |
const |
|
inline |
TIL_Tile* TIL_TileCache::getTempTile |
( |
| ) |
|
int TIL_TileCache::isReadLocked |
( |
const TIL_Tile * |
t | ) |
const |
|
inline |
int TIL_TileCache::isWriteLocked |
( |
const TIL_Tile * |
t | ) |
const |
|
inline |
void TIL_TileCache::lockCache |
( |
| ) |
|
|
inline |
void TIL_TileCache::possiblyResumeTrimming |
( |
| ) |
|
void TIL_TileCache::removeAllWithParent |
( |
void * |
node | ) |
|
void TIL_TileCache::setCacheSize |
( |
int |
size_in_kb, |
|
|
bool |
force_redo = false |
|
) |
| |
void TIL_TileCache::setCookMode |
( |
bool |
cook | ) |
|
void TIL_TileCache::setExternalResourceUsage |
( |
int64 |
bytes_used | ) |
|
|
inline |
void TIL_TileCache::setInactiveCacheReduce |
( |
bool |
enable, |
|
|
int |
size_in_kb |
|
) |
| |
void TIL_TileCache::uncheckpointAllTiles |
( |
| ) |
|
void TIL_TileCache::unlockAllTiles |
( |
| ) |
|
void TIL_TileCache::unlockCache |
( |
| ) |
|
|
inline |
const char* TIL_TileCache::utGetCacheName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
int64 TIL_TileCache::utGetCurrentSize |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
int64 TIL_TileCache::utGetMaxSize |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
bool TIL_TileCache::utHasMaxSize |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
optional - override if the cache has a well defined maximum size
Reimplemented from UT_Cache.
Definition at line 191 of file TIL_TileCache.h.
int64 TIL_TileCache::utReduceCacheSizeBy |
( |
int64 |
amount | ) |
|
|
overrideprotectedvirtual |
required - free contents of the cache by amount
bytes. Returns the amount of memory (in bytes) actually freed. This does not change the cache size
Implements UT_Cache.
void TIL_TileCache::utSetMaxSize |
( |
int64 |
size | ) |
|
|
overrideprotectedvirtual |
The documentation for this class was generated from the following file: