Jpp
JSwitch.hh
Go to the documentation of this file.
1 #ifndef __JLANG__JSWITCH__
2 #define __JLANG__JSWITCH__
3 
4 /**
5  * \author mdejong
6  */
7 
8 namespace JLANG {}
9 namespace JPP { using namespace JLANG; }
10 
11 namespace JLANG {
12 
13  /**
14  * Template selection of type specifier.
15  */
16  template<bool, class A, class B>
17  class JSwitch {
18  public:
19  typedef B value_type;
20  };
21 
22 
23  /**
24  * Template specialisation of selection of type specifier.
25  */
26  template<class A, class B>
27  class JSwitch<true, A, B> {
28  public:
29  typedef A value_type;
30  };
31 }
32 
33 #endif
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JAAnetToolkit.hh:37
JLANG::JSwitch< true, A, B >::value_type
A value_type
Definition: JSwitch.hh:29
JLANG::JSwitch::value_type
B value_type
Definition: JSwitch.hh:19
JLANG::JSwitch
Template selection of type specifier.
Definition: JSwitch.hh:17
JLANG
Auxiliary classes and methods for language specific functionality.
Definition: JAbstractClass.hh:10