dbertoni 2003/01/03 00:02:43
Modified: c/src/XPath MutableNodeRefList.hpp NodeRefList.hpp
Log:
Added new swap() member function.
Revision Changes Path
1.20 +12 -0 xml-xalan/c/src/XPath/MutableNodeRefList.hpp
Index: MutableNodeRefList.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/MutableNodeRefList.hpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- MutableNodeRefList.hpp 21 Nov 2002 01:26:18 -0000 1.19
+++ MutableNodeRefList.hpp 3 Jan 2003 08:02:42 -0000 1.20
@@ -358,6 +358,18 @@
XPathExecutionContext& m_executionContext;
};
+ void
+ swap(MutableNodeRefList& theOther)
+ {
+ NodeRefList::swap(theOther);
+
+ const eOrder temp = m_order;
+
+ m_order = theOther.m_order;
+
+ theOther.m_order = temp;
+ }
+
private:
// An enum to determine what the order of the nodes is...
1.18 +6 -0 xml-xalan/c/src/XPath/NodeRefList.hpp
Index: NodeRefList.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/NodeRefList.hpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- NodeRefList.hpp 21 Nov 2002 01:26:18 -0000 1.17
+++ NodeRefList.hpp 3 Jan 2003 08:02:42 -0000 1.18
@@ -139,6 +139,12 @@
typedef std::vector<XalanNode*> NodeListVectorType;
#endif
+ void
+ swap(NodeRefList& theOther)
+ {
+ m_nodeList.swap(theOther.m_nodeList);
+ }
+
protected:
// Default vector allocation size. It seems high, but
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]