author | Dmitriy Morozov <dmitriy@mrzv.org> |
Sat, 11 Apr 2009 10:29:53 -0700 | |
branch | dev |
changeset 126 | 3c3e77ac43d2 |
parent 104 | 2cc1db3b98c6 |
child 128 | a5fd0c2a1c88 |
permissions | -rw-r--r-- |
#include <topology/chain.h> #include "python-static-persistence.h" #include <boost/python.hpp> using namespace boost::python; typedef SPersistence::Chain VChain; VChain::const_iterator begin(const VChain& c) { return c.begin(); } VChain::const_iterator end(const VChain& c) { return c.end(); } void export_chain() { class_<VChain>("Chain") .def("__iter__", range(&begin, &end)) ; }