|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.BitSet
fr.inria.oadymppac.solver.EMNCountingBitSet
A BitSet
that maintains the count of bits set to 1.
Constructor Summary | |
EMNCountingBitSet()
Creates a new counting bit set. |
|
EMNCountingBitSet(EMNCountingBitSet other)
Copy a counting bit. |
|
EMNCountingBitSet(int nbits)
Creates a counting bit set whose initial size is large enough to explicitly represent bits with indices in the range 0 through
nbits-1 . |
Method Summary | |
void |
and(java.util.BitSet set)
|
void |
andNot(java.util.BitSet set)
|
void |
clear(int bitIndex)
Sets the bit specified by the index to false . |
int |
getTrueCount()
|
void |
or(java.util.BitSet set)
|
void |
set(int bitIndex)
Sets the bit specified by the index to true . |
void |
xor(java.util.BitSet set)
|
Methods inherited from class java.util.BitSet |
cardinality, clear, clear, clone, equals, flip, flip, get, get, hashCode, intersects, isEmpty, length, nextClearBit, nextSetBit, set, set, set, size, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EMNCountingBitSet()
false
.
public EMNCountingBitSet(int nbits)
0
through
nbits-1
. All bits are initially false
.
nbits
- the initial size of the bit set.
java.lang.NegativeArraySizeException
- if the specified initial size
is negative.public EMNCountingBitSet(EMNCountingBitSet other)
Method Detail |
public void clear(int bitIndex)
false
.
bitIndex
- the index of the bit to be cleared.
java.lang.IndexOutOfBoundsException
- if the specified index is negative.public void set(int bitIndex)
true
.
bitIndex
- a bit index.
java.lang.IndexOutOfBoundsException
- if the specified index is negative.public int getTrueCount()
public void and(java.util.BitSet set)
public void or(java.util.BitSet set)
public void andNot(java.util.BitSet set)
public void xor(java.util.BitSet set)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |