/[escript]/branches/windows_from_1383_trunk/escript/src/escriptcpp.cpp
ViewVC logotype

Diff of /branches/windows_from_1383_trunk/escript/src/escriptcpp.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1420 by trankine, Tue Feb 26 07:18:15 2008 UTC revision 1421 by trankine, Tue Feb 26 10:17:33 2008 UTC
# Line 105  BOOST_PYTHON_MODULE(escriptcpp) Line 105  BOOST_PYTHON_MODULE(escriptcpp)
105    //    //
106    // Interface for FunctionSpace    // Interface for FunctionSpace
107    //    //
108    class_<escript::FunctionSpace>("FunctionSpace",init<>())    class_<escript::FunctionSpace> fs_definer("FunctionSpace",init<>());
109       .def("getDim",&escript::FunctionSpace::getDim)    fs_definer.def("getDim",&escript::FunctionSpace::getDim);
110       .def("getDomain",&escript::FunctionSpace::getDomain,return_internal_reference<>())    fs_definer.def("getDomain",&escript::FunctionSpace::getDomain,
111       .def("getX",&escript::FunctionSpace::getX)                   return_internal_reference<>());
112       .def("getNormal",&escript::FunctionSpace::getNormal)    fs_definer.def("getX",&escript::FunctionSpace::getX);
113       .def("getSize",&escript::FunctionSpace::getSize)    fs_definer.def("getNormal",&escript::FunctionSpace::getNormal);
114       .def("setTags",&escript::FunctionSpace::setTags)    fs_definer.def("getSize",&escript::FunctionSpace::getSize);
115       .def("getTagFromDataPointNo",&escript::FunctionSpace::getTagFromDataPointNo)    fs_definer.def("setTags",&escript::FunctionSpace::setTags);
116       .def("__str__",&escript::FunctionSpace::toString,return_value_policy<copy_const_reference>())    fs_definer.def("getTagFromDataPointNo",
117       .def(self == self)                   &escript::FunctionSpace::getTagFromDataPointNo);
118       .def(self != self);  #ifdef DEBUG_PY_STRINGS
119      fs_definer.def("__str__",&escript::FunctionSpace::toPyString);
120    #else
121      fs_definer.def("__str__",
122                     &escript::FunctionSpace::toString,
123                     return_value_policy<copy_const_reference>());
124    #endif
125      fs_definer.def(self == self);
126      fs_definer.def(self != self);
127    //    //
128    // Interface for Data    // Interface for Data
129    //    //

Legend:
Removed from v.1420  
changed lines
  Added in v.1421

  ViewVC Help
Powered by ViewVC 1.1.26