Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4Types.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27// $Id$
28//
29//
30// GEANT4 native types
31//
32// History:
33
34#ifndef G4TYPES_HH
35#define G4TYPES_HH
36
37#ifdef WIN32
38 // Disable warning C4786 on WIN32 architectures:
39 // identifier was truncated to '255' characters
40 // in the debug information
41 //
42 #pragma warning ( disable : 4786 )
43 //
44 // Define DLL export macro for WIN32 systems for
45 // importing/exporting external symbols to DLLs
46 //
47 #if defined G4LIB_BUILD_DLL
48 #define G4DLLEXPORT __declspec( dllexport )
49 #define G4DLLIMPORT __declspec( dllimport )
50 #else
51 #define G4DLLEXPORT
52 #define G4DLLIMPORT
53 #endif
54#else
55 #define G4DLLEXPORT
56 #define G4DLLIMPORT
57#endif
58
59#include <complex>
60
61// Typedefs to decouple from library classes
62// Typedefs for numeric types
63//
64typedef double G4double;
65typedef float G4float;
66typedef int G4int;
67typedef bool G4bool;
68typedef long G4long;
69typedef std::complex<G4double> G4complex;
70
71// Forward declation of void type argument for usage in direct object
72// persistency to define fake default constructors
73//
74class __void__;
75
76#endif /* G4TYPES_HH */
double G4double
Definition: G4Types.hh:64
long G4long
Definition: G4Types.hh:68
float G4float
Definition: G4Types.hh:65
int G4int
Definition: G4Types.hh:66
std::complex< G4double > G4complex
Definition: G4Types.hh:69
bool G4bool
Definition: G4Types.hh:67