source: XIOS/dev/XIOS_DEV_CMIP6/src/type/type_util.hpp @ 1314

Last change on this file since 1314 was 1314, checked in by ymipsl, 3 years ago

Add 2 new spatial transformations :

  • reduce_scalar_to_scalar : global reduction between scalar
  • duplicate_scalar_to_axis : a scalar value is duplicated on each level of the axis.

YM

  • Property copyright set to
    Software name : XIOS (Xml I/O Server)
    http://forge.ipsl.jussieu.fr/ioserver
    Creation date : January 2009
    Licence : CeCCIL version2
    see license file in root directory : Licence_CeCILL_V2-en.txt
    or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html
    Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement)
    CNRS/IPSL (Institut Pierre Simon Laplace)
    Project Manager : Yann Meurdesoif
    yann.meurdesoif@cea.fr
File size: 3.4 KB
RevLine 
[313]1#ifndef __TYPE_UTIL_HPP__
2#define __TYPE_UTIL_HPP__
3
4#include <string>
[335]5namespace xios
[313]6{
[549]7    class CDomain;
[313]8    class CDomainGroup;
9    class CField;
10    class CFieldGroup;
11    class CGrid;
12    class CGridGroup;
13    class CAxis;
14    class CAxisGroup;
15    class CFile;
16    class CFileGroup;
17    class CContext;
[352]18    class CContextGroup;
[549]19    class CCalendarWrapper;
20    class CVariable;
21    class CVariableGroup;
[621]22    class CInverseAxis;
23    class CInverseAxisGroup;
24    class CZoomAxis;
25    class CZoomAxisGroup;
[630]26    class CInterpolateAxis;
27    class CInterpolateAxisGroup;
[631]28    class CZoomDomain;
29    class CZoomDomainGroup;
[689]30    class CInterpolateDomain;
31    class CInterpolateDomainGroup;
[687]32    class CGenerateRectilinearDomain;
33    class CGenerateRectilinearDomainGroup;
[887]34    class CScalar;
35    class CScalarGroup;
[888]36    class CReduceAxisToScalar;
37    class CReduceAxisToScalarGroup;
[895]38    class CReduceDomainToAxis;
39    class CReduceDomainToAxisGroup;
[1301]40    class CReduceAxisToAxis;
41    class CReduceAxisToAxisGroup;
[895]42    class CExtractDomainToAxis;
43    class CExtractDomainToAxisGroup;
[934]44    class CComputeConnectivityDomain;
45    class CComputeConnectivityDomainGroup;
[935]46    class CExpandDomain;
47    class CExpandDomainGroup;
[960]48    class CExtractAxisToScalar;
49    class CExtractAxisToScalarGroup;
[976]50    class CReduceDomainToScalar;
51    class CReduceDomainToScalarGroup;
[1275]52    class CTemporalSplitting;
53    class CTemporalSplittingGroup;
[1314]54    class CDuplicateScalarToAxis;
55    class CDuplicateScalarToAxisGroup;
56    class CReduceScalarToScalar;
57    class CReduceScalarToScalarGroup;
58 
[549]59  template <typename T> inline string getStrType(void);
60
61#define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); }
62
[313]63  macro(short)
64  macro(unsigned short)
65  macro(int)
66  macro(unsigned int)
67  macro(long)
68  macro(unsigned long)
69  macro(float)
70  macro(double)
71  macro(long double)
72  macro(char)
73  macro(unsigned char)
74  macro(wchar_t)
75  macro(bool)
[327]76#undef macro
[549]77
78#define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); }
[313]79  macro(CDomain)
80  macro(CDomainGroup)
81  macro(CField)
82  macro(CFieldGroup)
83  macro(CGrid)
84  macro(CGridGroup)
85  macro(CAxis)
86  macro(CAxisGroup)
87  macro(CFile)
88  macro(CFileGroup)
89  macro(CContext)
[352]90  macro(CContextGroup)
[549]91  macro(CCalendarWrapper)
[352]92  macro(CVariable)
93  macro(CVariableGroup)
[621]94  macro(CInverseAxis)
95  macro(CInverseAxisGroup)
96  macro(CZoomAxis)
97  macro(CZoomAxisGroup)
[630]98  macro(CInterpolateAxis)
99  macro(CInterpolateAxisGroup)
[631]100  macro(CZoomDomain)
101  macro(CZoomDomainGroup)
[689]102  macro(CInterpolateDomain)
103  macro(CInterpolateDomainGroup)
[687]104  macro(CGenerateRectilinearDomain)
105  macro(CGenerateRectilinearDomainGroup)
[887]106  macro(CScalar)
107  macro(CScalarGroup)
[888]108  macro(CReduceAxisToScalar)
109  macro(CReduceAxisToScalarGroup)
[895]110  macro(CReduceDomainToAxis)
111  macro(CReduceDomainToAxisGroup)
[1301]112  macro(CReduceAxisToAxis)
113  macro(CReduceAxisToAxisGroup)
[895]114  macro(CExtractDomainToAxis)
115  macro(CExtractDomainToAxisGroup)
[934]116  macro(CComputeConnectivityDomain)
117  macro(CComputeConnectivityDomainGroup)
[935]118  macro(CExpandDomain)
119  macro(CExpandDomainGroup)
[960]120  macro(CExtractAxisToScalar)
121  macro(CExtractAxisToScalarGroup)
[976]122  macro(CReduceDomainToScalar)
123  macro(CReduceDomainToScalarGroup)
[1275]124  macro(CTemporalSplitting)
125  macro(CTemporalSplittingGroup)
[1314]126  macro(CDuplicateScalarToAxis)
127  macro(CDuplicateScalarToAxisGroup)
128  macro(CReduceScalarToScalar)
129  macro(CReduceScalarToScalarGroup)
[976]130 
[313]131#undef macro
132}
133
134
135#endif
Note: See TracBrowser for help on using the repository browser.