Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csWideSparse3D Class Reference

This implementation of csSparse3D is very suited where the accesses will be very widely spaced (for example: one element at (-1000,0,0) and one at (1000,0,0)). More...

#include <sparse3d.h>

Inheritance diagram for csWideSparse3D:

csSparse3D List of all members.

Public Methods

 csWideSparse3D ()
virtual ~csWideSparse3D ()
virtual void Clear ()
virtual void Set (int x, int y, int z, void *obj)
virtual void* Get (int x, int y, int z)
virtual void Del (int x, int y, int z)

Detailed Description

This implementation of csSparse3D is very suited where the accesses will be very widely spaced (for example: one element at (-1000,0,0) and one at (1000,0,0)).

Getting and setting elements is not as efficient as with DenseSparse3D but it consumes less memory. @@ NOTE! Current implementation is very naive. The list should be sorted to make searching at least a little more efficient.

This implementation of Sparse3D is better suited when accesses are close together. The speed of access is much better (no need to scan lists).


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000