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

Class BaseWrap

06-VirtualFunctionsInPython/virtual.cpp:19–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17using namespace boost::python;
18
19struct BaseWrap : Base, wrapper<Base>
20{
21 virtual std::string name() const
22 {
23 if (override n = this->get_override("name"))
24 return n();
25 return Base::name();
26 }
27 std::string default_name() const
28 {
29 return this->Base::name();
30 }
31};
32
33BOOST_PYTHON_MODULE(virtual)
34{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected