Changeset ffb732 in git for factory/cfCharSets.cc


Ignore:
Timestamp:
Aug 26, 2014, 12:17:46 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
d1a30265ddb8a7ddc9d68bb7a60e37212c7f06b0
Parents:
8b7b108474a7f7dcc5bffc2636ab9027c6131d3d
git-author:
Martin Lee <martinlee84@web.de>2014-08-26 12:17:46+02:00
git-committer:
Martin Lee <martinlee84@web.de>2014-08-26 12:29:12+02:00
Message:
replaced isSame, isMember, MyUnion, minus by new templates
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cfCharSets.cc

    r8b7b108 rffb732  
    437437    l= tmp.getFirst();
    438438
    439     tmp= minus (tmp, l);
     439    tmp= Difference (tmp, l, operator==);
    440440
    441441    select (ppi, l.length(), ppi1, ppi2);
     
    444444
    445445    if (count > 0)
    446       ppi= MyUnion (ListCFList (l), ppi1);
     446      ppi= Union (ppi1, ListCFList (l), operator==);
    447447    else
    448448      ppi= ListCFList();
     
    455455    if (charset.length() > 0 && charset.getFirst().level() > 0)
    456456    {
    457       result= MyUnion (result, ListCFList (charset));
     457      result= Union (ListCFList (charset), result, operator==);
    458458      ini= factorsOfInitials (charset);
    459459
     
    468468
    469469    tmp2= adjoin (ini, l, qqi);
    470     tmp= MyUnion (tmp, tmp2);
     470    tmp= Union (tmp2, tmp, operator==);
    471471
    472472    StoredFactors.FS1= CFList();
     
    616616    {
    617617      nr_of_iteration += 1;
    618       ppi= MyUnion (ListCFList (qs), ppi1);
     618      ppi= Union (ppi1, ListCFList (qs), operator==);
    619619    }
    620620
     
    636636        if (!isSubset (cs,qs))
    637637          cs= charSetViaCharSetN (Union (qs,cs));
    638         if (!isMember (cs, pi))
     638        if (!find (pi, cs, operator==))
    639639        {
    640           pi= MyUnion (pi, ListCFList (cs));
     640          pi= Union (ListCFList (cs), pi, operator==);
    641641          if (cs.getFirst().level() > 0)
    642642          {
     
    645645            if (indexRed <= 0) //irreducible
    646646            {
    647               qsi= MyUnion (qsi, ListCFList(cs));
     647              qsi= Union (ListCFList(cs), qsi, operator==);
    648648              if (cs.length() == highestlevel)
    649649                is= factorPSet (factorset);
     
    674674          }
    675675          is= Union (factorsOfInitials (cst), is);
    676           iss= MyUnion (adjoin (is, qs, qqi), adjoinb (ts, qs, qqi, cst));
     676          iss= Union (adjoinb (ts, qs, qqi, cst), adjoin (is, qs, qqi), operator==);
    677677        }
    678678        else
     
    685685    {
    686686      qhi.removeFirst();
    687       qhi= MyUnion (qhi, iss);
     687      qhi= Union (iss, qhi, operator==);
    688688    }
    689689    else
Note: See TracChangeset for help on using the changeset viewer.