void property_map_extras(Class& pm, type<vector_property_map<T, IndexMap> >, int) { pm.def("__len__", &py_vector_property_map_length<T, IndexMap>); typedef typename std::vector<T>::iterator value_iterator; simple_python_iterator<value_iterator>::declare("ValueIterator"); pm.def("__iter__", &py_vector_property_map_values<T, IndexMap>); }
void visit_aux( Class& cl, char const* name , Options const& options, Signature const& signature) const { typedef typename boost::mpl::at_c<Signature,0>::type return_type; cl.def( name , boost::python::make_function( allow_threading<F, return_type>(fn) , options.policies() , options.keywords() , signature ) ); }