]> git.lyx.org Git - lyx.git/blobdiff - src/coordcache.h
LFUN_UNICODE_INSERT - unicode-insert
[lyx.git] / src / coordcache.h
index 4adf25ac39f93facd075707418c19019660db268..a14751f6f0375ee70c1ca3e077f5b9387b5d9dcc 100644 (file)
@@ -45,6 +45,11 @@ public:
                data_.clear();
        }
 
+       bool const empty() const
+       {
+               return data_.empty();
+       }
+
        void add(T const * thing, int x, int y)
        {
                data_[thing] = Point(x, y);
@@ -90,6 +95,9 @@ private:
 
        typedef std::map<T const *, Point> cache_type;
        cache_type data_;
+
+public:
+       cache_type const & getData() const { return data_; }
 };
 
 /**