DSOL::BooleanArray Class Reference

a class for creating a static(with a fixed length) boolean array. More...

#include <BooleanArray.hpp>

List of all members.

Public Member Functions

 BooleanArray (uint length)
 creates the array and fills the booleans with false
void clear ()
 clears the BooleanArray by setting everything to false
const bool get (const uint index) const
 returns the value at the given index
void set (const uint index, const bool value)
 sets the given value at the given index

Static Public Attributes

static const uint MAX_LENGTH = (sizeof(uint) * BITS_PER_BYTE)
 the maximum length a BooleanArray can have.


Detailed Description

a class for creating a static(with a fixed length) boolean array.

Constructor & Destructor Documentation

DSOL::BooleanArray::BooleanArray ( uint  length  )  [inline]

creates the array and fills the booleans with false


Member Function Documentation

void DSOL::BooleanArray::clear (  )  [inline]

clears the BooleanArray by setting everything to false

const bool DSOL::BooleanArray::get ( const uint  index  )  const [inline]

returns the value at the given index

Parameters:
index the index you want to get, starting from 0
Returns:
the value at the given index

void DSOL::BooleanArray::set ( const uint  index,
const bool  value 
)

sets the given value at the given index

Parameters:
index the index of the array that you want to change, starting from 0
value the value that the array at position index should become


Member Data Documentation

const uint DSOL::BooleanArray::MAX_LENGTH = (sizeof(uint) * BITS_PER_BYTE) [static]

the maximum length a BooleanArray can have.


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

Generated on Thu Sep 10 19:09:47 2009 for DSOL by  doxygen 1.5.8