-
Notifications
You must be signed in to change notification settings - Fork 250
/
Copy pathtest_func.h
38 lines (30 loc) · 951 Bytes
/
test_func.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _MANIF_MANIF_TEST_FUNCTIONS_H_
#define _MANIF_MANIF_TEST_FUNCTIONS_H_
#include "manif/impl/lie_group_base.h"
namespace manif {
template <typename _Derived, typename _Other>
void copy_assign(LieGroupBase<_Derived>& state,
const _Other& state_other)
{
state = state_other;
}
template <typename _Derived, typename _DerivedOther>
void copy_assign_base(LieGroupBase<_Derived>& state,
const LieGroupBase<_DerivedOther>& state_other)
{
state = state_other;
}
template <typename _Derived, typename _Other>
void move_assign(LieGroupBase<_Derived>& state,
_Other& state_other)
{
state = std::move(state_other);
}
template <typename _Derived, typename _DerivedOther>
void move_assign_base(LieGroupBase<_Derived>& state,
LieGroupBase<_DerivedOther>& state_other)
{
state = std::move(state_other);
}
} // namespace manif
#endif // _MANIF_MANIF_TEST_FUNCTIONS_H_