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
35#pragma GCC visibility push(default)
36namespace abacus {
37
38class AbacusGlobal;
39
40
42
50public:
51
52 enum SENSE { Less, Equal, Greater };
53
55 CSense() { }
56
58
61 CSense(const SENSE s) : sense_(s) { }
62
64
70 CSense(char s);
71
73
81 friend OGDF_EXPORT std::ostream& operator<<(std::ostream &out, const CSense &rhs);
82
84
92 const CSense &operator=(SENSE rhs) {
93 sense_ = rhs;
94 return *this;
95 }
96
98 SENSE sense() const { return sense_; }
99
101
104 void sense(SENSE s) { sense_ = s; }
105
107
110 void sense(char s);
111
112private:
113
115};
116
117}
118#pragma GCC visibility pop
Base class of all other classes of ABACUS.
Definition abacusroot.h:69
Sense of constraints.
Definition csense.h:49
SENSE sense_
Stores the sense of a constraint.
Definition csense.h:114
SENSE sense() const
Returns the sense of the constraint.
Definition csense.h:98
friend std::ostream & operator<<(std::ostream &out, const CSense &rhs)
Output operator for constraint senses.
CSense()
Default constructor, sense is undefined.
Definition csense.h:55
const CSense & operator=(SENSE rhs)
Assignment operator.
Definition csense.h:92
void sense(SENSE s)
Changes the sense of the constraint.
Definition csense.h:104
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:61
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 dynamic library (shared object / DLL),...
Definition config.h:117