| 1 | // This file has been generated by Py++.
|
|---|
| 2 |
|
|---|
| 3 | #include "boost/python.hpp"
|
|---|
| 4 |
|
|---|
| 5 | #include "foo.h"
|
|---|
| 6 |
|
|---|
| 7 | namespace bp = boost::python;
|
|---|
| 8 |
|
|---|
| 9 | BOOST_PYTHON_MODULE(foo_module){
|
|---|
| 10 | bp::class_< Foo1 >( "Foo1" );
|
|---|
| 11 |
|
|---|
| 12 | bp::class_< Foo2 >( "Foo2" )
|
|---|
| 13 | .def( ~bp::self );
|
|---|
| 14 |
|
|---|
| 15 | bp::class_< Foo3 >( "Foo3" )
|
|---|
| 16 | .def(
|
|---|
| 17 | "T"
|
|---|
| 18 | , (::Foo2 & ( ::Foo3::* )( ) )( &::Foo3::T )
|
|---|
| 19 | , bp::return_internal_reference< >() );
|
|---|
| 20 |
|
|---|
| 21 | bp::class_< Foo4 >( "Foo4" )
|
|---|
| 22 | .def(
|
|---|
| 23 | "bar"
|
|---|
| 24 | , (void ( ::Foo4::* )( ::Foo3 const & ) )( &::Foo4::bar )
|
|---|
| 25 | , ( bp::arg("f") ) );
|
|---|
| 26 | }
|
|---|