This file is indexed.

/usr/include/root/RtypesCint.h is in libroot-core-dev 5.34.00-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
/* @(#)root/base:$Id: RtypesCint.h 43072 2012-02-21 17:19:15Z pcanal $*/

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_RtypesCint
#define ROOT_RtypesCint

#if !defined(__CINT__) || defined(__MAKECINT)
#error This header file can only be used in interpreted code.
#endif

// The definition of ClassDef is used only for files loaded via the interpreter

#define ClassDef(name,id) \
private: \
   static TClass *fgIsA; \
public: \
 static TClass *Class() { return fgIsA ? fgIsA : (fgIsA = TClass::GetClass(#name)); } \
   static const char *Class_Name() { return #name; }       \
   static Version_t Class_Version() { return id; } \
   static void Dictionary(); \
   virtual TClass *IsA() const { return name::Class(); } \
   virtual void ShowMembers(TMemberInspector &insp, char *parent) { \
      Class()->InterpretedShowMembers(this, insp, parent); }        \
   virtual void Streamer(TBuffer &b); \
   void StreamerNVirtual(TBuffer &b) { name::Streamer(b); } \
   static const char *DeclFileName() { return __FILE__; } \
   static const char *ImplFileName(); \
   static int ImplFileLine(); \
   static int DeclFileLine() { return __LINE__; }

#define ClassDefT(name,id) ClassDef(name,id)

// Obsolete macros
#define ClassDefT2(name,Tmpl)
#define ClassDef2T2(name,Tmpl1,Tmpl2)
#define ClassImp2T(name,Tmpl1,Tmpl2) templateClassImp(name)
#define ClassDef3T2(name,Tmpl1,Tmpl2,Tmpl3)
#define ClassImp3T(name,Tmpl1,Tmpl2,Tmpl3) templateClassImp(name)

// Macro not useful (yet?) in CINT
#define ClassImp(X)
#define ClassImpUnique(name,key)
#define RootClassVersion(name,VersionNumber)

//////////////////////////////////////////////////////////////////////////
//
// Wrapper class around the replacement for the gPad pointer.
//
//////////////////////////////////////////////////////////////////////////
class TVirtualPad;
class TPad;

struct TPadThreadLocal
{
   operator TVirtualPad*() { return TVirtualPad::Pad(); }
   operator TPad*() { return (TPad*)TVirtualPad::Pad(); }
   operator bool() { return 0!=TVirtualPad::Pad(); }

   // Emulate the pointer behavior
   TVirtualPad*  operator->() { return TVirtualPad::Pad(); }
   TVirtualPad*& operator=(TVirtualPad *other) { return (TVirtualPad::Pad() = other); }
   bool operator!=(const TVirtualPad *other) const { return (TVirtualPad::Pad() != other); }
   bool operator!=(TVirtualPad *other) const { return (TVirtualPad::Pad() != other); }
   bool operator==(const TVirtualPad *other) const { return (TVirtualPad::Pad() == other); }
   bool operator==(TVirtualPad *other) const { return (TVirtualPad::Pad() == other); }
};

// Pretty printing routine for CINT
int G__ateval(TPadThreadLocal &) {
   TVirtualPad *pad  = TVirtualPad::Pad();
   if (pad) {
      printf("(class TVirtualPad*)%p\n",(void*)pad);
   } else {
      printf("(class TVirtualPad*)0x0\n",(void*)pad);
   }      
   return 1;
}

TPadThreadLocal gPad;


//////////////////////////////////////////////////////////////////////////
//
// Wrapper class around the replacement for the gDirectory pointer.
//
//////////////////////////////////////////////////////////////////////////
class TDirectory;
class TFile;
struct TDirectoryThreadLocal
{
   operator TDirectory*() { return TDirectory::CurrentDirectory(); }
   operator bool() { return 0!=TDirectory::CurrentDirectory(); }
   
   // This is needed to support (TFile*)gDirectory
   operator TFile*() { return (TFile*)(TDirectory::CurrentDirectory()); }
   // The following 2 are needed to remove ambiguity introduced by the operator TFile*
   operator void*() { return TDirectory::CurrentDirectory(); }

   // Emulate the pointer behavior
   TDirectory*  operator->() { return TDirectory::CurrentDirectory(); }
   TDirectory*& operator=(TDirectory *other) { return (TDirectory::CurrentDirectory() = other); }
   bool operator!=(const TDirectory *other) const { return (TDirectory::CurrentDirectory() != other); }
   bool operator!=(TDirectory *other) const { return (TDirectory::CurrentDirectory() != other); }
   bool operator==(const TDirectory *other) const { return (TDirectory::CurrentDirectory() == other); }
   bool operator==(TDirectory *other) const { return (TDirectory::CurrentDirectory() == other); }
};

// Pretty printing routine for CINT
int G__ateval(TDirectoryThreadLocal &) {
   TDirectory *dir  = TDirectory::CurrentDirectory();
   if (dir) {
      printf("(class TDirectory*)%p\n",(void*)dir);
   } else {
      printf("(class TDirectory*)0x0\n",(void*)dir);
   }      
   return 1;
}

TDirectoryThreadLocal gDirectory;


//////////////////////////////////////////////////////////////////////////
//
// Wrapper class around the replacement for the gFile pointer.
//
//////////////////////////////////////////////////////////////////////////
class TFile;
struct TFileThreadLocal
{
   operator TFile*() { return TFile::CurrentFile(); }
   operator bool() { return 0!=TFile::CurrentFile(); }
   
   // Emulate the pointer behavior
   TFile*  operator->() { return TFile::CurrentFile(); }
   TFile*& operator=(TFile *other) { return (TFile::CurrentFile() = other); }
   bool operator!=(const TFile *other) const { return (TFile::CurrentFile() != other); }
   bool operator!=(TFile *other) const { return (TFile::CurrentFile() != other); }
   bool operator==(const TFile *other) const { return (TFile::CurrentFile() == other); }
   bool operator==(TFile *other) const { return (TFile::CurrentFile() == other); }
};

// Pretty printing routine for CINT
int G__ateval(TFileThreadLocal &) {
   TFile *dir  = TFile::CurrentFile();
   if (dir) {
      printf("(class TFile*)%p\n",(void*)dir);
   } else {
      printf("(class TFile*)0x0\n",(void*)dir);
   }      
   return 1;
}

TFileThreadLocal gFile;


//////////////////////////////////////////////////////////////////////////
//
// Wrapper class around the replacement for the gInterpreter pointer.
//
//////////////////////////////////////////////////////////////////////////
class TInterpreter;
struct TInterpreterWrapper
{
   operator TInterpreter*() { return TInterpreter::Instance(); }
   operator bool() { return 0!=TInterpreter::Instance(); }
   
   // Emulate the pointer behavior
   TInterpreter*  operator->() { return TInterpreter::Instance(); }
   TInterpreter*& operator=(TInterpreter *other) { return (TInterpreter::Instance() = other); }
   bool operator!=(const TInterpreter *other) const { return (TInterpreter::Instance() != other); }
   bool operator!=(TInterpreter *other) const { return (TInterpreter::Instance() != other); }
   bool operator==(const TInterpreter *other) const { return (TInterpreter::Instance() == other); }
   bool operator==(TInterpreter *other) const { return (TInterpreter::Instance() == other); }
};

// Pretty printing routine for CINT
int G__ateval(TInterpreterWrapper &) {
   TInterpreter *interpreter  = TInterpreter::Instance();
   if (interpreter) {
      printf("(class TInterpreter*)%p\n",(void*)interpreter);
   } else {
      printf("(class TInterpreter*)0x0\n",(void*)interpreter);
   }      
   return 1;
}

TInterpreterWrapper gInterpreter;


//////////////////////////////////////////////////////////////////////////
//
// Wrapper class around the replacement for the gVirtualX pointer.
//
//////////////////////////////////////////////////////////////////////////
class TVirtualX;
struct TVirtualXWrapper
{
   operator TVirtualX*() { return TVirtualX::Instance(); }
   operator bool() { return 0!=TVirtualX::Instance(); }
   
   // Emulate the pointer behavior
   TVirtualX*  operator->() { return TVirtualX::Instance(); }
   TVirtualX*& operator=(TVirtualX *other) { return (TVirtualX::Instance() = other); }
   bool operator!=(const TVirtualX *other) const { return (TVirtualX::Instance() != other); }
   bool operator!=(TVirtualX *other) const { return (TVirtualX::Instance() != other); }
   bool operator==(const TVirtualX *other) const { return (TVirtualX::Instance() == other); }
   bool operator==(TVirtualX *other) const { return (TVirtualX::Instance() == other); }
};

// Pretty printing routine for CINT
int G__ateval(TVirtualXWrapper &) {
   TVirtualX *VirtualX  = TDirectory::Instance();
   if (VirtualX) {
      printf("(class TVirtualX*)%p\n",(void*)VirtualX);
   } else {
      printf("(class TVirtualX*)0x0\n",(void*)VirtualX);
   }      
   return 1;
}

TVirtualXWrapper gVirtualX;

#endif