Package qilin.core.sets
Class PointsToSetInternal
java.lang.Object
qilin.core.sets.PointsToSetInternal
- Direct Known Subclasses:
DoublePointsToSet,HybridPointsToSet
Abstract base class for implementations of points-to sets.
- Author:
- Ondrej Lhotak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanadd(int idx) Adds node index idx to this set, returns true if idx was not already in this set.abstract booleanaddAll(PointsToSetInternal other, PointsToSetInternal exclude) abstract voidclear()abstract booleancontains(int idx) Returns true iff the set contains the node number index.abstract booleanCalls v's visit method on all nodes in this set.booleanabstract booleanisEmpty()iterator()abstract intsize()
-
Constructor Details
-
PointsToSetInternal
public PointsToSetInternal()
-
-
Method Details
-
forall
Calls v's visit method on all nodes in this set. -
addAll
-
add
public abstract boolean add(int idx) Adds node index idx to this set, returns true if idx was not already in this set. -
contains
public abstract boolean contains(int idx) Returns true iff the set contains the node number index. -
iterator
-
clear
public abstract void clear() -
isEmpty
public abstract boolean isEmpty() -
hasNonEmptyIntersection
-
size
public abstract int size()
-