|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavaewah32.NonEmptyVirtualStorage32
public class NonEmptyVirtualStorage32
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 | |
|---|---|
NonEmptyVirtualStorage32()
|
|
| Method Summary | |
|---|---|
int |
add(int newdata)
If the word to be added is non-zero, a NonEmptyException exception is thrown. |
int |
addStreamOfDirtyWords(int[] data,
int start,
int number)
throws a NonEmptyException exception |
int |
addStreamOfEmptyWords(boolean v,
int number)
If the boolean value is true, then it throws a NonEmptyException exception, otherwise, nothing happens. |
int |
addStreamOfNegatedDirtyWords(int[] data,
int start,
int 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 NonEmptyVirtualStorage32()
| Method Detail |
|---|
public int add(int newdata)
add in interface BitmapStorage32newdata - the word
javaewah.BitmapStorage#add(int)
public int addStreamOfEmptyWords(boolean v,
int number)
addStreamOfEmptyWords in interface BitmapStorage32v - zeros or onesnumber - how many to words add
javaewah.BitmapStorage#addStreamOfEmptyWords(boolean, int)
public int addStreamOfDirtyWords(int[] data,
int start,
int number)
addStreamOfDirtyWords in interface BitmapStorage32data - the dirty wordsstart - the starting point in the arraynumber - the number of dirty words to add
javaewah.BitmapStorage#addStreamOfDirtyWords(int[], int, int)
public int addStreamOfNegatedDirtyWords(int[] data,
int start,
int number)
addStreamOfNegatedDirtyWords in interface BitmapStorage32data - the dirty wordsstart - the starting point in the arraynumber - the number of dirty words to add
javaewah.BitmapStorage#addStreamOfNegatedDirtyWords(int[], int, int)public void setSizeInBits(int bits)
setSizeInBits in interface BitmapStorage32bits - number of bitsBitmapStorage.setSizeInBits(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||