summaryrefslogtreecommitdiff
path: root/src/state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.h')
-rw-r--r--src/state.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/state.h b/src/state.h
deleted file mode 100644
index 7ac8e9f..0000000
--- a/src/state.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef STATE_H_
-#define STATE_H_
-
-class State
-{
-public:
- State(const class AbstractNode *parent)
- : parentnode(parent), isprefix(false), ispostfix(false), numchildren(0) { }
- virtual ~State() {}
-
- void setPrefix(bool on) { this->isprefix = on; }
- void setPostfix(bool on) { this->ispostfix = on; }
- void setNumChildren(unsigned int numc) { this->numchildren = numc; }
- void setParent(const AbstractNode *parent) { this->parentnode = parent; }
-
- bool isPrefix() const { return this->isprefix; }
- bool isPostfix() const { return this->ispostfix; }
- unsigned int numChildren() const { return this->numchildren; }
- const AbstractNode *parent() const { return this->parentnode; }
-
-private:
- const AbstractNode * parentnode;
- bool isprefix;
- bool ispostfix;
- unsigned int numchildren;
-};
-
-#endif
contact: Jan Huwald // Impressum