Open
Graph Drawing
Framework

 v.2012.05
 

TwoLayerCrossMin.h
Go to the documentation of this file.
00001 /*
00002  * $Revision: 2299 $
00003  * 
00004  * last checkin:
00005  *   $Author: gutwenger $ 
00006  *   $Date: 2012-05-07 15:57:08 +0200 (Mon, 07 May 2012) $ 
00007  ***************************************************************/
00008  
00044 #ifdef _MSC_VER
00045 #pragma once
00046 #endif
00047 
00048 #ifndef OGDF_TWO_LAYER_CROSS_MIN_H
00049 #define OGDF_TWO_LAYER_CROSS_MIN_H
00050 
00051 
00052 
00053 #include <ogdf/layered/Hierarchy.h>
00054 
00055 
00056 namespace ogdf {
00057 
00058 
00072 class OGDF_EXPORT TwoLayerCrossMin {
00073 public:
00075     TwoLayerCrossMin() { }
00076 
00077     virtual ~TwoLayerCrossMin() { }
00078 
00084     virtual void init(const Hierarchy & /*H*/) { }
00085 
00092     virtual void call(Level &L) = 0;
00093 
00100     void operator()(Level &level) {
00101         call(level);
00102     }
00103 
00105     virtual void cleanup() { }
00106 
00107     OGDF_MALLOC_NEW_DELETE
00108 };
00109 
00110 
00111 } // end namespace ogdf
00112 
00113 
00114 #endif