public class BDDFactoryIntImpl.IntBDDVarSet extends BDDVarSet
BDDVarSet.DefaultImpl
Modifier | Constructor and Description |
---|---|
protected |
IntBDDVarSet(int v) |
Modifier and Type | Method and Description |
---|---|
protected int |
do_intersect(int v1,
int v2) |
protected int |
do_union(int v1,
int v2) |
protected int |
do_unionvar(int v,
int var) |
boolean |
equals(BDDVarSet that)
Returns true if the sets are equal.
|
void |
free() |
BDDFactory |
getFactory()
Returns the factory that created this BDDVarSet.
|
int |
hashCode() |
BDDVarSet |
id() |
BDDVarSet |
intersect(BDDVarSet b)
Returns a new BDDVarSet that is the union of the current BDDVarSet
and the given BDDVarSet.
|
BDDVarSet |
intersectWith(BDDVarSet b)
Modifies this BDDVarSet to include all of the vars in the given set.
|
boolean |
isEmpty() |
int |
size() |
int[] |
toArray() |
BDD |
toBDD() |
int[] |
toLevelArray() |
BDDVarSet |
union(BDDVarSet b)
Returns a new BDDVarSet that is the union of the current BDDVarSet
and the given BDDVarSet.
|
BDDVarSet |
union(int var)
Returns a new BDDVarSet that is the union of the current BDDVarSet
and the given variable.
|
BDDVarSet |
unionWith(BDDVarSet b)
Modifies this BDDVarSet to include all of the vars in the given set.
|
BDDVarSet |
unionWith(int var)
Modifies this BDDVarSet to include the given variable.
|
equals, getDomains, toString
public boolean equals(BDDVarSet that)
BDDVarSet
public BDDFactory getFactory()
BDDVarSet
Returns the factory that created this BDDVarSet.
getFactory
in class BDDVarSet
protected int do_intersect(int v1, int v2)
public BDDVarSet intersect(BDDVarSet b)
BDDVarSet
Returns a new BDDVarSet that is the union of the current BDDVarSet and the given BDDVarSet. This constructs a new set; neither the current nor the given BDDVarSet is modified.
public BDDVarSet intersectWith(BDDVarSet b)
BDDVarSet
Modifies this BDDVarSet to include all of the vars in the given set. This modifies the current set in place and consumes the given set.
intersectWith
in class BDDVarSet
b
- BDDVarSet to union inpublic int[] toLevelArray()
toLevelArray
in class BDDVarSet
protected int do_unionvar(int v, int var)
protected int do_union(int v1, int v2)
public BDDVarSet union(BDDVarSet b)
BDDVarSet
Returns a new BDDVarSet that is the union of the current BDDVarSet and the given BDDVarSet. This constructs a new set; neither the current nor the given BDDVarSet is modified.
public BDDVarSet union(int var)
BDDVarSet
Returns a new BDDVarSet that is the union of the current BDDVarSet and the given variable. This constructs a new set; the current BDDVarSet is not modified.
public BDDVarSet unionWith(BDDVarSet b)
BDDVarSet
Modifies this BDDVarSet to include all of the vars in the given set. This modifies the current set in place and consumes the given set.
Copyright © 2020. All rights reserved.