Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Functions
test09.cc File Reference
#include <iostream>
#include <boost/python.hpp>

Go to the source code of this file.

Data Structures

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.

References AClass::GetIVal(), and AClass::SetIVal().

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)
int GetIVal() const
std::ostream& operator<< ( std::ostream &  ostr,
const AClass aclass 
)

Definition at line 65 of file test09.cc.

References AClass::GetIVal().

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