Logo ROOT   6.16/01
Reference Guide
TGenericClassInfo.h
Go to the documentation of this file.
1// @(#)root/meta:$Id$
2// Author: Philippe Canal 23/2/02
3
4/*************************************************************************
5 * Copyright (C) 1995-2002, Rene Brun, Fons Rademakers and al. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TGenericClassInfo
13#define ROOT_TGenericClassInfo
14
15#include <vector>
16#include "TSchemaHelper.h"
17#include "Rtypes.h"
18
19// Forward declarations
21//class TClass;
22//class TClassStreamer;
23//class TVirtualCollectionProxy;
24
25
26namespace ROOT {
27
28 namespace Internal {
29 /// Returns a string with the demangled and normalized name for the given type.
30 std::string GetDemangledTypeName(const std::type_info&);
31 }
32
33 namespace Detail {
34 class TCollectionProxyInfo;
35 }
36
38 // This class in not inlined because it is used is non time critical
39 // section (the dictionaries) and inline would lead to too much
40 // repetition of the code (once per class!).
41
44 const char *fClassName;
45 const char *fDeclFileName;
48 const std::type_info &fInfo;
49 const char *fImplFileName;
69 std::vector<ROOT::Internal::TSchemaHelper> fReadRules;
70 std::vector<ROOT::Internal::TSchemaHelper> fReadRawRules;
71
72 public:
73 TGenericClassInfo(const char *fullClassname,
74 const char *declFileName, Int_t declFileLine,
75 const std::type_info &info, const Internal::TInitBehavior *action,
76 DictFuncPtr_t dictionary,
77 TVirtualIsAProxy *isa, Int_t pragmabits, Int_t sizof);
78
79 TGenericClassInfo(const char *fullClassname, Int_t version,
80 const char *declFileName, Int_t declFileLine,
81 const std::type_info &info, const Internal::TInitBehavior *action,
82 DictFuncPtr_t dictionary,
83 TVirtualIsAProxy *isa, Int_t pragmabits, Int_t sizof);
84
85 TGenericClassInfo(const char *fullClassname, Int_t version,
86 const char *declFileName, Int_t declFileLine,
87 const Internal::TInitBehavior *action,
88 DictFuncPtr_t dictionary, Int_t pragmabits);
89
90 void Init(Int_t pragmabits);
92
95 const char *GetClassName() const;
98 const char *GetDeclFileName() const;
99 Int_t GetDeclFileLine() const;
100 DelFunc_t GetDelete() const;
102 DesFunc_t GetDestructor() const;
104 const char *GetImplFileName();
106 const std::type_info &GetInfo() const;
107 TVirtualIsAProxy *GetIsA() const;
108 NewFunc_t GetNew() const;
110 const std::vector<ROOT::Internal::TSchemaHelper> &GetReadRawRules() const;
111 const std::vector<ROOT::Internal::TSchemaHelper> &GetReadRules() const;
112 Int_t GetVersion() const;
113
114 TClass *IsA(const void *obj);
115
120 Int_t SetDeclFile(const char *file, Int_t line);
121 void SetDelete(DelFunc_t deleteFunc);
122 void SetDeleteArray(DelArrFunc_t deleteArrayFunc);
123 void SetDestructor(DesFunc_t destructorFunc);
124 void SetDirectoryAutoAdd(DirAutoAdd_t dirAutoAdd);
125 void SetFromTemplate();
126 Int_t SetImplFile(const char *file, Int_t line);
127 void SetMerge(MergeFunc_t);
129 void SetNew(NewFunc_t newFunc);
130 void SetNewArray(NewArrFunc_t newArrayFunc);
131 void SetReadRawRules( const std::vector<ROOT::Internal::TSchemaHelper>& rules );
132 void SetReadRules( const std::vector<ROOT::Internal::TSchemaHelper>& rules );
136 Short_t SetVersion(Short_t version);
137
138 // protected:
139 private:
140 void CreateRuleSet( std::vector<ROOT::Internal::TSchemaHelper>& vect, Bool_t ProcessReadRules );
141 TGenericClassInfo(const TGenericClassInfo&); // Not implemented
142 TGenericClassInfo& operator=(const TGenericClassInfo&); // Not implemented
143
144 private:
146
147 };
148
149}
150
151#endif
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
short Short_t
Definition: RtypesCore.h:35
TClass *(* DictFuncPtr_t)()
Definition: Rtypes.h:77
void(* ClassStreamerFunc_t)(TBuffer &, void *)
Definition: Rtypes.h:69
void(* ClassConvStreamerFunc_t)(TBuffer &, void *, const TClass *)
Definition: Rtypes.h:70
DesFunc_t GetDestructor() const
const Internal::TInitBehavior * fAction
TVirtualIsAProxy * GetIsA() const
DelArrFunc_t GetDeleteArray() const
Short_t AdoptCollectionProxy(TVirtualCollectionProxy *)
const char * GetClassName() const
void SetDelete(DelFunc_t deleteFunc)
TGenericClassInfo & operator=(const TGenericClassInfo &)
void SetDirectoryAutoAdd(DirAutoAdd_t dirAutoAdd)
void SetDeleteArray(DelArrFunc_t deleteArrayFunc)
TVirtualCollectionProxy * fCollectionProxy
void SetResetAfterMerge(ResetAfterMergeFunc_t)
std::vector< ROOT::Internal::TSchemaHelper > fReadRules
void CreateRuleSet(std::vector< ROOT::Internal::TSchemaHelper > &vect, Bool_t ProcessReadRules)
Attach the schema evolution information to TClassObject.
TClass * IsA(const void *obj)
Short_t SetVersion(Short_t version)
void SetConvStreamerFunc(ClassConvStreamerFunc_t)
Detail::TCollectionProxyInfo * fCollectionProxyInfo
TVirtualIsAProxy * fIsA
Detail::TCollectionProxyInfo * fCollectionStreamerInfo
void SetNewArray(NewArrFunc_t newArrayFunc)
std::vector< ROOT::Internal::TSchemaHelper > fReadRawRules
Int_t SetImplFile(const char *file, Int_t line)
const std::type_info & fInfo
NewArrFunc_t GetNewArray() const
const Internal::TInitBehavior & GetAction() const
ClassStreamerFunc_t fStreamerFunc
Detail::TCollectionProxyInfo * GetCollectionStreamerInfo() const
void SetReadRawRules(const std::vector< ROOT::Internal::TSchemaHelper > &rules)
DirAutoAdd_t GetDirectoryAutoAdd() const
const std::vector< ROOT::Internal::TSchemaHelper > & GetReadRawRules() const
TClassStreamer * fStreamer
void SetReadRules(const std::vector< ROOT::Internal::TSchemaHelper > &rules)
ClassConvStreamerFunc_t fConvStreamerFunc
const std::type_info & GetInfo() const
Detail::TCollectionProxyInfo * GetCollectionProxyInfo() const
void Init(Int_t pragmabits)
ResetAfterMergeFunc_t fResetAfterMerge
const char * GetDeclFileName() const
void SetDestructor(DesFunc_t destructorFunc)
TGenericClassInfo(const TGenericClassInfo &)
void AdoptCollectionProxyInfo(Detail::TCollectionProxyInfo *)
const std::vector< ROOT::Internal::TSchemaHelper > & GetReadRules() const
Int_t SetDeclFile(const char *file, Int_t line)
Short_t SetStreamer(ClassStreamerFunc_t)
Short_t AdoptStreamer(TClassStreamer *)
void AdoptCollectionStreamerInfo(Detail::TCollectionProxyInfo *)
void SetNew(NewFunc_t newFunc)
void SetStreamerFunc(ClassStreamerFunc_t)
The ROOT global object gROOT contains a list of all defined classes.
Definition: TClass.h:75
TLine * line
std::string GetDemangledTypeName(const std::type_info &)
Returns a string with the demangled and normalized name for the given type.
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21
void(* DirAutoAdd_t)(void *, TDirectory *)
Definition: Rtypes.h:114
void(* ResetAfterMergeFunc_t)(void *, TFileMergeInfo *)
Definition: Rtypes.h:116
void(* DesFunc_t)(void *)
Definition: Rtypes.h:113
void(* DelFunc_t)(void *)
Definition: Rtypes.h:111
void *(* NewArrFunc_t)(Long_t size, void *arena)
Definition: Rtypes.h:110
void(* DelArrFunc_t)(void *)
Definition: Rtypes.h:112
void *(* NewFunc_t)(void *)
Definition: Rtypes.h:109
Long64_t(* MergeFunc_t)(void *, TCollection *, TFileMergeInfo *)
Definition: Rtypes.h:115
Definition: file.py:1