Mercurial > hg > Members > koba > home
view works/hash_test/TileHash.h @ 0:99a6512a8253
moving from firefly
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 28 Oct 2009 20:12:40 +0900 |
parents | |
children |
line wrap: on
line source
#ifndef INCLUDED_TEXTURE_HASH #define INCLUDED_TEXTURE_HASH #ifndef INCLUDED_TAPESTRY # include "Tapestry.h" #endif class TileHash { public: TileHash(void); private: TilePtr *table; public: void clear(void); int hash(uint32 data); int put(uint32 *addr, TilePtr tile); TilePtr get(uint32 *addr); void remove(uint32 *addr); }; typedef TileHash* TileHashPtr; #endif const int hashSize = 263; const int tableSize = sizeof(TilePtr)*hashSize;