public class DoublePointsToSet extends PointsToSetInternal
| Modifier and Type | Field and Description |
|---|---|
protected HybridPointsToSet |
newSet |
protected HybridPointsToSet |
oldSet |
| Constructor and Description |
|---|
DoublePointsToSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int idx)
Adds n to this set, returns true if idx was not already in this set.
|
boolean |
addAll(PointsToSetInternal other,
PointsToSetInternal exclude)
Adds contents of other into this set, returns true if this set changed.
|
void |
clear() |
boolean |
contains(int idx)
Returns true iff the set contains idx.
|
void |
flushNew()
Sets all newly-added nodes to old nodes.
|
boolean |
forall(P2SetVisitor v)
Calls v's visit method on all nodes in this set.
|
HybridPointsToSet |
getNewSet()
Returns set of newly-added nodes since last call to flushNew.
|
HybridPointsToSet |
getNewSetCopy() |
HybridPointsToSet |
getOldSet()
Returns set of nodes already present before last call to flushNew.
|
boolean |
hasNonEmptyIntersection(PointsToSetInternal other)
Returns true if this set shares some objects with other.
|
boolean |
isEmpty()
Returns true if this set contains no run-time objects.
|
Iterator<Integer> |
iterator() |
int |
size() |
protected HybridPointsToSet newSet
protected HybridPointsToSet oldSet
public boolean isEmpty()
isEmpty in class PointsToSetInternalpublic boolean hasNonEmptyIntersection(PointsToSetInternal other)
hasNonEmptyIntersection in class PointsToSetInternalpublic int size()
size in class PointsToSetInternalpublic Iterator<Integer> iterator()
iterator in class PointsToSetInternalpublic void clear()
clear in class PointsToSetInternalpublic boolean addAll(PointsToSetInternal other, PointsToSetInternal exclude)
addAll in class PointsToSetInternalpublic boolean forall(P2SetVisitor v)
forall in class PointsToSetInternalpublic boolean add(int idx)
add in class PointsToSetInternalpublic HybridPointsToSet getOldSet()
public HybridPointsToSet getNewSet()
public HybridPointsToSet getNewSetCopy()
public void flushNew()
public boolean contains(int idx)
contains in class PointsToSetInternalCopyright © 2024 Soot OSS. All rights reserved.