38 #include <boost/python.hpp> 
   43 using namespace boost::python;
 
   61   def(
"func2", (
int(*)(
int,
int))0, f_func2());
 
   68   class_<AClass>( 
"AClass", 
"a class")
 
   70     .def(init<
int, optional<double> >())
 
   72     .def(
"AMethod", (
int(
AClass::*)(
int,
double))0,
 
   73      f_AMethod(args(
"i",
"d"), 
"amethod"))
 
   75     .def(
"BMethod", 
f2_BMethod, args(
"i",
"d"), 
"bmethod2")
 
   77      f_CMethod((arg(
"i"), arg(
"d1")=1., arg(
"d2")=2.),
 
   78            "cmethod: return i*d1*d2")