summaryrefslogtreecommitdiff
path: root/sw/inc/node.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/node.hxx')
-rw-r--r--sw/inc/node.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx
index 91b18e30ed66..62f6da8ef308 100644
--- a/sw/inc/node.hxx
+++ b/sw/inc/node.hxx
@@ -308,6 +308,13 @@ public:
*/
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
+ bool operator==(const SwNode& rOther) const { assert(&GetNodes() == &rOther.GetNodes()); return this == &rOther; }
+ bool operator!=(const SwNode& rOther) const { assert(&GetNodes() == &rOther.GetNodes()); return this != &rOther; }
+ bool operator<(const SwNode& rOther) const { assert(&GetNodes() == &rOther.GetNodes()); return GetIndex() < rOther.GetIndex(); }
+ bool operator<=(const SwNode& rOther) const { assert(&GetNodes() == &rOther.GetNodes()); return GetIndex() <= rOther.GetIndex(); }
+ bool operator>(const SwNode& rOther) const { assert(&GetNodes() == &rOther.GetNodes()); return GetIndex() > rOther.GetIndex(); }
+ bool operator>=(const SwNode& rOther) const { assert(&GetNodes() == &rOther.GetNodes()); return GetIndex() >= rOther.GetIndex(); }
+
private:
SwNode( const SwNode & rNodes ) = delete;
SwNode & operator= ( const SwNode & rNodes ) = delete;