Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

slackstat.h
Go to the documentation of this file.
1 
30 #pragma once
31 
33 
34 namespace abacus {
35 
36 class AbacusGlobal;
37 
38 
40 
47 class SlackStat : public AbacusRoot {
48 public:
49 
51  enum STATUS {
61  };
62 
65 
67 
70  SlackStat(STATUS status) : status_(status) { }
71 
73 
83  friend std::ostream &operator<<(std::ostream& out, const SlackStat &rhs);
84 
86  STATUS status() const { return status_; }
87 
88 
90 
93  void status(STATUS stat) { status_ = stat; }
94 
95 
97 
100  void status(const SlackStat *stat) { status_ = stat->status_; }
101 
102 
103 private:
104 
106 
108 };
109 
110 }
STATUS
The different statuses of a slack variable.
Definition: slackstat.h:51
Base class of all other classes of ABACUS.
Definition: abacusroot.h:68
SlackStat(STATUS status)
Initializes the status to status.
Definition: slackstat.h:70
The status of the slack variable is not known since no linear program with the corresponding constrai...
Definition: slackstat.h:60
friend std::ostream & operator<<(std::ostream &out, const SlackStat &rhs)
Output operator for slack statuses.
STATUS status_
The status of the slack variable.
Definition: slackstat.h:105
SlackStat()
Initializes the status to Unknown.
Definition: slackstat.h:64
void status(const SlackStat *stat)
Sets the status to the status of stat.
Definition: slackstat.h:100
The slack variable does not belong to the basis and has a nonzero value.
Definition: slackstat.h:57
#define OGDF_NEW_DELETE
Makes the class use OGDF&#39;s memory allocator.
Definition: memory.h:84
Status of slack variables.
Definition: slackstat.h:47
The slack variable belongs to the basis.
Definition: slackstat.h:53
STATUS status() const
Returns the status of the slack variable.
Definition: slackstat.h:86
void status(STATUS stat)
Sets the status of the slack variable to stat.
Definition: slackstat.h:93
The slack variable does not belong to the basis and has value zero.
Definition: slackstat.h:55