STK++
0.9.13
STK_IdTypeImpl.h
Go to the documentation of this file.
1
/*--------------------------------------------------------------------*/
2
/* Copyright (C) 2007 Serge Iovleff
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU Lesser General Public License as
6
published by the Free Software Foundation; either version 2 of the
7
License, or (at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU Lesser General Public License for more details.
13
14
You should have received a copy of the GNU Lesser General Public
15
License along with this program; if not, write to the
16
Free Software Foundation, Inc.,
17
59 Temple Place,
18
Suite 330,
19
Boston, MA 02111-1307
20
USA
21
22
Contact : S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
23
*/
24
25
/*
26
* Project: Base
27
* Purpose: Define the Runtime Type Identification (RTTI) classes.
28
* Author: Serge Iovleff, S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
29
*
30
**/
31
37
#ifndef STK_RTTI_H
38
#define STK_RTTI_H
39
40
namespace
STK
41
{
42
namespace
Base
43
{
57
enum
IdType
58
{
59
character_
,
60
real_
,
61
integer_
,
62
binary_
,
63
sign_
,
64
string_
,
65
range_
,
66
unknown_
= -1
67
};
68
69
}
// namespace Base
70
77
template
<
typename
TYPE>
78
struct
IdTypeImpl
79
{
81
static
Base::IdType
returnType
() {
return
(
Base::unknown_
);}
82
};
83
84
}
// namespace STK
85
86
#endif
/* STK_RTTI_H */
STK::Base::IdType
IdType
Id for the Type of a variable.
Definition
STK_IdTypeImpl.h:58
STK::Base::real_
@ real_
Quantitative type.
Definition
STK_IdTypeImpl.h:60
STK::Base::string_
@ string_
String type.
Definition
STK_IdTypeImpl.h:64
STK::Base::sign_
@ sign_
Sign type {-1, 1}.
Definition
STK_IdTypeImpl.h:63
STK::Base::range_
@ range_
Range type.
Definition
STK_IdTypeImpl.h:65
STK::Base::unknown_
@ unknown_
Unknown type.
Definition
STK_IdTypeImpl.h:66
STK::Base::integer_
@ integer_
Qualitative type.
Definition
STK_IdTypeImpl.h:61
STK::Base::binary_
@ binary_
Binary type {0, 1}.
Definition
STK_IdTypeImpl.h:62
STK::Base::character_
@ character_
character_ type
Definition
STK_IdTypeImpl.h:59
STK
The namespace STK is the main domain space of the Statistical ToolKit project.
STK::IdTypeImpl
Implementation of the return type.
Definition
STK_IdTypeImpl.h:79
STK::IdTypeImpl::returnType
static Base::IdType returnType()
Definition
STK_IdTypeImpl.h:81
projects
Sdk
include
STK_IdTypeImpl.h
Generated on Sat Feb 15 2025 12:07:17 for STK++ by
1.9.8