Macaulay2 Engine
Loading...
Searching...
No Matches

◆ display_order()

void res2_comp::display_order ( buffer & o,
int sortval ) const

Definition at line 530 of file res-a0.cpp.

531{
532 o << "[";
533 switch (sortval & FLAGS_SORT)
534 {
535 case COMPARE_LEX:
536 o << "LEX";
537 break;
539 o << "LEX1";
540 break;
542 o << "LEX2";
543 break;
544 case COMPARE_ORDER:
545 o << "ORDER";
546 break;
547 default:
548 o << "bad order";
549 break;
550 }
551 if (sortval & FLAGS_DEGREE) o << " (ascending degree first)";
552 if (sortval & FLAGS_DESCEND)
553 o << " descend";
554 else
555 o << " ascend";
556 if ((sortval & FLAGS_REVERSE) && ((sortval & FLAGS_SORT) != COMPARE_ORDER))
557 o << " reverse";
558 o << "]" << newline;
559}
char newline[]
Definition m2-types.cpp:49
const int COMPARE_LEX
Definition res-a0.hpp:78
const int COMPARE_LEX_EXTENDED
Definition res-a0.hpp:79
const int COMPARE_LEX_EXTENDED2
Definition res-a0.hpp:80
const int FLAGS_DEGREE
Definition res-a0.hpp:65
const int FLAGS_DESCEND
Definition res-a0.hpp:63
const int FLAGS_SORT
Definition res-a0.hpp:62
const int COMPARE_ORDER
Definition res-a0.hpp:81
const int FLAGS_REVERSE
Definition res-a0.hpp:64

References COMPARE_LEX, COMPARE_LEX_EXTENDED, COMPARE_LEX_EXTENDED2, COMPARE_ORDER, FLAGS_DEGREE, FLAGS_DESCEND, FLAGS_REVERSE, FLAGS_SORT, and newline.

Referenced by initialize().