|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavaewah.NonEmptyVirtualStorage
public class NonEmptyVirtualStorage
This is a BitmapStorage that can be used to determine quickly if the result of an operation is non-trivial... that is, whether there will be at least on set bit.
Constructor Summary | |
---|---|
NonEmptyVirtualStorage()
|
Method Summary | |
---|---|
int |
add(long newdata)
If the word to be added is non-zero, a NonEmptyException exception is thrown. |
long |
addStreamOfDirtyWords(long[] data,
long start,
long number)
throws a NonEmptyException exception |
int |
addStreamOfEmptyWords(boolean v,
long number)
If the boolean value is true, then it throws a NonEmptyException exception, otherwise, nothing happens. |
long |
addStreamOfNegatedDirtyWords(long[] data,
long start,
long number)
throws a NonEmptyException exception |
void |
setSizeInBits(int bits)
Does nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NonEmptyVirtualStorage()
Method Detail |
---|
public int add(long newdata)
add
in interface BitmapStorage
newdata
- the word
BitmapStorage.add(long)
public int addStreamOfEmptyWords(boolean v, long number)
addStreamOfEmptyWords
in interface BitmapStorage
v
- zeros or onesnumber
- how many to words add
BitmapStorage.addStreamOfEmptyWords(boolean, long)
public long addStreamOfDirtyWords(long[] data, long start, long number)
addStreamOfDirtyWords
in interface BitmapStorage
data
- the dirty wordsstart
- the starting point in the arraynumber
- the number of dirty words to add
BitmapStorage.addStreamOfDirtyWords(long[], long, long)
public long addStreamOfNegatedDirtyWords(long[] data, long start, long number)
addStreamOfNegatedDirtyWords
in interface BitmapStorage
data
- the dirty wordsstart
- the starting point in the arraynumber
- the number of dirty words to add
BitmapStorage.addStreamOfNegatedDirtyWords(long[], long, long)
public void setSizeInBits(int bits)
setSizeInBits
in interface BitmapStorage
bits
- number of bitsBitmapStorage.setSizeInBits(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |