Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4Types.hh
이 파일의 문서화 페이지로 가기
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 109033 2018-03-22 11:14:17Z 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 && !defined G4MULTITHREADED
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
std::complex< G4double > G4complex
Definition: G4Types.hh:81
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
long G4long
Definition: G4Types.hh:80
int G4int
Definition: G4Types.hh:78