Bitmap

Undocumented in source.

Constructors

this
this()

Creates an empty bitmap

this
this(uint cap)

Creates an empty bitmap with a predefined capacity PARAMS uint cap: The predefined capacity

Destructor

~this
~this()
Undocumented in source.

Members

Functions

add
void add(uint x)
Undocumented in source. Be warned that the author may not have intended to support it.
addRange
void addRange(ulong min, ulong max)

Adds all values from min (included) to max (excluded)

andNot
Bitmap andNot(Bitmap b)

Computes the difference of this bitmap and b; that is returns the elements of this that are not in b.

andNotInPlace
void andNotInPlace(Bitmap b)

Performs the andNot operation in place.

contains
bool contains(uint x)

Check if value x is present

containsRange
bool containsRange(uint start, uint end)

Check if all values from start (included) to end (excluded) are present

dup
Bitmap dup()
Undocumented in source. Be warned that the author may not have intended to support it.
lengthInRange
ulong lengthInRange(ulong start, ulong end)

Returns the number of elements present between start (included) and end (excluded)

opApply
int opApply(int delegate(ref uint value) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(ref uint index, ref uint value) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Bitmap opBinary(Bitmap b)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
bool opBinaryRight(uint x)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
bool opBinaryRight(Bitmap b)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Object b)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
uint opIndex(uint rank)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(Bitmap b)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(uint x)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
Bitmap opSlice(int start, int end)
Undocumented in source. Be warned that the author may not have intended to support it.
optimize
bool optimize()
Undocumented in source. Be warned that the author may not have intended to support it.
rank
ulong rank(uint rank)

Returns the number of integers that are smaller or equal to x.

remove
void remove(uint x)

Remove value x

toArray
uint[] toArray()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
void toString(void delegate(const(char)[]) sink)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

copyOnWrite
bool copyOnWrite [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
copyOnWrite
bool copyOnWrite [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
uint length [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
maximum
uint maximum [@property getter]

Return the largest value (if not empty)

minimum
uint minimum [@property getter]

Return the smallest value (if not empty)

opDollar
uint opDollar [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
sizeInBytes
size_t sizeInBytes [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta