Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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: G4Types.hh 67970 2013-03-13 10:10:06Z gcosmo $
28 //
29 //
30 // GEANT4 native types
31 //
32 
33 #ifndef G4TYPES_HH
34 #define G4TYPES_HH
35 
36 #ifdef WIN32
37  // Disable warning C4786 on WIN32 architectures:
38  // identifier was truncated to '255' characters
39  // in the debug information
40  //
41  #pragma warning ( disable : 4786 )
42  //
43  // Define DLL export macro for WIN32 systems for
44  // importing/exporting external symbols to DLLs
45  //
46  #if defined G4LIB_BUILD_DLL
47  #define G4DLLEXPORT __declspec( dllexport )
48  #define G4DLLIMPORT __declspec( dllimport )
49  #else
50  #define G4DLLEXPORT
51  #define G4DLLIMPORT
52  #endif
53  //
54  // Unique identifier for global module
55  //
56  #if defined G4GLOB_ALLOC_EXPORT
57  #define G4GLOB_DLL G4DLLEXPORT
58  #else
59  #define G4GLOB_DLL G4DLLIMPORT
60  #endif
61 #else
62  #define G4DLLEXPORT
63  #define G4DLLIMPORT
64  #define G4GLOB_DLL
65 #endif
66 
67 #include <complex>
68 
69 // Definitions for Thread Local Storage
70 //
71 #include "tls.hh"
72 
73 // Typedefs to decouple from library classes
74 // Typedefs for numeric types
75 //
76 typedef double G4double;
77 typedef float G4float;
78 typedef int G4int;
79 typedef bool G4bool;
80 typedef long G4long;
81 typedef std::complex<G4double> G4complex;
82 
83 // Forward declation of void type argument for usage in direct object
84 // persistency to define fake default constructors
85 //
86 class __void__;
87 
88 #endif /* G4TYPES_HH */
float G4float
Definition: G4Types.hh:77
long G4long
Definition: G4Types.hh:80
int G4int
Definition: G4Types.hh:78
std::complex< G4double > G4complex
Definition: G4Types.hh:81
bool G4bool
Definition: G4Types.hh:79
double G4double
Definition: G4Types.hh:76