Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

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 ostream& operator<<(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 } //namespace abacus
Base class of all other classes of ABACUS.
Definition: abacusroot.h:64
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Sense of constraints.
Definition: csense.h:48
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(const SENSE s)
Initializes the sense to s.
Definition: csense.h:60
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
ostream & operator<<(ostream &out, const Active< BaseType, CoType > &rhs)
CSense()
Default constructor, sense is undefined.
Definition: csense.h:54