GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: include/sot/core/derivator-impl.hh Lines: 0 1 0.0 %
Date: 2021-08-13 12:32:43 Branches: 0 4 0.0 %

Line Branch Exec Source
1
/*
2
 * Copyright 2010,
3
 * François Bleibel,
4
 * Olivier Stasse,
5
 *
6
 * CNRS/AIST
7
 *
8
 */
9
10
#ifndef __SOT_DERIVATOR_IMPL_H__
11
#define __SOT_DERIVATOR_IMPL_H__
12
13
#include <sot/core/derivator.hh>
14
#include <sot/core/matrix-geometry.hh>
15
16
/* --------------------------------------------------------------------- */
17
/* --- API ------------------------------------------------------------- */
18
/* --------------------------------------------------------------------- */
19
20
#if defined(WIN32)
21
#if defined(derivator_EXPORTS)
22
#define DERIVATOR_EXPORT __declspec(dllexport)
23
#else
24
#define DERIVATOR_EXPORT __declspec(dllimport)
25
#endif
26
#else
27
#define DERIVATOR_EXPORT
28
#endif
29
30
/* --------------------------------------------------------------------- */
31
/* --- INCLUDE --------------------------------------------------------- */
32
/* --------------------------------------------------------------------- */
33
34
namespace dynamicgraph {
35
namespace sot {
36
37
#ifdef WIN32
38
#define DECLARE_SPECIFICATION(className, sotSigType)                           \
39
  class DERIVATOR_EXPORT className : public Derivator<sotSigType> {            \
40
  public:                                                                      \
41
    className(const std::string &name);                                        \
42
  };
43
#else
44
#define DECLARE_SPECIFICATION(className, sotSigType)                           \
45
  typedef Derivator<sotSigType> className;
46
#endif
47
48
DECLARE_SPECIFICATION(DerivatorDouble, double)
49
DECLARE_SPECIFICATION(DerivatorVector, dynamicgraph::Vector)
50
DECLARE_SPECIFICATION(DerivatorMatrix, dynamicgraph::Matrix)
51
DECLARE_SPECIFICATION(DerivatorVectorQuaternion, VectorQuaternion)
52
} /* namespace sot */
53
} /* namespace dynamicgraph */
54
55
#endif // #ifndef __SOT_DERIVATOR_H__