File: test_func.h

package info (click to toggle)
manif 0.0.5-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,576 kB
  • sloc: cpp: 11,789; ansic: 8,774; python: 2,158; sh: 24; makefile: 23; xml: 21
file content (38 lines) | stat: -rw-r--r-- 951 bytes parent folder | download
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_