LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
test09.cc File Reference
#include <iostream>
#include <boost/python.hpp>

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.

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 }
int GetIVal() const
Definition: AClass.hh:67
void SetIVal(int i)
Definition: AClass.hh:66
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
Definition: AClass.hh:67