Exemple #1
0
 /**
  * Calls Functor::operator(APMonom& m) for each monom of the formula.
  * Formula has to be in DNF!
  */
 //template <class Functor>
 public void forEachMonom(EdgeCreator f)
 {
     if (getType() == type_t.T_OR)
     {
         getLeft().forEachMonom(f);
         getRight().forEachMonom(f);
     }
     else
     {
         APMonom m = this.toMonom();
         f.apply(m);
     }
 }
Exemple #2
0
 /**
  * Calls Functor::operator(APMonom& m) for each monom of the formula.
  * Formula has to be in DNF!
  */
 //template <class Functor>
 public void forEachMonom(EdgeCreator f)
 {
     getRootNode().forEachMonom(f);
 }
Exemple #3
0
 /**
  * Calls Functor::operator(APMonom& m) for each monom of the formula.
  * Formula has to be in DNF!
  */
 //template <class Functor>
 public void forEachMonom(EdgeCreator f)
 {
     if (getType() == type_t.T_OR)
     {
         getLeft().forEachMonom(f);
         getRight().forEachMonom(f);
     }
     else
     {
         APMonom m = this.toMonom();
         f.apply(m);
     }
 }
Exemple #4
0
 /**
  * Calls Functor::operator(APMonom& m) for each monom of the formula.
  * Formula has to be in DNF!
  */
 //template <class Functor>
 public void forEachMonom(EdgeCreator f)
 {
     getRootNode().forEachMonom(f);
 }