1 // -*- mode: cpp; mode: fold -*-
3 // $Id: bitmap.cc,v 1.1 1999/11/05 05:47:06 jgg Exp $
4 /* ######################################################################
6 Bitmap - A trivial class to implement an 1 bit per element boolean
9 This is deliberately extremely light weight so that it is fast for
12 ##################################################################### */
14 // Include files /*{{{*/
16 #pragma implementation "dsync/bitmap.h"
19 #include <dsync/bitmap.h>
24 // BitmapVector::BitmapVector - Constructor /*{{{*/
25 // ---------------------------------------------------------------------
26 /* Allocate just enough bytes and 0 it */
27 BitmapVector::BitmapVector(unsigned long Size) : Size(Size)
29 Vect = new unsigned long[Bytes()];
30 memset(Vect,0,Bytes());
33 // BitmapVector::~BitmapVector - Destructor /*{{{*/
34 // ---------------------------------------------------------------------
36 BitmapVector::~BitmapVector()