| 28 | } // anonymous namespace |
| 29 | |
| 30 | void |
| 31 | wrapMapExpression() |
| 32 | { |
| 33 | typedef PcpMapExpression This; |
| 34 | |
| 35 | class_<This>("MapExpression") |
| 36 | .def("__str__", _Str) |
| 37 | |
| 38 | .def("Evaluate", &This::Evaluate, |
| 39 | return_value_policy<return_by_value>()) |
| 40 | .def("Identity", &This::Identity, |
| 41 | return_value_policy<return_by_value>()) |
| 42 | .staticmethod("Identity") |
| 43 | .def("Constant", &This::Constant, |
| 44 | return_value_policy<return_by_value>()) |
| 45 | .staticmethod("Constant") |
| 46 | .def("ImpliedClass", &This::ImpliedClass) |
| 47 | .staticmethod("ImpliedClass") |
| 48 | .def("Inverse", &This::Inverse, |
| 49 | return_value_policy<return_by_value>()) |
| 50 | .def("AddRootIdentity", &This::AddRootIdentity, |
| 51 | return_value_policy<return_by_value>()) |
| 52 | .def("Compose", &This::Compose, |
| 53 | return_value_policy<return_by_value>()) |
| 54 | .def("MapSourceToTarget", &This::MapSourceToTarget, |
| 55 | (arg("path"))) |
| 56 | .def("MapTargetToSource", &This::MapTargetToSource, |
| 57 | (arg("path"))) |
| 58 | |
| 59 | .add_property("timeOffset", |
| 60 | make_function(&This::GetTimeOffset, |
| 61 | return_value_policy<return_by_value>()) ) |
| 62 | .add_property("isIdentity", &This::IsIdentity) |
| 63 | .add_property("isNull", &This::IsNull) |
| 64 | ; |
| 65 | } |
nothing calls this directly
no test coverage detected