Package com.github.javabdd
Class BDDFactoryIntImpl.IntBDDVarSet
java.lang.Object
com.github.javabdd.BDDVarSet
com.github.javabdd.BDDFactoryIntImpl.IntBDDVarSet
- Direct Known Subclasses:
BDDFactoryIntImpl.IntBDDVarSetWithFinalizer,BDDFactoryIntImpl.IntZDDVarSet
- Enclosing class:
- BDDFactoryIntImpl
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.javabdd.BDDVarSet
BDDVarSet.DefaultImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intdo_intersect(int v1, int v2) protected intdo_union(int v1, int v2) protected intdo_unionvar(int v, int var) booleanequalsBDDVarSet(BDDVarSet that) Returns true if the sets are equal.voidfree()Returns the factory that created this BDDVarSet.inthashCode()id()Returns a new BDDVarSet that is the union of the current BDDVarSet and the given BDDVarSet.Modifies this BDDVarSet to include all of the vars in the given set.booleanisEmpty()intsize()int[]toArray()toBDD()int[]union(int var) Returns a new BDDVarSet that is the union of the current BDDVarSet and the given variable.Returns a new BDDVarSet that is the union of the current BDDVarSet and the given BDDVarSet.unionWith(int var) Modifies this BDDVarSet to include the given variable.Modifies this BDDVarSet to include all of the vars in the given set.Methods inherited from class com.github.javabdd.BDDVarSet
equals, getDomains, toString
-
Constructor Details
-
IntBDDVarSet
protected IntBDDVarSet(int v)
-
-
Method Details
-
equalsBDDVarSet
Description copied from class:BDDVarSetReturns true if the sets are equal.- Specified by:
equalsBDDVarSetin classBDDVarSet- Parameters:
that- other set- Returns:
- true if the sets are equal
-
free
public void free() -
getFactory
Description copied from class:BDDVarSetReturns the factory that created this BDDVarSet.- Specified by:
getFactoryin classBDDVarSet- Returns:
- factory that created this BDDVarSet
-
hashCode
public int hashCode() -
id
-
do_intersect
protected int do_intersect(int v1, int v2) -
intersect
Description copied from class:BDDVarSetReturns 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. -
intersectWith
Description copied from class:BDDVarSetModifies this BDDVarSet to include all of the vars in the given set. This modifies the current set in place and consumes the given set.- Specified by:
intersectWithin classBDDVarSet- Parameters:
b- BDDVarSet to union in- Returns:
- this
-
isEmpty
public boolean isEmpty() -
size
public int size() -
toArray
public int[] toArray() -
toBDD
-
toLevelArray
public int[] toLevelArray()- Specified by:
toLevelArrayin classBDDVarSet
-
do_unionvar
protected int do_unionvar(int v, int var) -
do_union
protected int do_union(int v1, int v2) -
union
Description copied from class:BDDVarSetReturns 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. -
union
Description copied from class:BDDVarSetReturns 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. -
unionWith
Description copied from class:BDDVarSetModifies this BDDVarSet to include all of the vars in the given set. This modifies the current set in place and consumes the given set. -
unionWith
Description copied from class:BDDVarSetModifies this BDDVarSet to include the given variable. This modifies the current set in place.
-