// This file has been generated by Py++. #include "boost/python.hpp" #include "foo.h" namespace bp = boost::python; BOOST_PYTHON_MODULE(foo_module){ bp::class_< Foo1 >( "Foo1" ); bp::class_< Foo2 >( "Foo2" ) .def( ~bp::self ); bp::class_< Foo3 >( "Foo3" ) .def( "T" , (::Foo2 & ( ::Foo3::* )( ) )( &::Foo3::T ) , bp::return_internal_reference< >() ); bp::class_< Foo4 >( "Foo4" ) .def( "bar" , (void ( ::Foo4::* )( ::Foo3 const & ) )( &::Foo4::bar ) , ( bp::arg("f") ) ); }