#include <ossimTileCache.h>
Definition at line 25 of file ossimTileCache.h.
◆ CacheData
◆ CacheDataPtr
◆ Iterator
◆ ossimTileCache()
ossimTileCache::ossimTileCache |
( |
long |
numberOfBuckets = 10 | ) |
|
◆ ~ossimTileCache()
ossimTileCache::~ossimTileCache |
( |
| ) |
|
|
virtual |
◆ bucketHash()
◆ deleteAll()
void ossimTileCache::deleteAll |
( |
| ) |
|
|
protected |
◆ display()
void ossimTileCache::display |
( |
| ) |
const |
|
virtual |
Definition at line 14 of file ossimTileCache.cpp.
References theCache, and theNumberOfBuckets.
21 while(tiles !=
theCache[buckets].end())
23 cout << ((*tiles).second) << endl;
multimap< ossim_uint32, ossimTileInformation * > * theCache
multimap< ossim_uint32, ossimTileInformation * >::iterator Iterator
◆ get()
◆ insert()
◆ invalidate() [1/2]
void ossimTileCache::invalidate |
( |
| ) |
|
◆ invalidate() [2/2]
◆ numberOfItems()
virtual long ossimTileCache::numberOfItems |
( |
| ) |
const |
|
inlinevirtual |
Definition at line 64 of file ossimTileCache.h.
multimap< ossim_uint32, ossimTileInformation * > * theCache
◆ remove()
Will remove the tile from the cache and will not delete. Note: the cache no longer owns the tile.
Definition at line 68 of file ossimTileCache.cpp.
References bucketHash(), ossimRefPtr< T >::get(), ossimDataObject::getDataSizeInBytes(), theCache, ossimTileCache::ossimTileInformation::theCachedTile, ossimTileCache::ossimTileInformation::theOrigin, ossimTileCache::ossimTileInformation::theResLevel, theSizeInBytes, and tileId().
Referenced by ossimAppTileCache::removeTile().
76 while(anIterator !=
theCache[bucket].end())
81 if(info->theOrigin == origin &&
82 info->theResLevel == resLevel)
87 result = info->theCachedTile.get();
ossimTileInformation * CacheDataPtr
virtual ossim_uint32 bucketHash(const ossimDpt3d &aPt)
multimap< ossim_uint32, ossimTileInformation * > * theCache
ossim_uint32 theSizeInBytes
multimap< ossim_uint32, ossimTileInformation * >::iterator Iterator
unsigned int ossim_uint32
virtual ossim_uint32 tileId(const ossimDpt3d &aPt)
◆ sizeInBytes()
◆ tileId()
Definition at line 130 of file ossimTileCache.cpp.
References ossimDpt3d::x, ossimDpt3d::y, and ossimDpt3d::z.
Referenced by bucketHash(), get(), insert(), and remove().
132 const unsigned char *bufx = (
unsigned char*)(&aPt.
x);
133 const unsigned char *bufy = (
unsigned char*)(&aPt.
y);
134 const unsigned char *bufz = (
unsigned char*)(&aPt.
z);
139 bufx[2]*107 + bufx[3]*109 +
140 bufx[4]*113 + bufx[5]*127 +
141 bufx[6]*131 + bufx[7]*137 +
142 bufy[0]*139 + bufy[1]*149 +
143 bufy[2]*151 + bufy[3]*157 +
144 bufy[4]*163 + bufy[5]*167 +
145 bufy[6]*173 + bufy[7]*179 +
146 bufz[0]*181 + bufz[1]*191 +
147 bufz[2]*193 + bufz[3]*197 +
148 bufz[4]*199 + bufz[5]*211 +
149 bufz[6]*223 + bufz[6]*227);
unsigned int ossim_uint32
◆ theCache
◆ theNumberOfBuckets
long ossimTileCache::theNumberOfBuckets |
|
protected |
◆ theSizeInBytes
The documentation for this class was generated from the following files: