Jpp
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
software
JLang
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
JLANG::JType
Auxiliary class for a type holder.
Definition:
JType.hh:19
getType
std::pair< int, std::string > const & getType(CLBCommonHeader const &header)
Definition:
datatypes.cpp:12
JLANG::JType::data_type
T data_type
Definition:
JType.hh:21
Generated by
1.8.5