Jpp  17.3.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JDefault.hh
Go to the documentation of this file.
1 #ifndef __JLANG__JDEFAULT__
2 #define __JLANG__JDEFAULT__
3 
4 /**
5  * \author mdejong
6  */
7 
8 namespace JLANG {}
9 namespace JPP { using namespace JLANG; }
10 
11 namespace 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
static const T & getDefault()
Get default value of template class.
Definition: JDefault.hh:24
do set_variable OUTPUT_DIRECTORY $WORKDIR T
static const T value
Definition: JDefault.hh:30
Simple default class.
Definition: JDefault.hh:18