Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JDefault.hh
Go to the documentation of this file.
1#ifndef __JLANG__JDEFAULT__
2#define __JLANG__JDEFAULT__
3
4/**
5 * \author mdejong
6 */
7
8namespace JLANG {}
9namespace JPP { using namespace JLANG; }
10
11namespace JLANG {
12
13
14 /**
15 * Simple default class.
16 */
17 template<class T>
18 struct JDefault {
19 /**
20 * Get default value of template class.
21 *
22 * \return value
23 */
24 static const T& getDefault()
25 {
26 return value;
27 }
28
29 private:
30 static const T value;
31 };
32
33 /**
34 */
35 template<class T>
36 const T JDefault<T>::value;
37}
38
39#endif
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Simple default class.
Definition JDefault.hh:18
static const T & getDefault()
Get default value of template class.
Definition JDefault.hh:24
static const T value
Definition JDefault.hh:30