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

Go to the source code of this file.

Functions

 BOOST_PYTHON_MODULE (test01)
 

Function Documentation

BOOST_PYTHON_MODULE ( test01  )

Definition at line 45 of file test01.cc.

45  {
46  class_<AClass>( "AClass", "a simple class")
47  .def(init<>())
48  .def(init<int>())
49  .def(init<int, double>())
50  .add_property("ival", &AClass::GetIVal, &AClass::SetIVal)
51  .add_property("dval", &AClass::GetDVal, &AClass::SetDVal)
52  .def("AMethod", &AClass::AMethod)
53  ;
54 }
void SetIVal(int i)
Definition: AClass.hh:66
int GetIVal() const
Definition: AClass.hh:67
void SetDVal(double d)
Definition: AClass.hh:69
double GetDVal() const
Definition: AClass.hh:70
void AMethod()
Definition: AClass.cc:66

Here is the call graph for this function: