#176 additional python STL infrastructure

open
nobody
None
5
2012-12-21
2007-05-03
Eric Mahurin
No

I have a series of hacks to the swig 1.3.31 python .i and .swg files that gives the following STL functionality:

* containers (vector, list, deque, set, map, multiset, multimap) of python objects that even use custom python compare functions.

* read/write random-access iterators in those containers.

* functors from callable python objects (i.e. lambdas, functions, methods). These can operator on normal python objects or those that swig wrapped ( i.e. C++ objects in a container).

* ability to easily wrap most(all?) algorithms to operate on iterators from any container (and use the above functors).

Discussion

  • Eric Mahurin
    Eric Mahurin
    2007-05-03

    swig files and test python to interface python to C++ STL

     
    Attachments