org.armedbear.lisp
Class AbstractBitVector

java.lang.Object
  extended by org.armedbear.lisp.LispObject
      extended by org.armedbear.lisp.AbstractArray
          extended by org.armedbear.lisp.AbstractVector
              extended by org.armedbear.lisp.AbstractBitVector
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ComplexBitVector, SimpleBitVector

public abstract class AbstractBitVector
extends AbstractVector

See Also:
Serialized Form

Field Summary
protected  long[] bits
           
protected  int capacity
           
protected static int LONG_MASK
           
 
Constructor Summary
AbstractBitVector()
           
 
Method Summary
 int capacity()
           
 LispObject classOf()
           
protected abstract  void clearBit(int index)
           
 boolean equal(LispObject obj)
           
 boolean equalp(LispObject obj)
           
 void fill(LispObject obj)
           
protected abstract  int getBit(int index)
           
 LispObject getElementType()
           
 int hashCode()
           
 LispObject reverse()
           
protected abstract  void setBit(int index)
           
 LispObject subseq(int start, int end)
           
 LispObject typep(LispObject type)
           
 java.lang.String writeToString()
           
 
Methods inherited from class org.armedbear.lisp.AbstractVector
adjustArray, adjustArray, adjustArray, adjustArray, badIndex, checkIndex, deleteEq, deleteEql, getDimension, getDimensions, getRank, getTotalSize, isSimpleVector, nreverse, psxhash, setFillPointer, setFillPointer, shrink, vectorp
 
Methods inherited from class org.armedbear.lisp.AbstractArray
arrayDisplacement, aset, computeTotalSize, get, getFillPointer, getRowMajorIndex, getRowMajorIndex, hasFillPointer, isAdjustable, isDisplaced, set, writeToString
 
Methods inherited from class org.armedbear.lisp.LispObject
ABS, add, add, aref_long, aref, AREF, AREF, aset, aset, ash, ash, atom, ATOM, caddr, cadr, car, cddr, cdr, CHAR, characterp, CHARACTERP, chars, COMPLEXP, constantp, CONSTANTP, copyToArray, decr, DENOMINATOR, dispatch, divideBy, doubleValue, elt, endp, ENDP, EQ, eql, eql, eql, EQL, equal, EQUAL, equalp, evenp, EVENP, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, floatp, FLOATP, floatValue, getBooleanValue, getCallCount, getDescription, getDocumentation, getFixnumSlotValue, getHotCount, getInstance, getParts, getPropertyList, getSlotValue_0, getSlotValue_1, getSlotValue_2, getSlotValue_3, getSlotValue, getSlotValueAsBoolean, getStringChars, getStringValue, getSymbolFunction, getSymbolFunctionOrDie, getSymbolSetfFunction, getSymbolSetfFunctionOrDie, getSymbolValue, incr, incrementCallCount, incrementHotCount, integerp, INTEGERP, intValue, IS_E, IS_GE, IS_GT, IS_LE, IS_LT, IS_NE, isEqualTo, isEqualTo, isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isLessThan, isLessThan, isLessThanOrEqualTo, isLessThanOrEqualTo, isNotEqualTo, isNotEqualTo, isSpecialOperator, isSpecialVariable, javaInstance, javaInstance, LDB, length, LENGTH, listp, LISTP, lockableInstance, LOGAND, LOGAND, LOGIOR, LOGIOR, LOGNOT, LOGXOR, LOGXOR, longValue, minusp, MINUSP, MOD, MOD, multiplyBy, multiplyBy, negate, noFillPointer, NOT, NTH, NTH, nthcdr, numberp, NUMBERP, NUMERATOR, oddp, ODDP, plusp, PLUSP, psxhash, push, rationalp, RATIONALP, realp, REALP, resolve, RPLACA, RPLACD, SCHAR, setCallCount, setCar, setCdr, setDocumentation, setHotCount, setPropertyList, setSlotValue_0, setSlotValue_1, setSlotValue_2, setSlotValue_3, setSlotValue, setSlotValue, SIMPLE_STRING_P, SLOT_VALUE, STRING, stringp, STRINGP, subtract, subtract, SVREF, svset, sxhash, SYMBOLP, truncate, typeOf, unreadableString, unreadableString, unreadableString, unreadableString, VECTOR_PUSH_EXTEND, VECTOR_PUSH_EXTEND, VECTORP, vectorPushExtend, zerop, ZEROP
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LONG_MASK

protected static final int LONG_MASK
See Also:
Constant Field Values

capacity

protected int capacity

bits

protected long[] bits
Constructor Detail

AbstractBitVector

public AbstractBitVector()
Method Detail

typep

public LispObject typep(LispObject type)
Overrides:
typep in class AbstractVector

classOf

public LispObject classOf()
Overrides:
classOf in class LispObject

capacity

public final int capacity()
Specified by:
capacity in class AbstractVector

getElementType

public final LispObject getElementType()
Specified by:
getElementType in class AbstractArray

equal

public boolean equal(LispObject obj)
Overrides:
equal in class LispObject

equalp

public boolean equalp(LispObject obj)
Overrides:
equalp in class AbstractVector

fill

public void fill(LispObject obj)
Specified by:
fill in class AbstractArray

subseq

public LispObject subseq(int start,
                         int end)
Specified by:
subseq in class AbstractVector

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

writeToString

public java.lang.String writeToString()
Overrides:
writeToString in class AbstractVector

reverse

public LispObject reverse()
Specified by:
reverse in class AbstractVector

getBit

protected abstract int getBit(int index)

setBit

protected abstract void setBit(int index)

clearBit

protected abstract void clearBit(int index)