LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 129 of file test10.cc.

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

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