Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgQCache Class Reference

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

#include <ddgtmesh.h>

Class diagram for ddgQCache:

ddgSCache ddgLCache

List of all members.


Public Members

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

ddgQNodeget (unsigned short index)
Get entry.

ddgCacheIndex insert (ddgTreeIndex t, ddgTriIndex ti, short b)
Insert a node into the queue. More...

void move (ddgCacheIndex ci, short b)
Move a node from one position to another in the queue.


Detailed Description

This class caches a roughly sorted set of triangles.


Member Function Documentation

void ddgQCache::init (unsigned int size, unsigned int bn, bool r = false) [inline]

Initialize the cache.

size is the total number of entries the cache should be able to hold. bn is the number of priority slots. r indicates if this queue is sorted in reverse.

ddgCacheIndex ddgQCache::insert (ddgTreeIndex t, ddgTriIndex ti, short b) [inline]

Insert a node into the queue.

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:55 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999