Open
Graph Drawing
Framework

 v.2012.07
 

Module.h
Go to the documentation of this file.
1 /*
2  * $Revision: 2523 $
3  *
4  * last checkin:
5  * $Author: gutwenger $
6  * $Date: 2012-07-02 20:59:27 +0200 (Mon, 02 Jul 2012) $
7  ***************************************************************/
8 
43 #ifdef _MSC_VER
44 #pragma once
45 #endif
46 
47 
48 #ifndef OGDF_MODULE_H
49 #define OGDF_MODULE_H
50 
51 
52 #include <ogdf/basic/basic.h>
53 
54 namespace ogdf {
55 
56 
68 {
69 public:
71  enum ReturnType {
77  retError
78  };
79 
81  Module() { }
82 
83  virtual ~Module() { }
84 
86  static bool isSolution(ReturnType ret) {
87  return ret == retFeasible || ret == retOptimal || ret == retTimeoutFeasible;
88  }
89 };
90 
91 
92 } // end namespace ogdf
93 
94 
95 #endif