39 std::cout <<
"*** AClass is created..." <<
this
44 std::cout <<
"*** AClass is deleted..." <<
this
52 std::cout <<
"*** BClass is created..." <<
this
56 std::cout <<
"*** BClass is deleted..." <<
this
67 std::cout <<
"*** XBase::VMethod...A() is called." << std::endl;
71 std::cout <<
"*** XBase::VMethod...B() is called." << std::endl;
98 #include <boost/python.hpp>
100 using namespace boost::python;
105 if(
const override&
f= get_override(
"VMethodA"))
117 if(
const override&
f= get_override(
"VMethodB"))
131 class_<AClass, AClass*>(
"AClass",
"a class")
135 class_<BClass>(
"BClass",
"b class")
139 class_<CB_XBase, boost::noncopyable>(
"XBase",
"xbase class")
145 class_<ZClass>(
"ZClass",
"z class")
void SetXBase(XBase *base)
virtual void VMethodB(const BClass *b)
void VMethodA(const AClass *a)
void d_VMethodB(const BClass *b)
BOOST_PYTHON_MODULE(TestEm0)
const XML_Char int const XML_Char int const XML_Char * base
virtual void VMethodA(const AClass *a)
void d_VMethodA(const AClass *a)
void VMethodB(const BClass *b)