BitSet
Sourceint BITSET_SIZE
Source
function bitset.bitAnd(bitset other) returns bitset
Source
Performs a logical AND of this bit set with the bit set argument.
function bitset.bitOr(bitset other) returns bitset
Source
Performs a logical OR of this bit set with the bit set argument.
function bitset.bitXor(bitset other) returns bitset
Source
Performs a logical XOR of this bit set with the bit set argument.
function bitset(int val) returns bitset
Source
Bitset represents a fixed-size sequence of BITSET_SIZE bits. The bits are contained in a single int.
function bitsetFromIndex(int index) returns bitset
Source
function bitsetToIndex(bitset object) returns int
Source
function emptyBitset() returns bitset
Source
Creates an empty bitset.
function bitset.flip(int index) returns bitset
Source
Sets the bit at the specified index to the complement of its current value.
function bitset.get(int index) returns boolean
Source
Returns the value of the bit with the specified index.
function bitset.intersects(bitset other) returns boolean
Source
Returns true if the specified bitset has any bits set to true that are also set to true in this bitset.
function bitset.isEmpty() returns boolean
Source
Returns true if this bitset contains no bits that are set to true.
function bitset.reset(int index) returns bitset
Source
Sets the bit at the specified index to false.
function bitset.set(int index) returns bitset
Source
Sets the bit at the specified index to true.
function bitset.set(int index, boolean value) returns bitset
Source
Sets the bit at the specified index to the specified value.
function bitset.toInt() returns int
Source
Returns an integer representation of the data.