MCPcopy Create free account
hub / github.com/TNG/boost-python-examples / BOOST_PYTHON_MODULE

Function BOOST_PYTHON_MODULE

05-Inheritance/inheritance.cpp:35–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33using namespace boost::python;
34
35BOOST_PYTHON_MODULE(inheritance)
36{
37 class_<Base, boost::noncopyable>("Base")
38 .def("name", &Base::name)
39 ;
40
41 class_<Derived, bases<Base> >("Derived")
42 ;
43
44 def("fb", fb);
45 def("fd", fd);
46 def("factory", factory, return_value_policy<manage_new_object>());
47}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected