Changeset 89ccc1 in git
- Timestamp:
- Aug 17, 2005, 8:33:04 AM (19 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- ecbe9f788a756ad5388e64482ea642e406a330be
- Parents:
- ef1452cd49d0a519c81e3ffe1bdf3b719b6d72eb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/python/wrapper.h
ref1452 r89ccc1 1 //$Id: wrapper.h,v 1. 3 2005-08-16 14:35:59bricken Exp $1 //$Id: wrapper.h,v 1.4 2005-08-17 06:33:04 bricken Exp $ 2 2 #ifndef PYTHON_SINGULAR_WRAPPER_HEADER 3 3 #define PYTHON_SINGULAR_WRAPPER_HEADER … … 7 7 #include "numbers.h" 8 8 #include "febase.h" 9 10 #include "Number.h" 9 11 #include "Poly.h" 10 #include "Number.h"11 12 12 13 13 using namespace boost::python; 14 14 15 static boost::python::object Number_as_str(Number n) 15 16 { … … 58 59 .def(self-=int()) 59 60 .def(self/=int()); 60 boost::python::class_<Poly>("polynomial")61 boost::python::class_<Poly>("polynomial") 61 62 .def(boost::python::init <int>()) 62 63 .def(boost::python::init <Poly>()) … … 99 100 /* .def(self-=int()) */ 100 101 /* .def(self/=int()); */ 102 101 103 } 102 104 #endif
Note: See TracChangeset
for help on using the changeset viewer.