GammaLib
2.0.0
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
x
Functions
a
c
d
e
f
g
h
i
l
m
n
p
r
s
t
w
x
Variables
d
e
f
g
i
l
m
o
p
r
s
t
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
d
e
f
h
i
l
m
n
p
r
s
u
v
Enumerations
Enumerator
Related Symbols
a
c
e
g
i
l
m
n
o
p
s
t
Files
File List
File Members
All
_
a
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
Functions
_
a
c
e
i
l
m
n
o
p
s
t
Variables
c
d
g
j
m
n
o
r
s
t
u
Typedefs
Enumerations
Enumerator
Macros
_
c
d
f
g
h
n
u
▼
GammaLib
Todo List
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
include
GammaLib.hpp
►
GApplication.hpp
►
GApplicationPar.hpp
►
GApplicationPars.hpp
►
GArf.hpp
►
GBase.hpp
►
GBilinear.hpp
►
GCaldb.hpp
►
GContainer.hpp
►
GCsv.hpp
►
GDaemon.hpp
►
GDerivative.hpp
►
GEbounds.hpp
►
GEnergies.hpp
►
GEnergy.hpp
►
GEphemerides.hpp
►
GEvent.hpp
►
GEventAtom.hpp
►
GEventBin.hpp
►
GEventCube.hpp
►
GEventList.hpp
►
GEvents.hpp
►
GException.hpp
►
GFft.hpp
►
GFftWavetable.hpp
►
GFilename.hpp
►
GFits.hpp
►
GFitsAsciiTable.hpp
►
GFitsBinTable.hpp
►
GFitsHDU.hpp
►
GFitsHeader.hpp
►
GFitsHeaderCard.hpp
►
GFitsImage.hpp
►
GFitsImageByte.hpp
►
GFitsImageDouble.hpp
►
GFitsImageFloat.hpp
►
GFitsImageLong.hpp
►
GFitsImageLongLong.hpp
►
GFitsImageSByte.hpp
►
GFitsImageShort.hpp
►
GFitsImageULong.hpp
►
GFitsImageUShort.hpp
►
GFitsTable.hpp
►
GFitsTableBitCol.hpp
►
GFitsTableBoolCol.hpp
►
GFitsTableByteCol.hpp
►
GFitsTableCDoubleCol.hpp
►
GFitsTableCFloatCol.hpp
►
GFitsTableCol.hpp
►
GFitsTableDoubleCol.hpp
►
GFitsTableFloatCol.hpp
►
GFitsTableLongCol.hpp
►
GFitsTableLongLongCol.hpp
►
GFitsTableShortCol.hpp
►
GFitsTableStringCol.hpp
►
GFitsTableULongCol.hpp
►
GFitsTableUShortCol.hpp
►
GFunction.hpp
►
GFunctions.hpp
►
GGti.hpp
►
GHealpix.hpp
►
GHorizDir.hpp
►
GInstDir.hpp
►
GIntegral.hpp
►
GIntegrals.hpp
►
GLog.hpp
►
GMath.hpp
►
GMatrix.hpp
►
GMatrixBase.hpp
►
GMatrixSparse.hpp
►
GMatrixSymmetric.hpp
►
GModel.hpp
►
GModelAssociation.hpp
►
GModelAssociations.hpp
►
GModelData.hpp
►
GModelPar.hpp
►
GModelRegistry.hpp
►
GModels.hpp
►
GModelSky.hpp
►
GModelSpatial.hpp
►
GModelSpatialComposite.hpp
►
GModelSpatialDiffuse.hpp
►
GModelSpatialDiffuseConst.hpp
►
GModelSpatialDiffuseCube.hpp
►
GModelSpatialDiffuseMap.hpp
►
GModelSpatialElliptical.hpp
►
GModelSpatialEllipticalDisk.hpp
►
GModelSpatialEllipticalGauss.hpp
►
GModelSpatialEllipticalGeneralGauss.hpp
►
GModelSpatialPointSource.hpp
►
GModelSpatialRadial.hpp
►
GModelSpatialRadialDisk.hpp
►
GModelSpatialRadialGauss.hpp
►
GModelSpatialRadialGeneralGauss.hpp
►
GModelSpatialRadialProfile.hpp
►
GModelSpatialRadialProfileDMBurkert.hpp
►
GModelSpatialRadialProfileDMEinasto.hpp
►
GModelSpatialRadialProfileDMZhao.hpp
►
GModelSpatialRadialProfileGauss.hpp
►
GModelSpatialRadialRing.hpp
►
GModelSpatialRadialShell.hpp
►
GModelSpatialRegistry.hpp
►
GModelSpectral.hpp
►
GModelSpectralBins.hpp
►
GModelSpectralBrokenPlaw.hpp
►
GModelSpectralComposite.hpp
►
GModelSpectralConst.hpp
►
GModelSpectralExpInvPlaw.hpp
►
GModelSpectralExponential.hpp
►
GModelSpectralExpPlaw.hpp
►
GModelSpectralFunc.hpp
►
GModelSpectralGauss.hpp
►
GModelSpectralLogParabola.hpp
►
GModelSpectralMultiplicative.hpp
►
GModelSpectralNodes.hpp
►
GModelSpectralPlaw.hpp
►
GModelSpectralPlawEnergyFlux.hpp
►
GModelSpectralPlawPhotonFlux.hpp
►
GModelSpectralRegistry.hpp
►
GModelSpectralSmoothBrokenPlaw.hpp
►
GModelSpectralSuperExpPlaw.hpp
►
GModelSpectralTable.hpp
►
GModelSpectralTablePar.hpp
►
GModelSpectralTablePars.hpp
►
GModelTemporal.hpp
►
GModelTemporalConst.hpp
►
GModelTemporalLightCurve.hpp
►
GModelTemporalPhaseCurve.hpp
►
GModelTemporalRegistry.hpp
►
GNdarray.hpp
►
GNodeArray.hpp
►
GObservation.hpp
►
GObservationRegistry.hpp
►
GObservations.hpp
►
GOptimizer.hpp
►
GOptimizerFunction.hpp
►
GOptimizerLM.hpp
►
GOptimizerPar.hpp
►
GOptimizerPars.hpp
►
GPha.hpp
►
GPhases.hpp
►
GPhoton.hpp
►
GPhotons.hpp
►
GPulsar.hpp
►
GPulsarEphemeris.hpp
►
GRan.hpp
►
GRegistry.hpp
►
GResponse.hpp
►
GResponseCache.hpp
►
GResponseVectorCache.hpp
►
GRmf.hpp
►
GRoi.hpp
►
GSkyDir.hpp
►
GSkyDirs.hpp
►
GSkyMap.hpp
►
GSkyPixel.hpp
►
GSkyProjection.hpp
►
GSkyRegion.hpp
►
GSkyRegionCircle.hpp
►
GSkyRegionMap.hpp
►
GSkyRegionRectangle.hpp
►
GSkyRegions.hpp
►
GSource.hpp
►
GTestCase.hpp
►
GTestSuite.hpp
►
GTestSuites.hpp
►
GTime.hpp
►
GTimeReference.hpp
►
GTimes.hpp
►
GTools.hpp
►
GTypemaps.hpp
►
GUrl.hpp
►
GUrlFile.hpp
►
GUrlString.hpp
►
GVector.hpp
►
GVOClient.hpp
►
GVOHub.hpp
►
GVOTable.hpp
►
GWcs.hpp
►
GWcsAIT.hpp
►
GWcsARC.hpp
►
GWcsAZP.hpp
►
GWcsCAR.hpp
►
GWcsGLS.hpp
►
GWcsMER.hpp
►
GWcsMOL.hpp
►
GWcsRegistry.hpp
►
GWcsSFL.hpp
►
GWcsSIN.hpp
►
GWcsSTG.hpp
►
GWcsTAN.hpp
►
GXml.hpp
►
GXmlAttribute.hpp
►
GXmlComment.hpp
►
GXmlDocument.hpp
►
GXmlElement.hpp
►
GXmlNode.hpp
►
GXmlPI.hpp
►
GXmlText.hpp
►
inst
►
src
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
GTypemaps.hpp
Go to the documentation of this file.
1
/***************************************************************************
2
* GTypemaps.hpp - GammaLib typemaps *
3
* ----------------------------------------------------------------------- *
4
* copyright (C) 2013-2014 by Juergen Knoedlseder *
5
* ----------------------------------------------------------------------- *
6
* *
7
* This program is free software: you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation, either version 3 of the License, or *
10
* (at your option) any later version. *
11
* *
12
* This program is distributed in the hope that it will be useful, *
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15
* GNU General Public License for more details. *
16
* *
17
* You should have received a copy of the GNU General Public License *
18
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
19
* *
20
***************************************************************************/
21
/**
22
* @file GTypemaps.hpp
23
* @brief Definition of GammaLib typemaps
24
* @author Juergen Knoedlseder
25
*/
26
27
#ifndef GTYPEMAPS_HPP
28
#define GTYPEMAPS_HPP
29
30
/* __ Includes ___________________________________________________________ */
31
32
/* __ Chatter level enumerations _________________________________________ */
33
typedef
enum
{
34
SILENT
= 0,
35
TERSE
= 1,
36
NORMAL
= 2,
37
EXPLICIT
= 3,
38
VERBOSE
= 4
39
}
GChatter
;
33
typedef
enum
{
…
};
40
41
/* __ Class code enumerations (used primarily to avoid dynamic casting) __ */
42
typedef
enum
{
43
GMODEL_SPATIAL_POINT_SOURCE
,
44
GMODEL_SPATIAL_RADIAL
,
45
GMODEL_SPATIAL_ELLIPTICAL
,
46
GMODEL_SPATIAL_DIFFUSE
,
47
GMODEL_SPATIAL_COMPOSITE
48
}
GClassCode
;
42
typedef
enum
{
…
};
49
50
/* __ Typemaps ___________________________________________________________ */
51
52
/* __ Prototypes _________________________________________________________ */
53
namespace
gammalib
{
54
GChatter
reduce
(
const
GChatter
& chatter);
55
}
56
57
58
/***********************************************************************/
/**
59
* @brief Reduce chattiness by one level
60
*
61
* @param[in] chatter Chattiness.
62
* @return Reduced chattiness.
63
***************************************************************************/
64
inline
65
GChatter
gammalib::reduce
(
const
GChatter
& chatter)
66
{
67
// Allocate reduced chattiness
68
GChatter
reduced;
69
70
// Reduce chattiness
71
switch
(chatter) {
72
case
SILENT
:
73
reduced =
SILENT
;
74
break
;
75
case
TERSE
:
76
reduced =
SILENT
;
77
break
;
78
case
NORMAL
:
79
reduced =
TERSE
;
80
break
;
81
case
EXPLICIT
:
82
reduced =
NORMAL
;
83
break
;
84
case
VERBOSE
:
85
reduced =
EXPLICIT
;
86
break
;
87
default
:
88
reduced = chatter;
89
break
;
90
}
91
92
// Return reduced chattiness
93
return
reduced;
94
}
65
GChatter
gammalib::reduce
(
const
GChatter
& chatter) {
…
}
95
96
#endif
/* GTYPEMAPS_HPP */
GChatter
GChatter
Definition
GTypemaps.hpp:33
NORMAL
@ NORMAL
Definition
GTypemaps.hpp:36
TERSE
@ TERSE
Definition
GTypemaps.hpp:35
EXPLICIT
@ EXPLICIT
Definition
GTypemaps.hpp:37
SILENT
@ SILENT
Definition
GTypemaps.hpp:34
VERBOSE
@ VERBOSE
Definition
GTypemaps.hpp:38
GClassCode
GClassCode
Definition
GTypemaps.hpp:42
GMODEL_SPATIAL_ELLIPTICAL
@ GMODEL_SPATIAL_ELLIPTICAL
Definition
GTypemaps.hpp:45
GMODEL_SPATIAL_RADIAL
@ GMODEL_SPATIAL_RADIAL
Definition
GTypemaps.hpp:44
GMODEL_SPATIAL_COMPOSITE
@ GMODEL_SPATIAL_COMPOSITE
Definition
GTypemaps.hpp:47
GMODEL_SPATIAL_DIFFUSE
@ GMODEL_SPATIAL_DIFFUSE
Definition
GTypemaps.hpp:46
GMODEL_SPATIAL_POINT_SOURCE
@ GMODEL_SPATIAL_POINT_SOURCE
Definition
GTypemaps.hpp:43
gammalib
Definition
GArf.hpp:44
gammalib::reduce
GChatter reduce(const GChatter &chatter)
Reduce chattiness by one level.
Definition
GTypemaps.hpp:65
include
GTypemaps.hpp
Generated on Tue Jan 14 2025 15:02:55 for GammaLib by
1.11.0