primatologist-gpl
5.1.2
type.h
Go to the documentation of this file.
1
/* Copyright (C) 2000-2013 CEA
2
*
3
* This software and supporting documentation were developed by
4
* bioPICSEL
5
* CEA/DSV/I²BM/MIRCen/LMN, Batiment 61,
6
* 18, route du Panorama
7
* 92265 Fontenay-aux-Roses
8
* France
9
*/
10
11
#ifndef PRIMATOLOGIST_UTILITY_TYPE_H
12
#define PRIMATOLOGIST_UTILITY_TYPE_H
13
14
#include <string>
15
16
//----------------------------------------------------------------------------
17
// type
18
//----------------------------------------------------------------------------
19
20
namespace
aims
{
21
namespace
type {
22
23
template
<
typename
T>
24
struct
identity
{
typedef
T
type
; };
25
26
}
// namespace type
27
28
29
template
<
typename
T>
30
struct
EnumInfo
31
{
32
static
std::string
type
() {
return
""
; }
33
static
std::string
value
(
const
T & v ) {
return
""
; }
34
};
35
36
37
}
// namespace aims
38
39
#endif
// PRIMATOLOGIST_UTILITY_TYPE_H
aims
aims::EnumInfo
Definition:
type.h:31
aims::EnumInfo::type
static std::string type()
Definition:
type.h:32
aims::EnumInfo::value
static std::string value(const T &v)
Definition:
type.h:33
aims::type::identity
Definition:
type.h:24
aims::type::identity::type
T type
Definition:
type.h:24
primatologist
utility
type.h
Generated by
1.9.1