BitArray

An array of bits.

Members

Functions

dim
size_t dim()
Undocumented in source. Be warned that the author may not have intended to support it.
dup
BitArray dup()

Support for array.dup property for BitArray.

init
void init(bool[] ba)

Set BitArray to contents of ba[]

init
void init(void[] v, size_t numbits)

Map BitArray onto v[], with numbits being the number of bits in the array. Does not copy the data.

length
size_t length()
Undocumented in source. Be warned that the author may not have intended to support it.
length
void length(size_t newlen)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(ref bool) dg)
int opApply(int delegate(ref size_t, ref bool) dg)

Support for foreach loops for BitArray.

opBinary
BitArray opBinary(BitArray e2)

Support for binary operator & for bit arrays.

opBinary
BitArray opBinary(BitArray e2)

Support for binary operator | for bit arrays.

opBinary
BitArray opBinary(BitArray e2)

Support for binary operator ^ for bit arrays.

opBinary
BitArray opBinary(BitArray e2)

Support for binary operator - for bit arrays.

opBinary
BitArray opBinary(bool b)
BitArray opBinary(BitArray b)
opBinaryRight
BitArray opBinaryRight(bool b)

Support for binary operator ~ for bit arrays.

opCast
void[] opCast()

Convert to void[].

opCmp
int opCmp(BitArray a2)

Implement comparison operators.

opEquals
bool opEquals(BitArray a2)

Support for operators == and != for bit arrays.

opIndex
bool opIndex(size_t i)
opIndexAssign
bool opIndexAssign(bool b, size_t i)

Support for [index] operation for BitArray.

opOpAssign
BitArray opOpAssign(BitArray e2)

Support for operator &= bit arrays.

opOpAssign
BitArray opOpAssign(BitArray e2)

Support for operator |= for bit arrays.

opOpAssign
BitArray opOpAssign(BitArray e2)

Support for operator ^= for bit arrays.

opOpAssign
BitArray opOpAssign(BitArray e2)

Support for operator -= for bit arrays.

opOpAssign
BitArray opOpAssign(bool b)
BitArray opOpAssign(BitArray b)

Support for operator ~= for bit arrays.

opUnary
BitArray opUnary()

Support for unary operator ~ for bit arrays.

reverse
BitArray reverse()

Support for array.reverse property for BitArray.

sort
BitArray sort()

Support for array.sort property for BitArray.

Variables

len
size_t len;
Undocumented in source.
ptr
size_t* ptr;
Undocumented in source.

Meta