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

Go to the source code of this file.

Classes

class  AClass
 

Functions

std::ostream & operator<< (std::ostream &ostr, const AClass &aclass)
 
 BOOST_PYTHON_MODULE (test09)
 

Function Documentation

BOOST_PYTHON_MODULE ( test09  )

Definition at line 76 of file test09.cc.

77 {
78  class_<AClass>( "AClass", "a class")
79  .def(init<>())
80  .def(init<int>())
81  .add_property("ival", &AClass::GetIVal, &AClass::SetIVal)
82  .def(self + self)
83  .def(self += self)
84  .def(self == self)
85  .def(self_ns::str(self))
86  ;
87 }
void SetIVal(int i)
Definition: AClass.hh:66
int GetIVal() const
Definition: AClass.hh:67

Here is the call graph for this function:

std::ostream& operator<< ( std::ostream &  ostr,
const AClass aclass 
)

Definition at line 65 of file test09.cc.

66 {
67  return ostr << aclass.GetIVal();
68 }
int GetIVal() const
Definition: AClass.hh:67

Here is the call graph for this function: