| 22 | |
| 23 | |
| 24 | BOOST_PYTHON_MODULE(policies) |
| 25 | { |
| 26 | class_<Example>("Example", no_init) |
| 27 | .def("__str__", &Example::name) |
| 28 | .def("factory", &Example::factory, |
| 29 | return_value_policy<manage_new_object>()) |
| 30 | .staticmethod("factory") |
| 31 | .def("singleton", &Example::singleton, |
| 32 | return_value_policy<reference_existing_object>()) |
| 33 | .staticmethod("singleton") |
| 34 | ; |
| 35 | } |
nothing calls this directly
no outgoing calls
no test coverage detected