public class SharedHybridSet extends PointsToSetInternal
PointsToSetInternal.P2SetVisitorDefaultTrue, PointsToSetInternal.P2SetVisitorInt| Modifier and Type | Field and Description |
|---|---|
static int |
OVERFLOW_SIZE |
static int |
OVERFLOW_THRESHOLD
The max number of elements allowed in the set before creating a new
bitvector for it.
|
type| Constructor and Description |
|---|
SharedHybridSet(Type type,
PAG pag) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Node n)
Adds n to this set, returns true if n was not already in this set.
|
boolean |
addAll(PointsToSetInternal other,
PointsToSetInternal exclude)
Adds contents of other minus the contents of exclude into this set;
returns true if this set changed.
|
boolean |
contains(Node n)
When the overflow list overflows, the maximum number of elements that may
remain in the overflow list (the rest are moved into the base bit vector)
|
boolean |
forall(P2SetVisitor v)
Calls v's visit method on all nodes in this set.
|
static P2SetFactory |
getFactory() |
boolean |
isEmpty()
Returns true if this set contains no run-time objects.
|
int |
size() |
flushNew, getBitMask, getNewSet, getOldSet, getType, hasNonEmptyIntersection, mergeWith, pointsToSetEquals, pointsToSetHashCode, possibleClassConstants, possibleStringConstants, possibleTypes, setType, toString, unFlushNewpublic static final int OVERFLOW_SIZE
public static final int OVERFLOW_THRESHOLD
public boolean contains(Node n)
contains in class PointsToSetInternalpublic boolean isEmpty()
PointsToSetpublic boolean add(Node n)
PointsToSetInternaladd in class PointsToSetInternalpublic boolean addAll(PointsToSetInternal other, PointsToSetInternal exclude)
PointsToSetInternaladdAll in class PointsToSetInternalpublic boolean forall(P2SetVisitor v)
PointsToSetInternalforall in class PointsToSetInternalpublic static final P2SetFactory getFactory()
public int size()
size in class PointsToSetInternal