Logo ROOT  
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_Rtypes
13// Include Rtypes.h outside of the code guard to insure the intended
14// ordering of Rtypes.h and TGenericClassInfo.h
15#include "Rtypes.h"
16#endif
17
18#ifndef ROOT_TGenericClassInfo
19#define ROOT_TGenericClassInfo
20
21#include <vector>
22#include "TSchemaHelper.h"
23
24// Forward declarations
26//class TClass;
27//class TClassStreamer;
28//class TVirtualCollectionProxy;
29
30
31namespace ROOT {
32
33 namespace Internal {
34 /// Returns a string with the demangled and normalized name for the given type.
35 std::string GetDemangledTypeName(const std::type_info&);
36 }
37
38 namespace Detail {
39 class TCollectionProxyInfo;
40 }
41
43 // This class in not inlined because it is used is non time critical
44 // section (the dictionaries) and inline would lead to too much
45 // repetition of the code (once per class!).
46
49 const char *fClassName;
50 const char *fDeclFileName;
53 const std::type_info &fInfo;
54 const char *fImplFileName;
74 std::vector<ROOT::Internal::TSchemaHelper> fReadRules;
75 std::vector<ROOT::Internal::TSchemaHelper> fReadRawRules;
76
77 public:
78 TGenericClassInfo(const char *fullClassname,
79 const char *declFileName, Int_t declFileLine,
80 const std::type_info &info, const Internal::TInitBehavior *action,
81 DictFuncPtr_t dictionary,
82 TVirtualIsAProxy *isa, Int_t pragmabits, Int_t sizof);
83
84 TGenericClassInfo(const char *fullClassname, Int_t version,
85 const char *declFileName, Int_t declFileLine,
86 const std::type_info &info, const Internal::TInitBehavior *action,
87 DictFuncPtr_t dictionary,
88 TVirtualIsAProxy *isa, Int_t pragmabits, Int_t sizof);
89
90 TGenericClassInfo(const char *fullClassname, Int_t version,
91 const char *declFileName, Int_t declFileLine,
92 const Internal::TInitBehavior *action,
93 DictFuncPtr_t dictionary, Int_t pragmabits);
94
95 void Init(Int_t pragmabits);
97
100 const char *GetClassName() const;
103 const char *GetDeclFileName() const;
104 Int_t GetDeclFileLine() const;
105 DelFunc_t GetDelete() const;
107 DesFunc_t GetDestructor() const;
109 const char *GetImplFileName();
111 const std::type_info &GetInfo() const;
112 TVirtualIsAProxy *GetIsA() const;
113 NewFunc_t GetNew() const;
115 const std::vector<ROOT::Internal::TSchemaHelper> &GetReadRawRules() const;
116 const std::vector<ROOT::Internal::TSchemaHelper> &GetReadRules() const;
117 Int_t GetVersion() const;
118
119 TClass *IsA(const void *obj);
120
125 Int_t SetDeclFile(const char *file, Int_t line);
126 void SetDelete(DelFunc_t deleteFunc);
127 void SetDeleteArray(DelArrFunc_t deleteArrayFunc);
128 void SetDestructor(DesFunc_t destructorFunc);
129 void SetDirectoryAutoAdd(DirAutoAdd_t dirAutoAdd);
130 void SetFromTemplate();
131 Int_t SetImplFile(const char *file, Int_t line);
132 void SetMerge(MergeFunc_t);
134 void SetNew(NewFunc_t newFunc);
135 void SetNewArray(NewArrFunc_t newArrayFunc);
136 void SetReadRawRules( const std::vector<ROOT::Internal::TSchemaHelper>& rules );
137 void SetReadRules( const std::vector<ROOT::Internal::TSchemaHelper>& rules );
141 Short_t SetVersion(Short_t version);
142
143 // protected:
144 private:
145 void CreateRuleSet( std::vector<ROOT::Internal::TSchemaHelper>& vect, Bool_t ProcessReadRules );
146 TGenericClassInfo(const TGenericClassInfo&); // Not implemented
147 TGenericClassInfo& operator=(const TGenericClassInfo&); // Not implemented
148
149 private:
151
152 };
153
154}
155
156#endif
short Short_t
Definition: RtypesCore.h:37
TClass *(* DictFuncPtr_t)()
Definition: Rtypes.h:78
void(* ClassStreamerFunc_t)(TBuffer &, void *)
Definition: Rtypes.h:70
void(* ClassConvStreamerFunc_t)(TBuffer &, void *, const TClass *)
Definition: Rtypes.h:71
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)
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:80
TLine * line
std::string GetDemangledTypeName(const std::type_info &)
Returns a string with the demangled and normalized name for the given type.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition: StringConv.hxx:21
void(* DirAutoAdd_t)(void *, TDirectory *)
Definition: Rtypes.h:111
void(* ResetAfterMergeFunc_t)(void *, TFileMergeInfo *)
Definition: Rtypes.h:113
void(* DesFunc_t)(void *)
Definition: Rtypes.h:110
void(* DelFunc_t)(void *)
Definition: Rtypes.h:108
void *(* NewArrFunc_t)(Long_t size, void *arena)
Definition: Rtypes.h:107
void(* DelArrFunc_t)(void *)
Definition: Rtypes.h:109
void *(* NewFunc_t)(void *)
Definition: Rtypes.h:106
Long64_t(* MergeFunc_t)(void *, TCollection *, TFileMergeInfo *)
Definition: Rtypes.h:112
Definition: file.py:1