diff options
author | Marius Kintel <marius@kintel.net> | 2012-01-09 22:59:53 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-01-09 23:01:50 (GMT) |
commit | 22b98cd05217acf0bf78969a3baaf4568781670f (patch) | |
tree | 005e046609df534e12f202e2233a3ba20b1d1abc /src/CGALCache.h | |
parent | c513ad9a287ee1b5cc5e456c665792958649e2ed (diff) |
Updated cache handling to keep the root node and issue a warning if it didn't fit into the cache. Better debug output
Diffstat (limited to 'src/CGALCache.h')
-rw-r--r-- | src/CGALCache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CGALCache.h b/src/CGALCache.h index ee4c6c3..831ef27 100644 --- a/src/CGALCache.h +++ b/src/CGALCache.h @@ -13,8 +13,8 @@ public: static CGALCache *instance() { if (!inst) inst = new CGALCache; return inst; } bool contains(const std::string &id) const { return this->cache.contains(id); } - const class CGAL_Nef_polyhedron &get(const std::string &id) const { return *this->cache[id]; } - void insert(const std::string &id, const CGAL_Nef_polyhedron &N); + const class CGAL_Nef_polyhedron &get(const std::string &id) const; + bool insert(const std::string &id, const CGAL_Nef_polyhedron &N); size_t maxSize() const; void setMaxSize(size_t limit); void clear(); |