AmpTools
URtypes.h
Go to the documentation of this file.
1 /* @(#)root/base:$Name: $:$Id: URtypes.h,v 1.1.1.1 2006/11/15 18:01:50 mashephe Exp $ */
2 
3 /*************************************************************************
4  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
5  * All rights reserved. *
6  * *
7  * For the licensing terms see $ROOTSYS/LICENSE. *
8  * For the list of contributors see $ROOTSYS/README/CREDITS. *
9  *************************************************************************/
10 
11 #ifndef UPROOT_Rtypes
12 #define UPROOT_Rtypes
13 
14 #include "UpRootMinuit/URConfig.h"
15 
17 // //
18 // Rtypes //
19 // //
20 // Basic types used by ROOT. //
21 // //
23 
24 #include <cstddef>
25 
26 
27 //---- types -------------------------------------------------------------------
28 
29 typedef char Char_urt; //Signed Character 1 byte (char)
30 typedef unsigned char UChar_urt; //Unsigned Character 1 byte (unsigned char)
31 typedef short Short_urt; //Signed Short integer 2 bytes (short)
32 typedef unsigned short UShort_urt; //Unsigned Short integer 2 bytes (unsigned short)
33 #ifdef R__INT16
34 typedef long Int_urt; //Signed integer 4 bytes
35 typedef unsigned long UInt_urt; //Unsigned integer 4 bytes
36 #else
37 typedef int Int_urt; //Signed integer 4 bytes (int)
38 typedef unsigned int UInt_urt; //Unsigned integer 4 bytes (unsigned int)
39 #endif
40 #ifdef R__B64 // Note: Long_urt and ULong_urt are currently not portable types
41 typedef int Seek_urt; //File pointer (int)
42 typedef long Long_urt; //Signed long integer 8 bytes (long)
43 typedef unsigned long ULong_urt; //Unsigned long integer 8 bytes (unsigned long)
44 #else
45 typedef int Seek_urt; //File pointer (int)
46 typedef long Long_urt; //Signed long integer 4 bytes (long)
47 typedef unsigned long ULong_urt; //Unsigned long integer 4 bytes (unsigned long)
48 #endif
49 typedef float Float_urt; //Float 4 bytes (float)
50 typedef double Double_urt; //Float 8 bytes (double)
51 typedef char Text_urt; //General string (char)
52 typedef bool Bool_urt; //Boolean (0=false, 1=true) (bool)
53 typedef unsigned char Byte_urt; //Byte (8 bits) (unsigned char)
54 typedef short Version_urt; //Class version identifier (short)
55 typedef const char Option_urt; //Option string (const char)
56 typedef int Ssiz_urt; //String size (int)
57 typedef float Real_urt; //TVector and TMatrix element type (float)
58 #if defined(R__WIN32) && !defined(__CINT__)
59 typedef __int64 Long64_urt; //Portable signed long integer 8 bytes
60 typedef unsigned __int64 ULong64_urt; //Portable unsigned long integer 8 bytes
61 #else
62 typedef long long Long64_urt; //Portable signed long integer 8 bytes
63 typedef unsigned long long ULong64_urt; //Portable unsigned long integer 8 bytes
64 #endif
65 
66 typedef void (*VoidFuncPtr_urt)(); //pointer to void function
67 
68 
69 //---- constants ---------------------------------------------------------------
70 
71 #ifndef NULL
72 #define NULL 0
73 #endif
74 
75 const Bool_urt kurTRUE = 1;
76 const Bool_urt kurFALSE = 0;
77 
78 const Int_urt kurMaxUShort = 65534;
80 const UInt_urt kurMaxUInt = ~0;
84 
85 const std::size_t kurBitsPerByte = 8;
87 
88 #endif
const Int_urt kurMaxUShort
Definition: URtypes.h:78
long Long_urt
Definition: URtypes.h:46
short Short_urt
Definition: URtypes.h:31
unsigned long ULong_urt
Definition: URtypes.h:47
#define R__LL(longlong)
Definition: URConfig.h:418
int Int_urt
Definition: URtypes.h:37
const Bool_urt kurFALSE
Definition: URtypes.h:76
float Real_urt
Definition: URtypes.h:57
unsigned char UChar_urt
Definition: URtypes.h:30
const UInt_urt kurMaxUInt
Definition: URtypes.h:80
void(* VoidFuncPtr_urt)()
Definition: URtypes.h:66
int Seek_urt
Definition: URtypes.h:45
const Bool_urt kurTRUE
Definition: URtypes.h:75
float Float_urt
Definition: URtypes.h:49
char Text_urt
Definition: URtypes.h:51
long long Long64_urt
Definition: URtypes.h:62
const Int_urt kurMaxShort
Definition: URtypes.h:79
unsigned int UInt_urt
Definition: URtypes.h:38
const Int_urt kurMaxInt
Definition: URtypes.h:81
const ULong64_urt kurMaxULong64
Definition: URtypes.h:82
const std::size_t kurBitsPerByte
Definition: URtypes.h:85
unsigned long long ULong64_urt
Definition: URtypes.h:63
const Long64_urt kurMaxLong64
Definition: URtypes.h:83
const char Option_urt
Definition: URtypes.h:55
unsigned short UShort_urt
Definition: URtypes.h:32
double Double_urt
Definition: URtypes.h:50
unsigned char Byte_urt
Definition: URtypes.h:53
bool Bool_urt
Definition: URtypes.h:52
short Version_urt
Definition: URtypes.h:54
char Char_urt
Definition: URtypes.h:29
const Ssiz_urt kurNPOS
Definition: URtypes.h:86
int Ssiz_urt
Definition: URtypes.h:56