Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
csense.h
Go to the documentation of this file.
1
31#pragma once
32
34
35namespace abacus {
36
37class AbacusGlobal;
38
39
41
49public:
50
51 enum SENSE { Less, Equal, Greater };
52
54 CSense() { }
55
57
60 CSense(const SENSE s) : sense_(s) { }
61
63
69 CSense(char s);
70
72
80 friend OGDF_EXPORT std::ostream& operator<<(std::ostream &out, const CSense &rhs);
81
83
91 const CSense &operator=(SENSE rhs) {
92 sense_ = rhs;
93 return *this;
94 }
95
97 SENSE sense() const { return sense_; }
98
100
103 void sense(SENSE s) { sense_ = s; }
104
106
109 void sense(char s);
110
111private:
112
114};
115
116}
Base class of all other classes of ABACUS.
Definition abacusroot.h:68
Sense of constraints.
Definition csense.h:48
SENSE sense_
Stores the sense of a constraint.
Definition csense.h:113
SENSE sense() const
Returns the sense of the constraint.
Definition csense.h:97
friend std::ostream & operator<<(std::ostream &out, const CSense &rhs)
Output operator for constraint senses.
CSense()
Default constructor, sense is undefined.
Definition csense.h:54
const CSense & operator=(SENSE rhs)
Assignment operator.
Definition csense.h:91
void sense(SENSE s)
Changes the sense of the constraint.
Definition csense.h:103
CSense(char s)
Initializes the sense of the constraint specified with a single letter.
CSense(const SENSE s)
Initializes the sense to s.
Definition csense.h:60
void sense(char s)
Changes the sense of the constraint given a letter s.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101