|
||||
File indexing completed on 2025-01-18 09:59:15
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // G4Types 0027 // 0028 // Definition of global GEANT4 native types 0029 0030 // Author: G.Cosmo (CERN), 1995 0031 // -------------------------------------------------------------------- 0032 #ifndef G4TYPES_HH 0033 #define G4TYPES_HH 1 0034 0035 // Fundamental definitions 0036 #ifndef G4GMAKE 0037 # include "G4GlobalConfig.hh" 0038 #endif 0039 0040 #ifdef WIN32 0041 // Disable warning C4786 on WIN32 architectures: 0042 // identifier was truncated to '255' characters 0043 // in the debug information 0044 // 0045 # pragma warning(disable : 4786) 0046 // 0047 // Define DLL export macro for WIN32 systems for 0048 // importing/exporting external symbols to DLLs 0049 // 0050 # if defined G4LIB_BUILD_DLL && !defined G4MULTITHREADED 0051 # define G4DLLEXPORT __declspec(dllexport) 0052 # define G4DLLIMPORT __declspec(dllimport) 0053 # else 0054 # define G4DLLEXPORT 0055 # define G4DLLIMPORT 0056 # endif 0057 // 0058 // Unique identifier for global module 0059 // 0060 # if defined G4GLOB_ALLOC_EXPORT 0061 # define G4GLOB_DLL G4DLLEXPORT 0062 # define G4MTGLOB_DLL __declspec(dllexport) 0063 # else 0064 # define G4GLOB_DLL G4DLLIMPORT 0065 # define G4MTGLOB_DLL __declspec(dllimport) 0066 # endif 0067 #else 0068 # define G4DLLEXPORT 0069 # define G4DLLIMPORT 0070 # define G4GLOB_DLL 0071 # define G4MTGLOB_DLL 0072 #endif 0073 0074 #include <complex> 0075 0076 // Definitions for Thread Local Storage 0077 // 0078 #include "tls.hh" 0079 0080 // Typedefs to decouple from library classes 0081 // Typedefs for numeric types 0082 // 0083 using G4double = double; 0084 using G4float = float; 0085 using G4int = int; 0086 using G4bool = bool; 0087 using G4long = long; 0088 using G4complex = std::complex<G4double>; 0089 0090 // Forward declation of void type argument for usage in direct object 0091 // persistency to define fake default constructors 0092 // 0093 class __void__; 0094 0095 #endif /* G4TYPES_HH */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |