grinliz::BitArray< WIDTH, HEIGHT > Class Template Reference

A 2 dimensional bit map. More...

#include <glbitarray.h>

List of all members.

Public Member Functions

U32 IsSet (int x, int y) const
 Check if (x,y) is set. Returns non-0 if set, 0 if not.
void Set (int x, int y)
 Set (x,y) true.
void Clear (int x, int y)
 Clear the bit at (x,y).
void ClearRect (const Rectangle2I &rect)
 Clear a rectangle of bits.
void SetRect (const Rectangle2I &rect)
 Clear a rectangle of bits.
bool IsRectEmpty (const Rectangle2I &rect) const
 Check if a rectangle is empty.
bool IsRectSet (const Rectangle2I &rect) const
 Check if a rectangle is completely set.
void ClearAll ()
 Clear all the bits.
void SetAll ()
 Set all the bits.
void CacheY (int y)
 Fast access - cache the y then query the x with IsSetCache.
U32 IsSetCache (int x)
 Query the x at the cached y value.


Detailed Description

template<int WIDTH, int HEIGHT>
class grinliz::BitArray< WIDTH, HEIGHT >

A 2 dimensional bit map.

Maps a bit to a 2 dimensional coordinate. Very useful for efficiently storing 2 dimensional boolean information. Constructed with 'size' parameters templatized.


The documentation for this class was generated from the following file:
Generated on Thu Jul 20 20:45:33 2006 for Kyra by  doxygen 1.4.7