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

Function BOOST_PYTHON_MODULE

04-ClassMembers/member.cpp:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using namespace boost::python;
26
27BOOST_PYTHON_MODULE(member)
28{
29 class_<SomeClass>("SomeClass", init<std::string>())
30 .def_readwrite("name", & SomeClass::name)
31 .add_property("number", &SomeClass::getNumber, &SomeClass::setNumber)
32 ;
33
34}
35
36

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected