#include <BooleanArray.hpp>
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. |
DSOL::BooleanArray::BooleanArray | ( | uint | length | ) | [inline] |
creates the array and fills the booleans with false
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
index | the index you want to get, starting from 0 |
void DSOL::BooleanArray::set | ( | const uint | index, | |
const bool | value | |||
) |
sets the given value at the given index
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 |
const uint DSOL::BooleanArray::MAX_LENGTH = (sizeof(uint) * BITS_PER_BYTE) [static] |
the maximum length a BooleanArray can have.