|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--coins.flow.BitVectorImpl
BitVectorImpl class
フィールドの概要 | |
protected int |
fBitLength
|
protected int |
fLongWordLength
|
protected int |
fShiftMax
|
protected long[] |
fVectorWord
|
コンストラクタの概要 | |
protected |
BitVectorImpl()
|
protected |
BitVectorImpl(int pLongWordCount)
|
メソッドの概要 | |
BitVectorIterator |
bitVectorIterator(SubpFlow pSubpFlow)
Returns the BitVectorIterator object backed by this BitVector |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object pObj)
Same as vectorEqual if the specified argument is an instance of BitVector , otherwise returns false . |
int |
getBit(int pInx)
getBit Get pIndex-th bit of this bit vector. |
int |
getBitLength()
Returns the length of this BitVector , not counting the 0-th bit, which is not used. |
long[] |
getVectorWord()
Returns the array of long , which is where the actual data for this BitVector is stored. |
int |
getWordLength()
Returns the # of long words this BitVector uses to store its data. |
int |
hashCode()
|
boolean |
isSet(int pInx)
Same as getBit(pInx) == 1 . |
boolean |
isZero()
Are all the bits zero? |
void |
resetBit(int pInx)
resetBit Reset pIndex-th bit of this bit vector to 0. |
void |
setBit(int pInx)
setBit Set pIndex-th bit of this bit vector to 1. |
java.lang.String |
toString()
toString Get the sequence of indexes corresponding to the position having 1. |
java.lang.String |
toStringDescriptive()
Returns a possibly more descriptive string representation than toString() of this BitVector . |
void |
vectorAnd(BitVector pOperand2,
BitVector pResult)
vectorAnd; Make a bit vector and set its value by executing bit-wise-and operation on this and pOperand2. |
void |
vectorCopy(BitVector pResult)
vectorCopy; Make a bit vector and set its value same to that of pOperand. |
boolean |
vectorEqual(BitVector pOperand2)
vectorEqual; See if this and pOperand2 have the same value or not. |
void |
vectorNot(BitVector pResult)
vectorNot; Make a bit vector and set its value by executing bit-wise-not operation on pOperand. |
void |
vectorOr(BitVector pOperand2,
BitVector pResult)
vectorOr; Make a bit vector and set its value by executing bit-wise-or operation on this and pOperand2. |
void |
vectorReset()
vectorReset; Reset all bits of this vector to 0. |
void |
vectorSub(BitVector pOperand2,
BitVector pResult)
vectorSub; Make a bit vector and set its value by executing bit-wise-sub operation on this and pOperand2.
|
void |
vectorXor(BitVector pOperand2,
BitVector pResult)
vectorXor; Make a bit vector and set its value by executing bit-wise exclusive-or operation on this and pOperand2. |
クラス java.lang.Object から継承したメソッド |
finalize, getClass, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
protected int fLongWordLength
protected int fBitLength
protected int fShiftMax
protected long[] fVectorWord
コンストラクタの詳細 |
protected BitVectorImpl()
protected BitVectorImpl(int pLongWordCount)
メソッドの詳細 |
public void setBit(int pInx)
BitVector
の記述:
BitVector
内の setBit
public void resetBit(int pInx)
BitVector
の記述:
BitVector
内の resetBit
public int getBit(int pInx)
BitVector
の記述:
BitVector
内の getBit
public boolean isSet(int pInx)
BitVector
の記述: getBit(pInx) == 1
.
BitVector
内の isSet
public boolean isZero()
BitVector
の記述:
BitVector
内の isZero
public int getBitLength()
BitVector
の記述: BitVector
, not counting the 0-th bit, which is not used.
BitVector
内の getBitLength
public int getWordLength()
BitVector
の記述: BitVector
uses to store its data.
BitVector
内の getWordLength
public long[] getVectorWord()
BitVector
の記述: long
, which is where the actual data for this BitVector
is stored.
BitVector
内の getVectorWord
public BitVectorIterator bitVectorIterator(SubpFlow pSubpFlow)
BitVector
の記述: BitVectorIterator
object backed by this BitVector
BitVector
内の bitVectorIterator
public void vectorAnd(BitVector pOperand2, BitVector pResult)
BitVector
の記述: this
and pOperand2.
BitVector
内の vectorAnd
public void vectorOr(BitVector pOperand2, BitVector pResult)
BitVector
の記述: this
and pOperand2.
BitVector
内の vectorOr
public void vectorXor(BitVector pOperand2, BitVector pResult)
BitVector
の記述: this
and pOperand2.
BitVector
内の vectorXor
public void vectorNot(BitVector pResult)
BitVector
の記述:
BitVector
内の vectorNot
public void vectorSub(BitVector pOperand2, BitVector pResult)
BitVector
の記述: this
and pOperand2.
(pOperand2 is subtracted from this.) //##62
BitVector
内の vectorSub
public void vectorCopy(BitVector pResult)
BitVector
の記述:
BitVector
内の vectorCopy
public boolean vectorEqual(BitVector pOperand2)
BitVector
の記述: this
and pOperand2 have the same value or not.
BitVector
内の vectorEqual
this
and pOperand2 have the same value,
false otherwise.public boolean equals(java.lang.Object pObj)
BitVector
の記述: vectorEqual
if the specified argument is an instance of BitVector
, otherwise returns false
.
BitVector
内の equals
java.lang.Object
内の equals
public int hashCode()
java.lang.Object
内の hashCode
public void vectorReset()
BitVector
の記述:
BitVector
内の vectorReset
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.Object
内の clone
java.lang.CloneNotSupportedException
public java.lang.String toString()
BitVector
の記述:
BitVector
内の toString
java.lang.Object
内の toString
public java.lang.String toStringDescriptive()
BitVector
の記述: toString()
of this BitVector
.
BitVector
内の toStringDescriptive
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |