X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursorSlice.h;h=981f59c47de361aa7fbd4a5a50bd968edbd14273;hb=2455bc258f3b62c29ec4a41cb88070ff8518e842;hp=be31f56a99cff5bf0709c28bd525ff8b82fa9f9c;hpb=a8cd9a4b8fd325b00c75f601c66c6d618ba276db;p=lyx.git diff --git a/src/CursorSlice.h b/src/CursorSlice.h index be31f56a99..981f59c47d 100644 --- a/src/CursorSlice.h +++ b/src/CursorSlice.h @@ -56,6 +56,15 @@ public: /// explicit CursorSlice(Inset &); + /// comparison operators. + //@{ + friend bool operator==(CursorSlice const &, CursorSlice const &); + friend bool operator!=(CursorSlice const &, CursorSlice const &); + friend bool operator<(CursorSlice const &, CursorSlice const &); + friend bool operator>(CursorSlice const &, CursorSlice const &); + friend bool operator<=(CursorSlice const &, CursorSlice const &); + //@} + /// the current inset Inset & inset() const { return *inset_; } /// return the cell this cursor is in @@ -154,17 +163,6 @@ private: pos_type pos_; }; -/// test for equality -bool operator==(CursorSlice const &, CursorSlice const &); -/// test for inequality -bool operator!=(CursorSlice const &, CursorSlice const &); -/// test for order -bool operator<(CursorSlice const &, CursorSlice const &); -/// test for order -bool operator>(CursorSlice const &, CursorSlice const &); -/// test for order -bool operator<=(CursorSlice const &, CursorSlice const &); - } // namespace lyx