TIL_TileCache Class Reference

#include <TIL_TileCache.h>

Inheritance diagram for TIL_TileCache:

UT_Cache

List of all members.

Public Member Functions

 TIL_TileCache (TIL_TileManager *tman)
 ~TIL_TileCache ()
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_TilegetCachedTile (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_TilegetBlackTile (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_PtrArray< TIL_Tile * > &tile_list)
void decrementTileCheckpointCount (UT_PtrArray< 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_TilegetTempTile ()
void returnTile (TIL_Tile *tile)
void dumpContents (ostream &os)

Static Public Member Functions

static void cacheReducePing (UI_Timer *t, void *data)
static TIL_TileCachegetTileCache ()

Protected Member Functions

virtual const char * utGetCacheName () const
virtual int64 utGetCurrentSize ()
virtual bool utHasMaxSize () const
virtual int64 utGetMaxSize ()
virtual void utSetMaxSize (int64 size)
virtual int64 utReduceCacheSizeBy (int64 amount)


Detailed Description

Definition at line 45 of file TIL_TileCache.h.


Constructor & Destructor Documentation

TIL_TileCache::TIL_TileCache ( TIL_TileManager tman  ) 

TIL_TileCache::~TIL_TileCache (  ) 


Member Function Documentation

bool TIL_TileCache::areTilesInCache ( const UT_TokenString token,
int  x1,
int  y1,
int  x2,
int  y2 
)

static void TIL_TileCache::cacheReducePing ( UI_Timer *  t,
void *  data 
) [static]

void TIL_TileCache::clear (  ) 

void TIL_TileCache::decrementTileCheckpointCount ( UT_PtrArray< TIL_Tile * > &  tile_list  ) 

void TIL_TileCache::dumpContents ( ostream &  os  ) 

void TIL_TileCache::freeTile ( TIL_Tile *&  tile  ) 

TIL_Tile* TIL_TileCache::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 
)

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 ( void   )  const [inline]

Definition at line 175 of file TIL_TileCache.h.

int64 TIL_TileCache::getInactiveCacheSize (  )  const [inline]

Definition at line 177 of file TIL_TileCache.h.

bool TIL_TileCache::getInactiveReduce (  )  const [inline]

Definition at line 178 of file TIL_TileCache.h.

int64 TIL_TileCache::getMaxCacheSize (  )  const [inline]

Definition at line 176 of file TIL_TileCache.h.

unsigned TIL_TileCache::getNumCheckpointedTiles (  )  const [inline]

Definition at line 164 of file TIL_TileCache.h.

unsigned int TIL_TileCache::getNumLockedTiles (  )  const [inline]

Definition at line 167 of file TIL_TileCache.h.

TIL_Tile* TIL_TileCache::getTempTile (  ) 

static TIL_TileCache* TIL_TileCache::getTileCache (  )  [static]

int TIL_TileCache::isReadLocked ( const TIL_Tile t  )  const [inline]

Definition at line 130 of file TIL_TileCache.h.

bool TIL_TileCache::isTileInCache ( const UT_TokenString token,
int  x,
int  y 
)

int TIL_TileCache::isWriteLocked ( const TIL_Tile t  )  const [inline]

Definition at line 132 of file TIL_TileCache.h.

void TIL_TileCache::lockCache (  )  [inline]

Definition at line 71 of file TIL_TileCache.h.

int TIL_TileCache::lockTile ( TIL_Tile tile,
int  access,
int  block = 1 
) [inline]

Definition at line 121 of file TIL_TileCache.h.

void TIL_TileCache::lockTileWriteToRead ( TIL_Tile tile,
int  score 
) [inline]

Definition at line 127 of file TIL_TileCache.h.

void TIL_TileCache::moveTileFromCacheToCheckpointList ( const UT_TokenString token,
int  xstart,
int  ystart,
int  xend,
int  yend,
UT_PtrArray< TIL_Tile * > &  tile_list 
)

void TIL_TileCache::possiblyResumeTrimming (  ) 

void TIL_TileCache::releaseTile ( TIL_Tile tile  ) 

void TIL_TileCache::removeAllWithParent ( void *  node  ) 

void TIL_TileCache::returnTile ( TIL_Tile tile  ) 

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]

Definition at line 57 of file TIL_TileCache.h.

void TIL_TileCache::setInactiveCacheReduce ( bool  enable,
int  size_in_kb 
)

void TIL_TileCache::uncheckpointAllTiles (  ) 

void TIL_TileCache::unlockAllTiles (  ) 

void TIL_TileCache::unlockCache (  )  [inline]

Definition at line 72 of file TIL_TileCache.h.

void TIL_TileCache::unlockTile ( TIL_Tile tile,
int  access 
) [inline]

Definition at line 124 of file TIL_TileCache.h.

virtual const char* TIL_TileCache::utGetCacheName (  )  const [inline, protected, virtual]

Implements UT_Cache.

Definition at line 195 of file TIL_TileCache.h.

virtual int64 TIL_TileCache::utGetCurrentSize (  )  [inline, protected, virtual]

Implements UT_Cache.

Definition at line 196 of file TIL_TileCache.h.

virtual int64 TIL_TileCache::utGetMaxSize (  )  [inline, protected, virtual]

Reimplemented from UT_Cache.

Definition at line 198 of file TIL_TileCache.h.

virtual bool TIL_TileCache::utHasMaxSize (  )  const [inline, protected, virtual]

Reimplemented from UT_Cache.

Definition at line 197 of file TIL_TileCache.h.

virtual int64 TIL_TileCache::utReduceCacheSizeBy ( int64  amount  )  [protected, virtual]

Implements UT_Cache.

virtual void TIL_TileCache::utSetMaxSize ( int64  size  )  [protected, virtual]

Reimplemented from UT_Cache.


The documentation for this class was generated from the following file:

Generated on Fri May 25 00:10:45 2012 for HDK by  doxygen 1.5.9