wrap
tests
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
}
anzu::sub::Point2::sum
double sum() const override
Definition:
pybind_wrapper_test.cc:6
anzu::Point3::x_
double x_
Definition:
pybind_wrapper_test.h:45
point3
static const Point3 point3(0.08, 0.08, 0.0)
point2
static const Point3 point2(-0.08, 0.08, 0.0)
anzu
Definition:
pybind_wrapper_test.cc:3
gtsam_unstable.tests.test_ProjectionFactorRollingShutter.point
point
Definition:
test_ProjectionFactorRollingShutter.py:25
anzu::Point3::sum
double sum() const override
Definition:
pybind_wrapper_test.cc:9
anzu::sub::Point2::y_
double y_
Definition:
pybind_wrapper_test.h:29
anzu::Point3::z_
double z_
Definition:
pybind_wrapper_test.h:45
global_func_overloads
double global_func_overloads(const std::shared_ptr< anzu::sub::Point2 > &point2)
Definition:
pybind_wrapper_test.cc:17
anzu::sub::Point2::x_
double x_
Definition:
pybind_wrapper_test.h:29
anzu::Point3::y_
double y_
Definition:
pybind_wrapper_test.h:45
anzu::global_func_on_base
double global_func_on_base(const std::shared_ptr< PointBase > &point)
Definition:
pybind_wrapper_test.cc:11
sub
EIGEN_DONT_INLINE T sub(T a, T b)
Definition:
svd_common.h:299
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:13:01