diff options
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/cache.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/tests/cache.cpp b/src/tests/cache.cpp new file mode 100644 index 0000000..e51c31b --- /dev/null +++ b/src/tests/cache.cpp | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | #include <stdio.h> | ||
| 2 | |||
| 3 | #include "bu/cache.h" | ||
| 4 | #include "bu/cachable.h" | ||
| 5 | |||
| 6 | class Bob : public Bu::Cachable | ||
| 7 | { | ||
| 8 | public: | ||
| 9 | Bob() | ||
| 10 | { | ||
| 11 | } | ||
| 12 | |||
| 13 | virtual ~Bob() | ||
| 14 | { | ||
| 15 | } | ||
| 16 | |||
| 17 | long getCacheId() const | ||
| 18 | { | ||
| 19 | return 0; | ||
| 20 | } | ||
| 21 | |||
| 22 | int iInt; | ||
| 23 | }; | ||
| 24 | |||
| 25 | int main() | ||
| 26 | { | ||
| 27 | Bu::Cache<Bob> bobCache; | ||
| 28 | |||
| 29 | // Bu::CPtr<Bob> pB = bobCache.insert( new Bob() ); | ||
| 30 | } | ||
| 31 | |||
