pybind_wrapper_test.cc
Go to the documentation of this file.
1 #include "tools/workspace/pybind_wrapper/test/pybind_wrapper_test.h"
2 
3 namespace anzu {
4 
5 namespace sub {
6 double Point2::sum() const { return x_ + y_; }
7 } // namespace sub
8 
9 double Point3::sum() const { return x_ + y_ + z_; }
10 
11 double global_func_on_base(const std::shared_ptr<PointBase>& point) {
12  return point->sum();
13 }
14 
15 } // namespace anzu
16 
17 double global_func_overloads(const std::shared_ptr<anzu::sub::Point2>& point2) {
18  return point2->sum();
19 }
20 
21 double global_func_overloads(const std::shared_ptr<anzu::Point3>& point3) {
22  return point3->sum();
23 }
double sum() const override
double global_func_on_base(const std::shared_ptr< PointBase > &point)
Point3 point(10, 0,-5)
double global_func_overloads(const std::shared_ptr< anzu::sub::Point2 > &point2)
static const Point3 point3(0.08, 0.08, 0.0)
static const Point3 point2(-0.08, 0.08, 0.0)
EIGEN_DONT_INLINE T sub(T a, T b)
Definition: svd_common.h:274
double sum() const override


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:43:44