summaryrefslogtreecommitdiff
path: root/src/nodedumper.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2010-03-29 01:31:47 (GMT)
committerMarius Kintel <marius@kintel.net>2010-10-31 00:42:35 (GMT)
commit184d0e041f6279dba5d1f6348f973478ae133a3a (patch)
treedccc0d26fd5b14e4f5ca834290e7f588febfcbe4 /src/nodedumper.h
parent34a8206410f049f566535b1d795b4e89950c6a6f (diff)
Initial implementation of CGALRenderer
Diffstat (limited to 'src/nodedumper.h')
-rw-r--r--src/nodedumper.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nodedumper.h b/src/nodedumper.h
index a28b8ad..ca76814 100644
--- a/src/nodedumper.h
+++ b/src/nodedumper.h
@@ -21,6 +21,11 @@ public:
const string &getDump() const;
const NodeCache<string> &getCache() const { return this->cache; }
+ void clearCache() { this->cache.clear(); }
+
+ // FIXME: Questionable design...
+ static NodeDumper *dumper() { return global_dumper; }
+ static void setDumper(NodeDumper *d) { global_dumper = d; }
private:
void handleVisitedChildren(const State &state, const AbstractNode &node);
bool isCached(const AbstractNode &node);
@@ -32,6 +37,8 @@ private:
typedef list<const AbstractNode *> ChildList;
map<int, ChildList> visitedchildren;
NodeCache<string> cache;
+
+ static NodeDumper *global_dumper;
};
#endif
contact: Jan Huwald // Impressum