Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgSCache Class Reference

This class caches a roughly sorted set of triangles. More...

#include <ddgcache.h>

Class diagram for ddgSCache:

ddgLCache ddgQCache

List of all members.


Public Members

 ddgSCache (void)
Constructor.

 ~ddgSCache (void)
Destructor.

void reset (void)
Reset the queue.

void init (unsigned int size, unsigned int nodeSize, unsigned int bn, bool r = false )
Initialize the cache.

ddgSNodeget (unsigned short index)
Get entry.

short bucketNo (void)
Return the number of buckets/key slots.

short convert ( short b )
Convert bucket # back to key for reversed cache.

ddgCacheIndex insert (short b)
Insert a node into the cache. More...

void remove (ddgCacheIndex ci)
Remove this node from the queue.

ddgCacheIndex head (void)
Return the item at the head of the queue.

ddgCacheIndex tail (void)
Return the item at the head of the queue.

ddgCacheIndex next (ddgCacheIndex ci)
Return the item following this one ci must be valid.


Detailed Description

This class caches a roughly sorted set of triangles.


Member Function Documentation

ddgCacheIndex ddgSCache::insert (short b) [inline]

Insert a node into the cache.

returns the position in the cache that it was inserted into.


The documentation for this class was generated from the following file:
Generated at Sun Sep 17 19:27:56 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999