Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
icl_core
src
icl_core
TemplateHelper.h
Go to the documentation of this file.
1
// this is a -*- C++ -*- file
2
3
// -- BEGIN LICENSE BLOCK ----------------------------------------------
4
// This file is part of FZIs ic_workspace.
5
//
6
// This program is free software licensed under the LGPL
7
// (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8
// You can find a copy of this license in LICENSE folder in the top
9
// directory of the source code.
10
//
11
// © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12
//
13
// -- END LICENSE BLOCK ------------------------------------------------
14
15
//----------------------------------------------------------------------
24
//----------------------------------------------------------------------
25
#ifndef ICL_CORE_TEMPLATE_HELPER_H_INCLUDED
26
#define ICL_CORE_TEMPLATE_HELPER_H_INCLUDED
27
28
namespace
icl_core
{
29
36
template
<
typename
T>
37
struct
ConvertToRef
38
{
39
typedef
const
T&
ToConstRef
;
40
typedef
T&
ToRef
;
41
};
42
template
<
typename
T>
43
struct
ConvertToRef
<T&>
44
{
45
typedef
T&
ToConstRef
;
46
typedef
T&
ToRef
;
47
};
48
49
59
template
<
typename
T>
60
struct
DefaultConstruct
61
{
62
static
T
C
()
63
{
64
return
T();
65
}
66
};
67
68
}
69
70
#endif
icl_core::ConvertToRef
Definition:
TemplateHelper.h:37
icl_core::ConvertToRef< T & >::ToConstRef
T & ToConstRef
Definition:
TemplateHelper.h:45
icl_core::ConvertToRef::ToRef
T & ToRef
Definition:
TemplateHelper.h:40
icl_core::ConvertToRef::ToConstRef
const T & ToConstRef
Definition:
TemplateHelper.h:39
icl_core::ConvertToRef< T & >::ToRef
T & ToRef
Definition:
TemplateHelper.h:46
icl_core::DefaultConstruct::C
static T C()
Definition:
TemplateHelper.h:62
icl_core::DefaultConstruct
Definition:
TemplateHelper.h:60
icl_core
Definition:
Array2D.h:30
fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58