Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ base/

operations_research::Bitmap Class Reference

#include <bitmap.h>

List of all members.

Public Member Functions

 Bitmap (uint32 size, bool fill=false)
 Constructor : This one will allocate on a uint32 boundary fill: true = initialize with 1's, false = initialize with 0's.
 ~Bitmap ()
 Destructor : clean up if we allocated.
void Resize (uint32 size, bool fill=false)
 Resizes the bitmap.
bool Get (uint32 index) const
void Set (uint32 index, bool value)
void SetAll (bool value)
 Sets all the bits to true or false.
void Clear ()
 Clears all bits in the bitmap.


Detailed Description

Definition at line 23 of file bitmap.h.


Constructor & Destructor Documentation

operations_research::Bitmap::Bitmap ( uint32  size,
bool  fill = false 
) [inline, explicit]

Constructor : This one will allocate on a uint32 boundary fill: true = initialize with 1's, false = initialize with 0's.

Definition at line 27 of file bitmap.h.

operations_research::Bitmap::~Bitmap (  )  [inline]

Destructor : clean up if we allocated.

Definition at line 36 of file bitmap.h.


Member Function Documentation

void operations_research::Bitmap::Resize ( uint32  size,
bool  fill = false 
)

Resizes the bitmap.

If size < bits(), the extra bits will be discarded. If size > bits(), the extra bits will be filled with the fill value.

Definition at line 22 of file bitmap.cc.

bool operations_research::Bitmap::Get ( uint32  index  )  const [inline]

Definition at line 45 of file bitmap.h.

void operations_research::Bitmap::Set ( uint32  index,
bool  value 
) [inline]

Definition at line 49 of file bitmap.h.

void operations_research::Bitmap::SetAll ( bool  value  )  [inline]

Sets all the bits to true or false.

Definition at line 59 of file bitmap.h.

void operations_research::Bitmap::Clear (  )  [inline]

Clears all bits in the bitmap.

Definition at line 64 of file bitmap.h.


The documentation for this class was generated from the following files: