peiyongz 2003/10/17 14:10:40 Modified: c/src/xercesc/util RefHash2KeysTableOf.c RefHash2KeysTableOf.hpp Log: nextElementKey() added Revision Changes Path 1.5 +21 -0 xml-xerces/c/src/xercesc/util/RefHash2KeysTableOf.c Index: RefHash2KeysTableOf.c =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/RefHash2KeysTableOf.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- RefHash2KeysTableOf.c 18 May 2003 14:02:05 -0000 1.4 +++ RefHash2KeysTableOf.c 17 Oct 2003 21:10:40 -0000 1.5 @@ -56,6 +56,9 @@ /** * $Log$ + * Revision 1.5 2003/10/17 21:10:40 peiyongz + * nextElementKey() added + * * Revision 1.4 2003/05/18 14:02:05 knoaman * Memory manager implementation: pass per instance manager. * @@ -438,6 +441,24 @@ return *saveElem->fData; } +template <class TVal> void RefHash2KeysTableOfEnumerator<TVal>::nextElementKey(void*& retKey1, int& retKey2) +{ + // Make sure we have an element to return + if (!hasMoreElements()) + ThrowXML(NoSuchElementException, XMLExcepts::Enum_NoMoreElements); + + // + // Save the current element, then move up to the next one for the + // next time around. + // + RefHash2KeysTableBucketElem<TVal>* saveElem = fCurElem; + findNext(); + + retKey1 = saveElem->fKey1; + retKey2 = saveElem->fKey2; + + return; +} template <class TVal> void RefHash2KeysTableOfEnumerator<TVal>::Reset() { 1.6 +7 -0 xml-xerces/c/src/xercesc/util/RefHash2KeysTableOf.hpp Index: RefHash2KeysTableOf.hpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/RefHash2KeysTableOf.hpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- RefHash2KeysTableOf.hpp 18 May 2003 14:02:05 -0000 1.5 +++ RefHash2KeysTableOf.hpp 17 Oct 2003 21:10:40 -0000 1.6 @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.6 2003/10/17 21:10:40 peiyongz + * nextElementKey() added + * * Revision 1.5 2003/05/18 14:02:05 knoaman * Memory manager implementation: pass per instance manager. * @@ -253,6 +256,10 @@ TVal& nextElement(); void Reset(); + // ----------------------------------------------------------------------- + // New interface + // ----------------------------------------------------------------------- + void nextElementKey(void*&, int&); private : // -----------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]