- 3.0.2 rigid body dynamics module.
StateDependentBase.h
Go to the documentation of this file.
1 /* CPYHDR { */
2 /*
3  * This file is part of the 'iit-rbd' library.
4  * Copyright © 2015 2016, Marco Frigerio (marco.frigerio@iit.it)
5  *
6  * See the LICENSE file for more information.
7  */
8 /* } CPYHDR */
9 
10 #ifndef _IIT_RBD__STATE_DEPENDENT_BASE_H_
11 #define _IIT_RBD__STATE_DEPENDENT_BASE_H_
12 
13 #include <iostream>
14 #include "rbd.h"
15 
16 namespace iit {
17 namespace rbd {
18 
31 template<class State, class Actual>
33 {
34  public:
35  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
41  const Actual& operator()(State const& state) {
42  return static_cast<Actual*>(this) -> update(state);
43  }
49  const Actual& update(State const& state);
50 };
51 
52 }
53 }
54 
55 
56 #endif
Definition: StateDependentBase.h:32
EIGEN_MAKE_ALIGNED_OPERATOR_NEW const Actual & operator()(State const &state)
Definition: StateDependentBase.h:41
const Actual & update(State const &state)