From fb482d6757037f7dd5454d9fb98a3ecf424ac092 Mon Sep 17 00:00:00 2001 From: ponchio Date: Mon, 5 Dec 2011 19:54:17 +0000 Subject: [PATCH] mergin Jose parts on generic vertex attributes and removing Qt dependencies --- wrap/gcache/cache.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/wrap/gcache/cache.h b/wrap/gcache/cache.h index b9b63f5e..7b752c8f 100644 --- a/wrap/gcache/cache.h +++ b/wrap/gcache/cache.h @@ -1,6 +1,7 @@ #ifndef GCACHE_CACHE_H #define GCACHE_CACHE_H +#include #include #include #include @@ -42,19 +43,19 @@ public: protected: ///max space available - quint64 s_max; + uint64_t s_max; ///current space used - quint64 s_curr; + uint64_t s_curr; public: - Cache(quint64 _capacity = INT_MAX): + Cache(uint64_t _capacity = INT_MAX): final(false), quit(false), changed(false), input(NULL), s_max(_capacity), s_curr(0) {} virtual ~Cache() {} void setInputCache(Provider *p) { input = p; } - quint64 capacity() { return s_max; } - quint64 size() { return s_curr; } - void setCapacity(quint64 c) { s_max = c; } + uint64_t capacity() { return s_max; } + uint64_t size() { return s_curr; } + void setCapacity(uint64_t c) { s_max = c; } ///return true if the cache is waiting for priority to change bool isChanged() {