+ void clear();
+ Point get(LyXText const *, lyx::pit_type);
+
+ /// A map from paragraph index number to screen point
+ typedef std::map<lyx::pit_type, Point> InnerParPosCache;
+ /// A map from a LyXText to the map of paragraphs to screen points
+ typedef std::map<LyXText const *, InnerParPosCache> ParPosCache;
+ /// A map from a CursorSlice to screen points
+ typedef std::map<LyXText const *, InnerParPosCache> SliceCache;
+
+ /// A map from MathArray to position on the screen
+ CoordCacheBase<MathArray> & arrays() { BOOST_ASSERT(updating); return arrays_; }
+ CoordCacheBase<MathArray> const & getArrays() const { return arrays_; }
+ /// A map from insets to positions on the screen
+ CoordCacheBase<InsetBase> & insets() { BOOST_ASSERT(updating); return insets_; }
+ CoordCacheBase<InsetBase> const & getInsets() const { return insets_; }
+ /// A map from (LyXText, paragraph) pair to screen positions
+ ParPosCache & parPos() { BOOST_ASSERT(updating); return pars_; }
+ ParPosCache const & getParPos() const { return pars_; }
+ ///
+ SliceCache & slice(bool boundary)
+ {
+ BOOST_ASSERT(updating);
+ return boundary ? slices1_ : slices0_;
+ }
+ SliceCache const & getSlice(bool boundary) const
+ {
+ return boundary ? slices1_ : slices0_;
+ }
+
+private:
+ /// MathArrays