BitSet

This struct implements a vector of bits that grows as needed. Each component of the bit set has a bool value. The bits of a BitSet are indexed by nonnegative integers. Individual indexed bits can be examined, set, or cleared. One BitSet may be used to modify the contents of another BitSet through logical AND, logical inclusive OR, and logical exclusive OR operations.

By default, all bits in the set initially have the value false.

Constructors

this
this(BitArray bitArray)
Undocumented in source.
this
this(size_t initialSize)
Undocumented in source.

Members

Functions

cardinality
auto cardinality()
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
dup
void dup(BitSet old)
Undocumented in source. Be warned that the author may not have intended to support it.
get
bool get(int bitIndex)

@uml @nothrow

isEmpty
bool isEmpty()
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length()
Undocumented in source. Be warned that the author may not have intended to support it.
nextSetBit
int nextSetBit(int fromIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(BitSet bitSet)

@uml @const @pure @nothrow

or
BitSet or(BitSet bits)
Undocumented in source. Be warned that the author may not have intended to support it.
set
void set(int bitIndex, bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()

@uml @trusted

toIndexString
string toIndexString()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
values
BitArray values()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta