Jpp  17.2.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JType.hh
Go to the documentation of this file.
1 #ifndef __JLANG__JTYPE__
2 #define __JLANG__JTYPE__
3 
4 
5 /**
6  * \author mdejong
7  */
8 
9 namespace JLANG {}
10 namespace JPP { using namespace JLANG; }
11 
12 namespace JLANG {
13 
14  /**
15  * Auxiliary class for a type holder.
16  * This class can be used to transfer a template class to a method argument.
17  */
18  template<class T>
19  struct JType {
20 
21  typedef T data_type;
22  };
23 
24 
25  /**
26  * Get type.
27  *
28  * \return type
29  */
30  template<class T>
31  inline JType<T> getType()
32  {
33  return JType<T>();
34  }
35 }
36 
37 #endif
Auxiliary class for a type holder.
Definition: JType.hh:19
std::pair< int, std::string > const & getType(CLBCommonHeader const &header)
Definition: datatypes.cpp:12
do set_variable OUTPUT_DIRECTORY $WORKDIR T
T data_type
Definition: JType.hh:21