Changeset 5ce0932 in git


Ignore:
Timestamp:
Aug 30, 2014, 1:04:36 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
3b6f1bf8adb986d207f385b4473052dca49baf56
Parents:
be56d6d38f95c7e07d9b7061b326b0851e840fe4
Message:
fix: template instantiations
Location:
factory
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • factory/cfCharSets.cc

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

    rbe56d6d r5ce0932  
    487487  {
    488488    elem= i.getItem();
    489     if ((!elem.isEmpty()) && (!find (b, elem, operator==)))
     489    if ((!elem.isEmpty()) && (!find (b, elem)))
    490490      b.insert(elem);
    491491  }
     
    509509    return iss;
    510510
    511   qhi= Difference (qh, qs, operator==);
     511  qhi= Difference (qh, qs);
    512512  length= qhi.length();
    513513
     
    547547  if (iscopy.isEmpty())
    548548    return iss;
    549   qhi= Difference (qh, qs, operator==);
     549  qhi= Difference (qh, qs);
    550550  length= qhi.length();
    551551  for (i= iscopy; i.hasItem(); i++)
     
    940940  {
    941941    iitem= i.getItem();
    942     if (!find (mem, iitem, operator==))
     942    if (!find (mem, iitem))
    943943    {
    944944      j= i;
     
    947947      {
    948948        jitem= j.getItem();
    949         if (!find (mem, jitem, operator==))
     949        if (!find (mem, jitem))
    950950        {
    951951          if (contractsub (iitem, jitem))
     
    963963    }
    964964  }
    965   return Difference (cs,ts, operator==);
    966 }
    967 
     965  return Difference (cs,ts);
     966}
     967
  • factory/ftmpl_inst.cc

    rbe56d6d r5ce0932  
    153153template int operator== (const List<CanonicalForm> &, const List<CanonicalForm> &);
    154154template List<CanonicalForm> Union ( const List<CanonicalForm> &, const List<CanonicalForm> & );
    155 template List<List<CanonicalForm> > Union ( const List<List<CanonicalForm> >&, const List<List<CanonicalForm> >&, int operator== (const List<CanonicalForm> &, const List<CanonicalForm> &));
     155template List<CFList> Union ( const List<CFList>&, const List<CFList>&);
    156156template List<CanonicalForm> Difference ( const List<CanonicalForm> &, const List<CanonicalForm> & );
    157 template List<List<CanonicalForm> > Difference ( const List<List<CanonicalForm> >&, const List<List<CanonicalForm> >&, int operator== (const List<CanonicalForm> &, const List<CanonicalForm> &));
    158 template List<List<CanonicalForm> > Difference ( const List<List<CanonicalForm> >&, const List<CanonicalForm>&, int operator== (const List<CanonicalForm> &, const List<CanonicalForm> &));
     157template List<List<CanonicalForm> > Difference ( const List<List<CanonicalForm> >&, const List<List<CanonicalForm> >&);
     158template List<List<CanonicalForm> > Difference ( const List<List<CanonicalForm> >&, const List<CanonicalForm>&);
     159
    159160template CanonicalForm prod ( const List<CanonicalForm> & );
    160161template bool find ( const List<CanonicalForm> &, const CanonicalForm&);
    161 template bool find ( const List<List<CanonicalForm> >&, const List<CanonicalForm>&, int operator== (const List<CanonicalForm> &, const List<CanonicalForm> &));
     162template bool find ( const List<List<CanonicalForm> >&, const List<CanonicalForm>&);
    162163// place here your own template stuff, not yet instantiated by factory
    163164//
  • factory/include/factory/templates/ftmpl_list.h

    rbe56d6d r5ce0932  
    127127
    128128template <class T>
     129List<T> Difference ( const List<T> & F, const T & G);
     130
     131template <class T>
    129132List<T> Difference ( const List<T> & F, const T & G, int (*ecmpf)( const T&, const T& ));
    130133
  • factory/templates/ftmpl_list.cc

    rbe56d6d r5ce0932  
    673673
    674674template <class T>
     675List<T> Difference ( const List<T> & F, const T & G)
     676{
     677    List<T> L;
     678    ListIterator<T> i;
     679    int found;
     680    for ( i = F; i.hasItem(); ++i )
     681    {
     682        found = G == i.getItem();
     683        if ( ! found )
     684            L.append( i.getItem() );
     685    }
     686    return L;
     687}
     688
     689template <class T>
    675690T prod ( const List<T> & F )
    676691{
Note: See TracChangeset for help on using the changeset viewer.