Changeset c585b86 in tol


Ignore:
Timestamp:
Feb 24, 2011, 5:19:28 PM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
600038a
Parents:
c31ee19
Message:

Fixes #995

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3248 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/set_type/setgra.cpp

    rc31ee19 rc585b86  
    15271527//--------------------------------------------------------------------
    15281528{
     1529  BList* result   = NIL;
     1530  BSet& orig = Set(Arg(1));
     1531  if(orig.Card()==0) { return; }
     1532  else if(orig.Card()==1)
     1533  {
     1534    BUserSet* cl = NewSet("","Class 1",orig.ToList(),
     1535                          NIL, BSet::Generic);
     1536    result = NCons(cl);
     1537    contens_.RobStruct(result,NIL,BSet::Generic);
     1538    return;
     1539  }
     1540  BSet sorted = orig;
    15291541  BCode&  code    = Code(Arg(2));
    1530   BList* result   = NIL;
    15311542  BList* aux      = NIL;
    15321543  BList* classLst = NIL;
    … …  
    15371548  if(relationType == "partial order")
    15381549  {
    1539     BSet sorted = Set(Arg(1));
    15401550    BInt m = 1;
    1541     if(sorted.Card()<=1)
    1542     {
    1543       BUserSet* cl = NewSet("","Class 1",sorted.ToList(),
    1544                             NIL, BSet::Generic);
    1545       result = NCons(cl);
    1546       contens_.RobStruct(result,NIL,BSet::Generic);
    1547       return;
    1548     }
    15491551  //Std(Out()+"\nClassifing by "+Code(Arg(2))->Name()+ " criterium");
    15501552    if(!sorted.Sort(code))
Note: See TracChangeset for help on using the changeset viewer.