OpenStructure
histogram.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2011 by the OpenStructure authors
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License as published by the Free
8 // Software Foundation; either version 3.0 of the License, or (at your option)
9 // any later version.
10 // This library is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 // details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this library; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 //------------------------------------------------------------------------------
19 #ifndef OST_QA_HISTOGRAM_HH
20 #define OST_QA_HISTOGRAM_HH
21 /*
22  Author: Marco Biasini
23  */
24 #include <ost/stdint.hh>
25 
26 #include <ost/qa/module_config.hh>
28 
29 namespace ost { namespace qa {
30 
32 template <typename T1,
33  typename T2=impl::NullType,
34  typename T3=impl::NullType,
35  typename T4=impl::NullType,
36  typename T5=impl::NullType,
37  typename T6=impl::NullType,
38  typename T7=impl::NullType>
39 class Histogram : public MultiClassifier<uint32_t, T1, T2, T3, T4, T5, T6, T7>
40 {
41 public:
42  typedef Classifier<T1> C1;
43  typedef Classifier<T2> C2;
44  typedef Classifier<T3> C3;
45  typedef Classifier<T4> C4;
46  typedef Classifier<T5> C5;
47  typedef Classifier<T6> C6;
48  typedef Classifier<T7> C7;
49 #ifdef _MSC_VER
50  Histogram(typename C1::ConstRefType c1,
51  typename C2::ConstRefType c2=C2::Type(),
52  typename C3::ConstRefType c3=C3::Type(),
53  typename C4::ConstRefType c4=C4::Type(),
54  typename C5::ConstRefType c5=C5::Type(),
55  typename C6::ConstRefType c6=C6::Type(),
56  typename C7::ConstRefType c7=C7::Type())
57 #else
59  typename C2::ConstRefType c2=typename C2::Type(),
60  typename C3::ConstRefType c3=typename C3::Type(),
61  typename C4::ConstRefType c4=typename C4::Type(),
62  typename C5::ConstRefType c5=typename C5::Type(),
63  typename C6::ConstRefType c6=typename C6::Type(),
64  typename C7::ConstRefType c7=typename C7::Type())
65 #endif
66  : MultiClassifier<uint32_t, T1, T2, T3, T4,
67  T5, T6, T7>(0, c1, c2, c3, c4, c5, c6, c7) {
68  }
69 
71  MultiClassifier<uint32_t, T1, T2, T3, T4, T5, T6, T7>()
72  {
73  }
74 };
75 
76 }} // ost::qa
77 
78 #endif