Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00044 #ifdef _MSC_VER
00045 #pragma once
00046 #endif
00047
00048
00049
00050 #ifndef OGDF_EMBED_INDICATOR_H
00051 #define OGDF_EMBED_INDICATOR_H
00052
00053
00054
00055 #include <ogdf/internal/planarity/PQNode.h>
00056 #include <ogdf/internal/planarity/PQNodeKey.h>
00057 #include <ogdf/internal/planarity/PQInternalKey.h>
00058 #include <ogdf/internal/planarity/EmbedKey.h>
00059
00060 namespace ogdf{
00061
00062
00063 #define INDICATOR 6
00064
00065 class EmbedIndicator : public PQNode<edge,indInfo*,bool>
00066 {
00067 public:
00068
00069 EmbedIndicator(int count,PQNodeKey<edge,indInfo*,bool>* infoPtr)
00070 : PQNode<edge,indInfo*,bool>(count,infoPtr) { }
00071
00072 virtual ~EmbedIndicator() {
00073 delete getNodeInfo()->userStructInfo();
00074 delete getNodeInfo();
00075 }
00076
00077 PQNodeType type() const { return leaf; }
00078
00079 void type(PQNodeType) { }
00080
00081 int status() const { return INDICATOR; }
00082
00083 void status(int) { }
00084
00085 int mark() const { return UNMARKED; }
00086
00087 void mark(int) { }
00088
00089 PQLeafKey<edge,indInfo*,bool>* getKey() const { return 0; }
00090
00091 bool setKey(PQLeafKey<edge,indInfo*,bool>* pointerToKey) {
00092 return (pointerToKey == 0);
00093 }
00094
00095 PQInternalKey<edge,indInfo*,bool>* getInternal() const { return 0; }
00096
00097 bool setInternal(PQInternalKey<edge,indInfo*,bool>* pointerToInternal) {
00098 return (pointerToInternal == 0);
00099 };
00100 };
00101
00102
00103 }
00104
00105 #endif
00106