LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
test10.cc File Reference
#include <iostream>
#include <boost/python.hpp>

Go to the source code of this file.

Classes

class  AClass
 
class  BClass
 
class  XBase
 
class  ZClass
 
struct  CB_XBase
 

Functions

 BOOST_PYTHON_MODULE (test10)
 

Function Documentation

BOOST_PYTHON_MODULE ( test10  )

Definition at line 128 of file test10.cc.

References CB_XBase::d_VMethodA(), CB_XBase::d_VMethodB(), ZClass::Process(), ZClass::SetXBase(), XBase::VMethodA(), and XBase::VMethodB().

129 {
130  class_<AClass, AClass*>("AClass", "a class")
131  .def(init<>())
132  ;
133 
134  class_<BClass>("BClass", "b class")
135  .def(init<>())
136  ;
137 
138  class_<CB_XBase, boost::noncopyable>("XBase", "xbase class")
139  .def(init<>())
140  .def("VMethodA", &XBase::VMethodA, &CB_XBase::d_VMethodA)
141  .def("VMethodB", &XBase::VMethodB, &CB_XBase::d_VMethodB)
142  ;
143 
144  class_<ZClass>("ZClass", "z class")
145  .def(init<>())
146  .def("SetXBase", &ZClass::SetXBase)
147  .def("Process", &ZClass::Process)
148  ;
149 }
virtual void VMethodB(const BClass *b)
Definition: test10.cc:69
void SetXBase(XBase *base)
Definition: test10.cc:85
virtual void VMethodA(const AClass *a)
Definition: test10.cc:65
void d_VMethodA(const AClass *a)
Definition: test10.cc:110
void d_VMethodB(const BClass *b)
Definition: test10.cc:122
void Process()
Definition: test10.cc:89