9 #include <boost/optional.hpp>
12 #include <tbb/spin_rw_mutex.h>
13 #include <tbb/tbb_thread.h>
15 namespace MAKVRinTerra
33 typedef boost::shared_ptr<DtUnusedFeatureTileTracker>
Ptr;
34 typedef boost::weak_ptr<DtUnusedFeatureTileTracker>
WeakPtr;
52 unsigned length()
const;
55 unsigned size()
const;
58 void setMaxSize(
unsigned max);
61 void unloadUntilSize(
unsigned maxSize);
66 typedef tbb::spin_rw_mutex
Mutex;
94 virtual bool keep()
const = 0;
97 virtual void load() = 0;
100 virtual void unload() = 0;
105 virtual unsigned size()
const = 0;
112 virtual boost::shared_ptr<Trackable>
getPtr() = 0;
149 typedef boost::shared_ptr<Sentinel>
Ptr;
156 Sentinel(boost::shared_ptr<Trackable>);