Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

csense.h
Go to the documentation of this file.
1 
31 #pragma once
32 
34 
35 #pragma GCC visibility push(default)
36 namespace abacus {
37 
38 class AbacusGlobal;
39 
40 
42 
49 class OGDF_EXPORT CSense : public AbacusRoot {
50 public:
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 
112 private:
113 
115 };
116 
117 }
118 #pragma GCC visibility pop
abacus::operator<<
std::ostream & operator<<(std::ostream &out, const Active< BaseType, CoType > &rhs)
abacusroot.h
abacus
Definition: ILPClusterPlanarity.h:50
abacus::CSense::CSense
CSense(const SENSE s)
Initializes the sense to s.
Definition: csense.h:61
abacus::CSense::CSense
CSense()
Default constructor, sense is undefined.
Definition: csense.h:55
abacus::CSense::sense
void sense(SENSE s)
Changes the sense of the constraint.
Definition: csense.h:104
abacus::AbacusRoot
Base class of all other classes of ABACUS.
Definition: abacusroot.h:69
abacus::CSense::sense
SENSE sense() const
Returns the sense of the constraint.
Definition: csense.h:98
abacus::CSense::operator=
const CSense & operator=(SENSE rhs)
Assignment operator.
Definition: csense.h:92
abacus::CSense::sense_
SENSE sense_
Stores the sense of a constraint.
Definition: csense.h:114
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition: config.h:117
abacus::CSense
Sense of constraints.
Definition: csense.h:49
abacus::CSense::SENSE
SENSE
Definition: csense.h:52