#include <map>
+
+// All positions cached in this cache are only valid between subsequent
+// updated. (x,y) == (0,0) is the upper left screen corner, x increases
+// to the right, y increases downwords.
+
void lyxbreaker(void const * data, const char * hint, int size);
struct Point {
Point()
: x_(0), y_(0)
- {}
+ {}
Point(int x, int y) : x_(x), y_(y)
{
BOOST_ASSERT(x < 4000);
BOOST_ASSERT(y > -3000);
BOOST_ASSERT(y < 4000);
- }
+ }
int x_, y_;
};
return data_.find(thing) != data_.end();
}
+// T * find(int x, int y) const
+// {
+// T *
+// cache_type iter
+// }
+
private:
friend class CoordCache;
}
}
- std::map<T const *, Point> data_;
+ typedef std::map<T const *, Point> cache_type;
+ cache_type data_;
};