From: <ma...@us...> - 2009-07-25 19:14:25
|
Revision: 11451 http://swig.svn.sourceforge.net/swig/?rev=11451&view=rev Author: matevz Date: 2009-07-25 19:14:17 +0000 (Sat, 25 Jul 2009) Log Message: ----------- Added partial support for unordered_ STL types. Modified Paths: -------------- branches/gsoc2009-matevz/Lib/python/pyiterators.swg branches/gsoc2009-matevz/Lib/python/pystdcommon.swg Modified: branches/gsoc2009-matevz/Lib/python/pyiterators.swg =================================================================== --- branches/gsoc2009-matevz/Lib/python/pyiterators.swg 2009-07-25 18:51:37 UTC (rev 11450) +++ branches/gsoc2009-matevz/Lib/python/pyiterators.swg 2009-07-25 19:14:17 UTC (rev 11451) @@ -226,9 +226,6 @@ SwigPyIterator *decr(size_t n = 1) { - while (n--) { - --base::current; - } return this; } }; @@ -277,13 +274,6 @@ SwigPyIterator *decr(size_t n = 1) { - while (n--) { - if (base::current == begin) { - throw stop_iteration(); - } else { - --base::current; - } - } return this; } Modified: branches/gsoc2009-matevz/Lib/python/pystdcommon.swg =================================================================== --- branches/gsoc2009-matevz/Lib/python/pystdcommon.swg 2009-07-25 18:51:37 UTC (rev 11450) +++ branches/gsoc2009-matevz/Lib/python/pystdcommon.swg 2009-07-25 19:14:17 UTC (rev 11451) @@ -257,3 +257,5 @@ #define specialize_std_deque(Type,Check,As,From) %specialize_std_container(%arg(Type),Check,As,From) #define specialize_std_set(Type,Check,As,From) %specialize_std_container(%arg(Type),Check,As,From) #define specialize_std_multiset(Type,Check,As,From) %specialize_std_container(%arg(Type),Check,As,From) +#define specialize_std_unordered_set(Type,Check,As,From) %specialize_std_container(%arg(Type),Check,As,From) +#define specialize_std_unordered_multiset(Type,Check,As,From) %specialize_std_container(%arg(Type),Check,As,From) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |