iipsrv  0.9.9
Cache Class Reference

Cache to store raw tile data. More...

#include <Cache.h>

Public Member Functions

 Cache (float max)
 Constructor. More...
 
 ~Cache ()
 Destructor.
 
void insert (const RawTile &r)
 Insert a tile. More...
 
unsigned int getNumElements ()
 Return the number of tiles in the cache.
 
float getMemorySize ()
 Return the number of MB stored.
 
RawTilegetTile (std::string f, int r, int t, int h, int v, CompressionType c, int q)
 Get a tile from the cache. More...
 
std::string getIndex (std::string f, int r, int t, int h, int v, CompressionType c, int q)
 Create a hash index. More...
 

Detailed Description

Cache to store raw tile data.

Constructor & Destructor Documentation

Cache::Cache ( float  max)
inline

Constructor.

Parameters
maxMaximum cache size in MB

Member Function Documentation

std::string Cache::getIndex ( std::string  f,
int  r,
int  t,
int  h,
int  v,
CompressionType  c,
int  q 
)
inline

Create a hash index.

Parameters
ffilename
rresolution number
ttile number
hhorizontal sequence number
vvertical sequence number
ccompression type
qcompression quality
Returns
string
RawTile* Cache::getTile ( std::string  f,
int  r,
int  t,
int  h,
int  v,
CompressionType  c,
int  q 
)
inline

Get a tile from the cache.

Parameters
ffilename
rresolution number
ttile number
hhorizontal sequence number
vvertical sequence number
ccompression type
qcompression quality
Returns
pointer to data or NULL on error
void Cache::insert ( const RawTile r)
inline

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