coins.alias.alias2
クラス TagVector2

java.lang.Object
  |
  +--coins.alias.util.BitVector
        |
        +--coins.alias.alias2.TagVector2

class TagVector2
extends BitVector

BitVector where each bit represents an object. Aggregate type objects correspond to several bits. The last bit is specially used for external objects.


フィールドの概要
(パッケージプライベート)  Var fAssociatedParam
           
(パッケージプライベート)  boolean fIsDefinite
           
 
クラス coins.alias.util.BitVector から継承したフィールド
fBitLength, fLongWordLength, fShiftMax, fVectorWord
 
コンストラクタの概要
(パッケージプライベート) TagVector2(int pBitCount)
          Creates a new instance of TagVector2 with the specified bit length.
 
メソッドの概要
 boolean equals(java.lang.Object pObject)
          The equality for two BitVector objects is specified by vectorEqual().
 void resetBit(int pIndex)
          Resets the bit at the specified position.
 void setBit(int pIndex)
          Sets the bit at the specified position.
(パッケージプライベート)  BriggsSet toBriggsSet()
          Returns the BriggsSet view of this BitVector.
 java.lang.String toString()
          Returns a String representation of this BitVector.
 BitVector vectorAnd(BitVector pOperand2, BitVector pResult)
          Performs the bitwise AND operation between this BitVector and the argument pOperand2, and stores the result into pResult.
 BitVector vectorCopy(BitVector pResult)
          Copies the contents of this BitVector into the specified argument.
 BitVector vectorNot(BitVector pResult)
          Performs the bitwise NOT operation on this BitVector and store the result into the specified argument.
 BitVector vectorOr(BitVector pOperand2, BitVector pResult)
          Performs the bitwise OR operation between this BitVector and the argument pOperand2, and stores the result into pResult.
 BitVector vectorReset()
          Resets all the bits of this BitVector.
 BitVector vectorSub(BitVector pOperand2, BitVector pResult)
          Performs the bitwise subtraction operation between this BitVector and the argument pOperand2, and stores the result into pResult.
 BitVector vectorXor(BitVector pOperand2, BitVector pResult)
          Performs the bitwise exclusive OR (XOR) operation between this BitVector and the argument pOperand2, and stores the result into pResult.
 
クラス coins.alias.util.BitVector から継承したメソッド
bitVectorIterator, getBit, getBitLength, getVectorWord, getWordLength, isSet, isZero, toStringDescriptive, vectorEqual
 
クラス java.lang.Object から継承したメソッド
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

fIsDefinite

boolean fIsDefinite

fAssociatedParam

Var fAssociatedParam
コンストラクタの詳細

TagVector2

TagVector2(int pBitCount)
Creates a new instance of TagVector2 with the specified bit length.

パラメータ:
pBitCount - the bit length of the TagVector2.
メソッドの詳細

setBit

public void setBit(int pIndex)
Sets the bit at the specified position.

オーバーライド:
クラス BitVector 内の setBit
パラメータ:
pIndex - the bit position the bit at which is to be set.

resetBit

public void resetBit(int pIndex)
Resets the bit at the specified position.

オーバーライド:
クラス BitVector 内の resetBit
パラメータ:
pIndex - the bit position the bit at which is to be reset.

vectorNot

public BitVector vectorNot(BitVector pResult)
Performs the bitwise NOT operation on this BitVector and store the result into the specified argument. The argument must have the same length as this BitVector.

オーバーライド:
クラス BitVector 内の vectorNot
パラメータ:
pResult - the BitVector where the result of the NOT operation is stored.
戻り値:
pResult, the result of the NOT operation.

vectorAnd

public BitVector vectorAnd(BitVector pOperand2,
                           BitVector pResult)
Performs the bitwise AND operation between this BitVector and the argument pOperand2, and stores the result into pResult. Both pOperand2 and pResult must have the same length as this BitVector.

オーバーライド:
クラス BitVector 内の vectorAnd
パラメータ:
pOperand2 - the BitVector with which this BitVector is ANDed.
pResult - the BitVector where the result of the AND operation is stored.
戻り値:
pResult, the result of the AND operation.

vectorOr

public BitVector vectorOr(BitVector pOperand2,
                          BitVector pResult)
Performs the bitwise OR operation between this BitVector and the argument pOperand2, and stores the result into pResult. Both pOperand2 and pResult must have the same length as this BitVector.

オーバーライド:
クラス BitVector 内の vectorOr
パラメータ:
pOperand2 - the BitVector with which this BitVector is ORed.
pResult - the BitVector where the result of the OR operation is stored.
戻り値:
pResult, the result of the OR operation.

vectorXor

public BitVector vectorXor(BitVector pOperand2,
                           BitVector pResult)
Performs the bitwise exclusive OR (XOR) operation between this BitVector and the argument pOperand2, and stores the result into pResult. Both pOperand2 and pResult must have the same length as this BitVector.

オーバーライド:
クラス BitVector 内の vectorXor
パラメータ:
pOperand2 - the BitVector with which this BitVector is XORed.
pResult - the BitVector where the result of the XOR operation is stored.
戻り値:
pResult, the result of the XOR operation.

vectorSub

public BitVector vectorSub(BitVector pOperand2,
                           BitVector pResult)
Performs the bitwise subtraction operation between this BitVector and the argument pOperand2, and stores the result into pResult. Both pOperand2 and pResult must have the same length as this BitVector.

オーバーライド:
クラス BitVector 内の vectorSub
パラメータ:
pOperand2 - the BitVector by which amount this BitVector is reduced (the second operand of the bitwise subtraction operation).
pResult - the BitVector where the result of the subtraction operation is stored.
戻り値:
pResult, the result of the subtraction operation.

vectorCopy

public BitVector vectorCopy(BitVector pResult)
Copies the contents of this BitVector into the specified argument. The argument must have the same length as this BitVector.

オーバーライド:
クラス BitVector 内の vectorCopy
パラメータ:
pResult - the destination of the copy operation.
戻り値:
pResult, the result of the copy operation.

vectorReset

public BitVector vectorReset()
Resets all the bits of this BitVector.

オーバーライド:
クラス BitVector 内の vectorReset
戻り値:
this BitVector with all the bits reset.

toBriggsSet

BriggsSet toBriggsSet()

Returns the BriggsSet view of this BitVector. BitVector does not perform well for scanning, so this method is for efficient scanning (while this set is not modified). Change to the set returned by this method will NOT be reflected in this bit vector and vice versa.

This method checks if this BitVector has been modified after the previous call to this method, and if not, returns the BriggsSet instance returned by the previous call. If this BitVector has been modified since the previous call, or there has never been such a call, then it returns a new copy of the BriggsSet synchronized with the current state of this BitVector. So if the BriggsSet instance returned by a previous call to this method has been modified while this BitVector itself has not been modified, this method will return the same BriggsSet instance returned by the previous call, which is not synchronized with the current state of this BitVector. In general, the BriggsSet instance returned by this method should not be modified.

戻り値:
the BriggsSet view of this TagVector2.

equals

public boolean equals(java.lang.Object pObject)
クラス BitVector の記述:
The equality for two BitVector objects is specified by vectorEqual(). This method returns true if and only if the specified argument pObject is an instance of BitVector, its length is equal to the length of this BitVector, and vectorEqual((BitVector)pObject) returns true.

オーバーライド:
クラス BitVector 内の equals
パラメータ:
pObject - the object to be compared with this BitVector.
戻り値:
true if the specified argument pObject is a BitVector having the same length as this one and vectorEqual((BitVector)pObject) returns true.
関連項目:
BitVector.vectorEqual(coins.alias.util.BitVector)

toString

public java.lang.String toString()
クラス BitVector の記述:
Returns a String representation of this BitVector. The resultant String contains the bit positions of the set bits separated by spaces.

オーバーライド:
クラス BitVector 内の toString
戻り値:
the String representation of this BitVector.