Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
test10.cc File Reference
#include <iostream>
#include <boost/python.hpp>
Include dependency graph for test10.cc:

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.

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 }
void SetXBase(XBase *base)
Definition: test10.cc:86
virtual void VMethodB(const BClass *b)
Definition: test10.cc:70
void Process()
Definition: test10.cc:90
void d_VMethodB(const BClass *b)
Definition: test10.cc:123
virtual void VMethodA(const AClass *a)
Definition: test10.cc:66
void d_VMethodA(const AClass *a)
Definition: test10.cc:111

Here is the call graph for this function: