#include <BooleSet.h>
Public Types | |
typedef BooleSet | self |
Generic access to type of *this. | |
typedef CTypes::dd_type | base |
Generic access to base type. | |
typedef base | dd_type |
Generic access to underlying diagram type. | |
typedef base::navigator | navigator |
Iterator type for navigation throught Cudd's ZDDs structure. | |
typedef base::size_type | size_type |
Define size type. | |
typedef base::idx_type | idx_type |
Define index type. | |
typedef BooleMonomial | term_type |
Type of terms. | |
typedef BooleExponent | exp_type |
Fix type for treatment of exponent vectors. | |
typedef BooleRing | ring_type |
Type for Boolean polynomial rings (without ordering). | |
typedef CGenericIter< LexOrder, navigator, term_type > | const_iterator |
Iterator type for iterating all monomials. | |
typedef CGenericIter< LexOrder, navigator, exp_type > | exp_iterator |
Iterator type for iterating all exponent vectors. | |
Public Member Functions | |
BooleSet () | |
Default constructor. | |
BooleSet (const self &rhs) | |
Copy constructor. | |
BooleSet (const base &rhs) | |
Copy constructor. | |
BooleSet (idx_type idx, const self &first, const self &second) | |
Construct new node. | |
BooleSet (idx_type idx, navigator first, navigator second, const ring_type &ring) | |
Construct new node (using navigator nodes). | |
BooleSet (idx_type idx, const self &rhs) | |
Construct new node (using navigator for then and else-branches). | |
BooleSet (navigator navi, const ring_type &ring) | |
Construct one or zero set from constant. | |
~BooleSet () | |
Destructor. | |
const_iterator | begin () const |
Start of iteration over terms. | |
const_iterator | end () const |
Finish of iteration over terms. | |
exp_iterator | expBegin () const |
Start of iteration over exponent vectors. | |
exp_iterator | expEnd () const |
Finish of iteration over exponent vectors. | |
self & | operator= (const self &) |
Assignment operator. | |
term_type | usedVariables () const |
Set of variables of the whole set. | |
exp_type | usedVariablesExp () const |
Exponent vector of variables of the whole set. | |
self & | addAssign (const term_type &) |
Add given monomial to sets and assign. | |
self | add (const term_type &) const |
Add given monomial to sets. | |
bool_type | owns (const term_type &) const |
Check whether rhs is included in *this. | |
bool_type | owns (const exp_type &) const |
Check whether rhs is included in *this. | |
term_type | lastLexicographicalTerm () const |
Get last term (wrt. lexicographical order). | |
self | divisorsOf (const term_type &rhs) const |
Compute intersection with divisors of rhs. | |
self | divisorsOf (const exp_type &rhs) const |
Compute intersection with divisors of rhs. | |
self | firstDivisorsOf (const self &rhs) const |
Intersection with divisors of first (lexicographical) term of rhs. | |
self | multiplesOf (const term_type &rhs) const |
Compute intersection with multiples of rhs. | |
self | divide (const term_type &rhs) const |
Division by given term. | |
self & | divideAssign (const term_type &rhs) |
Division with assignment by given term. | |
bool_type | hasTermOfVariables (const term_type &rhs) const |
Check for empty intersection with divisors of rhs. | |
self | minimalElements () const |
Get minimal elements wrt. inclusion. | |
bool_type | isSingleton () const |
Test, whether we have one term only. | |
bool_type | isSingletonOrPair () const |
Test, whether we have one or two terms only. | |
bool_type | isPair () const |
Test, whether we have two terms only. | |
self | existAbstract (const term_type &rhs) const |
Compute existential abstraction. | |
const dd_type & | diagram () const |
Access internal decision diagram. | |
self | ite (const self &then_dd, const self &else_dd) |
If-Then-Else operation. | |
self & | iteAssign (const self &then_dd, const self &else_dd) |
If-Then-Else operation with assignment. | |
self | cartesianProduct (const self &rhs) const |
Cartesean product. | |
ostream_type & | print (ostream_type &) const |
Print current set to output stream. | |
self | emptyElement () const |
Get corresponding zero element (may be removed in the future). | |
size_type | countIndex (idx_type idx) const |
Count terms containing BooleVariable(idx). | |
double | countIndexDouble (idx_type idx) const |
Count many terms containing BooleVariable(idx). | |
ring_type | ring () const |
Access ring, where this belongs to. |
typedef CTypes::dd_type BooleSet::base |
Generic access to base type.
Reimplemented from CDDInterface< CuddLikeZDD >.
Iterator type for iterating all monomials.
typedef base BooleSet::dd_type |
Generic access to underlying diagram type.
typedef CGenericIter<LexOrder, navigator, exp_type> BooleSet::exp_iterator |
Iterator type for iterating all exponent vectors.
typedef BooleExponent BooleSet::exp_type |
Fix type for treatment of exponent vectors.
typedef base::idx_type BooleSet::idx_type |
Define index type.
Reimplemented from CDDInterface< CuddLikeZDD >.
typedef base::navigator BooleSet::navigator |
Iterator type for navigation throught Cudd's ZDDs structure.
Reimplemented from CDDInterface< CuddLikeZDD >.
typedef BooleRing BooleSet::ring_type |
Type for Boolean polynomial rings (without ordering).
typedef BooleSet BooleSet::self |
Generic access to type of *this.
Reimplemented from CDDInterface< CuddLikeZDD >.
typedef base::size_type BooleSet::size_type |
Define size type.
Reimplemented from CDDInterface< CuddLikeZDD >.
typedef BooleMonomial BooleSet::term_type |
Type of terms.
BooleSet::BooleSet | ( | ) |
Default constructor.
References PBORI_TRACE_FUNC.
BooleSet::BooleSet | ( | const self & | rhs | ) | [inline] |
Copy constructor.
BooleSet::BooleSet | ( | const base & | rhs | ) | [inline] |
Copy constructor.
Construct new node.
BooleSet::BooleSet | ( | idx_type | idx, | |
navigator | first, | |||
navigator | second, | |||
const ring_type & | ring | |||
) | [inline] |
Construct new node (using navigator nodes).
Construct new node (using navigator for then and else-branches).
Construct one or zero set from constant.
Construct from navigator node
BooleSet::~BooleSet | ( | ) | [inline] |
Destructor.
Add given monomial to sets.
References BooleMonomial::diagram(), PBORI_TRACE_FUNC, and CDDInterface< CuddLikeZDD >::uniteAssign().
Add given monomial to sets and assign.
References operator=(), and PBORI_TRACE_FUNC.
BooleSet::const_iterator BooleSet::begin | ( | ) | const |
Start of iteration over terms.
References BooleExponent::begin(), dd_owns(), BooleExponent::end(), CDDInterface< CuddLikeZDD >::navigation(), and PBORI_TRACE_FUNC.
Cartesean product.
References CDDInterface< CuddLikeZDD >::unateProduct().
BooleSet::size_type BooleSet::countIndex | ( | idx_type | idx | ) | const |
Count terms containing BooleVariable(idx).
double BooleSet::countIndexDouble | ( | idx_type | idx | ) | const |
Count many terms containing BooleVariable(idx).
const dd_type& BooleSet::diagram | ( | ) | const [inline] |
Access internal decision diagram.
Compute intersection with divisors of rhs.
References BooleMonomial::diagram(), firstDivisorsOf(), and PBORI_TRACE_FUNC.
Compute intersection with divisors of rhs.
self BooleSet::emptyElement | ( | ) | const [inline] |
Get corresponding zero element (may be removed in the future).
Reimplemented from CDDInterface< CuddLikeZDD >.
References CDDInterface< CuddLikeZDD >::emptyElement().
BooleSet::const_iterator BooleSet::end | ( | ) | const |
Finish of iteration over terms.
BooleSet::exp_iterator BooleSet::expBegin | ( | ) | const |
Start of iteration over exponent vectors.
References PBORI_TRACE_FUNC.
Referenced by LexHelper::irreducible_lead().
BooleSet::exp_iterator BooleSet::expEnd | ( | ) | const |
Finish of iteration over exponent vectors.
References CDDInterface< CuddLikeZDD >::managerCore(), CDDInterface< CuddLikeZDD >::navigation(), and PBORI_TRACE_FUNC.
Referenced by LexHelper::irreducible_lead().
Intersection with divisors of first (lexicographical) term of rhs.
References dd_last_lexicographical_term(), and PBORI_TRACE_FUNC.
Referenced by divisorsOf().
BooleSet::bool_type BooleSet::hasTermOfVariables | ( | const term_type & | rhs | ) | const |
Check for empty intersection with divisors of rhs.
References dd_first_multiples_of(), BooleMonomial::diagram(), CDDInterface< CuddLikeZDD >::manager(), and CDDInterface< CuddLikeZDD >::navigation().
bool_type BooleSet::isPair | ( | ) | const [inline] |
Test, whether we have two terms only.
References dd_is_pair(), and CDDInterface< CuddLikeZDD >::navigation().
bool_type BooleSet::isSingleton | ( | ) | const [inline] |
Test, whether we have one term only.
References dd_is_singleton(), and CDDInterface< CuddLikeZDD >::navigation().
bool_type BooleSet::isSingletonOrPair | ( | ) | const [inline] |
Test, whether we have one or two terms only.
References dd_is_singleton_or_pair(), and CDDInterface< CuddLikeZDD >::navigation().
If-Then-Else operation.
References CDDInterface< CuddLikeZDD >::ite().
If-Then-Else operation with assignment.
References CDDInterface< CuddLikeZDD >::iteAssign().
BooleSet::term_type BooleSet::lastLexicographicalTerm | ( | ) | const |
Get last term (wrt. lexicographical order).
References PBORI_TRACE_FUNC.
BooleSet BooleSet::minimalElements | ( | ) | const |
Get minimal elements wrt. inclusion.
Reimplemented from CDDInterface< CuddLikeZDD >.
Compute intersection with multiples of rhs.
Assignment operator.
Referenced by addAssign().
BooleSet::bool_type BooleSet::owns | ( | const exp_type & | rhs | ) | const |
Check whether rhs is included in *this.
References BooleMonomial::diagram(), CDDInterface< CuddLikeZDD >::emptiness(), CDDInterface< CuddLikeZDD >::intersect(), and PBORI_TRACE_FUNC.
BooleSet::bool_type BooleSet::owns | ( | const term_type & | rhs | ) | const |
Check whether rhs is included in *this.
References PBORI_TRACE_FUNC.
BooleSet::ostream_type & BooleSet::print | ( | ostream_type & | os | ) | const |
Print current set to output stream.
Reimplemented from CDDInterface< CuddLikeZDD >.
Referenced by operator<<().
ring_type BooleSet::ring | ( | ) | const [inline] |
Access ring, where this belongs to.
References CDDInterface< CuddLikeZDD >::manager().
Referenced by LiteralFactorization::LiteralFactorization().
BooleSet::term_type BooleSet::usedVariables | ( | ) | const |
Set of variables of the whole set.
Referenced by usedVariablesExp().
BooleSet::exp_type BooleSet::usedVariablesExp | ( | ) | const |
Exponent vector of variables of the whole set.
References PBORI_TRACE_FUNC, and usedVariables().