Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

csense.h
Go to the documentation of this file.
1 
31 #pragma once
32 
34 
35 namespace abacus {
36 
37 class AbacusGlobal;
38 
39 
41 
48 class OGDF_EXPORT CSense : public AbacusRoot {
49 public:
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 
111 private:
112 
114 };
115 
116 }
abacus::operator<<
std::ostream & operator<<(std::ostream &out, const Active< BaseType, CoType > &rhs)
abacusroot.h
abacus
Definition: abacusroot.h:48
abacus::CSense::CSense
CSense(const SENSE s)
Initializes the sense to s.
Definition: csense.h:60
abacus::CSense::CSense
CSense()
Default constructor, sense is undefined.
Definition: csense.h:54
abacus::CSense::sense
void sense(SENSE s)
Changes the sense of the constraint.
Definition: csense.h:103
abacus::AbacusRoot
Base class of all other classes of ABACUS.
Definition: abacusroot.h:68
abacus::CSense::sense
SENSE sense() const
Returns the sense of the constraint.
Definition: csense.h:97
abacus::CSense::operator=
const CSense & operator=(SENSE rhs)
Assignment operator.
Definition: csense.h:91
abacus::CSense::sense_
SENSE sense_
Stores the sense of a constraint.
Definition: csense.h:113
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
abacus::CSense
Sense of constraints.
Definition: csense.h:48
abacus::CSense::SENSE
SENSE
Definition: csense.h:51