LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 75 of file test09.cc.

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

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

Definition at line 64 of file test09.cc.

References AClass::GetIVal().

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