summaryrefslogtreecommitdiff
path: root/src/nodecache.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/nodecache.h
parent34a8206410f049f566535b1d795b4e89950c6a6f (diff)
Initial implementation of CGALRenderer
Diffstat (limited to 'src/nodecache.h')
-rw-r--r--src/nodecache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nodecache.h b/src/nodecache.h
index 943f904..efd5104 100644
--- a/src/nodecache.h
+++ b/src/nodecache.h
@@ -25,6 +25,10 @@ public:
if (this->cache.size() > node.index()) this->cache[node.index()] = nullvalue;
}
+ void clear() {
+ this->cache.clear();
+ }
+
private:
std::vector<T> cache;
T nullvalue;
contact: Jan Huwald // Impressum