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

Function BOOST_PYTHON_MODULE

03-Constructors/ctor.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19using namespace boost::python;
20
21BOOST_PYTHON_MODULE(ctor)
22{
23 class_<Ctor>("Ctor", init<std::string>())
24 .def(init<double, double>())
25 .def("greet", &Ctor::greet)
26 .def("set", &Ctor::set)
27 ;
28
29}
30
31

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected