Changeset c585b86 in tol
- Timestamp:
- Feb 24, 2011, 5:19:28 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 600038a
- Parents:
- c31ee19
- File:
-
- 1 edited
-
tol/btol/set_type/setgra.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/set_type/setgra.cpp
rc31ee19 rc585b86 1527 1527 //-------------------------------------------------------------------- 1528 1528 { 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; 1529 1541 BCode& code = Code(Arg(2)); 1530 BList* result = NIL;1531 1542 BList* aux = NIL; 1532 1543 BList* classLst = NIL; … … 1537 1548 if(relationType == "partial order") 1538 1549 { 1539 BSet sorted = Set(Arg(1));1540 1550 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 }1549 1551 //Std(Out()+"\nClassifing by "+Code(Arg(2))->Name()+ " criterium"); 1550 1552 if(!sorted.Sort(code))
Note: See TracChangeset
for help on using the changeset viewer.
