carl
24.04
Computer ARithmetic Library
CompareResult.h
Go to the documentation of this file.
1
/**
2
* @file CompareResult.h
3
* @author Sebastian Junges
4
*/
5
6
#pragma once
7
8
#include <ostream>
9
10
namespace
carl
11
{
12
enum class
CompareResult
{
LESS
= -1,
EQUAL
= 0,
GREATER
= 1 };
13
14
inline
std::ostream&
operator<<
(std::ostream& os,
CompareResult
cr) {
15
switch
(cr) {
16
case
CompareResult::LESS
:
return
os <<
"LESS"
;
17
case
CompareResult::EQUAL
:
return
os <<
"EQUAL"
;
18
case
CompareResult::GREATER
:
return
os <<
"GREATER"
;
19
}
20
}
21
}
carl
carl is the main namespace for the library.
carl::operator<<
std::ostream & operator<<(std::ostream &os, const BasicConstraint< Poly > &c)
Prints the given constraint on the given stream.
Definition:
BasicConstraint.h:150
carl::CompareResult
CompareResult
Definition:
CompareResult.h:12
carl::EQUAL
@ EQUAL
Definition:
SignCondition.h:15
carl::LESS
@ LESS
Definition:
SignCondition.h:15
carl::GREATER
@ GREATER
Definition:
SignCondition.h:15
carl-arith
core
CompareResult.h
Generated by
1.9.1