-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathTraits.h
79 lines (63 loc) · 1.65 KB
/
Traits.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Traits.h
* Author: cancian
*
* Created on 14 de Agosto de 2018, 19:36
*/
#ifndef TRAITS_H
#define TRAITS_H
// interfaces
#include "Model.h"
#include "Collector_if.h"
#include "Sampler_if.h"
#include "Fitter_if.h"
#include "ModelChecker_if.h"
#include "Parser_if.h"
#include "Statistics_if.h"
#include "Integrator_if.h"
#include "HypothesisTester_if.h"
// possible implementations
#include "CollectorMyImpl1.h"
#include "SamplerMyImpl1.h"
#include "FitterMyImpl1.h"
#include "ModelCheckerMyImpl1.h"
#include "ParserMyImpl1.h"
#include "StatisticsMyImpl1.h"
#include "IntegratorMyImpl1.h"
#include "HypothesisTesterMyImpl1.h"
template <typename T>
struct Traits {
static const bool debugged = true;
};
template <> struct Traits<Model> {
};
template <> struct Traits<Sampler_if> {
typedef SamplerMyImpl1 Implementation;
};
template <> struct Traits<Fitter_if> {
typedef FitterMyImpl1 Implementation;
};
template <> struct Traits<Collector_if> {
typedef CollectorMyImpl1 Implementation;
};
template <> struct Traits<ModelChecker_if> {
typedef ModelCheckerMyImpl1 Implementation;
};
template <> struct Traits<Parser_if> {
typedef ParserMyImpl1 Implementation;
};
template <> struct Traits<Statistics_if> {
typedef StatisticsMyImpl1 Implementation;
};
template <> struct Traits<Integrator_if> {
typedef IntegratorMyImpl1 Implementation;
};
template <> struct Traits<HypothesisTester_if> {
typedef HypothesisTesterMyImpl1 Implementation;
};
#endif /* TRAITS_H */