Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 "TSchemaHelper.h"
22#include <vector>
23#include <string>
24
25// Forward declarations
27
28
29namespace ROOT {
30
31 namespace Internal {
32 /// Returns a string with the demangled and normalized name for the given type.
33 std::string GetDemangledTypeName(const std::type_info&);
34 }
35
36 namespace Detail {
37 class TCollectionProxyInfo;
38 }
39
41 // This class in not inlined because it is used is non time critical
42 // section (the dictionaries) and inline would lead to too much
43 // repetition of the code (once per class!).
44
47 const char *fClassName;
48 const char *fDeclFileName;
51 const std::type_info &fInfo;
52 const char *fImplFileName;
72 std::vector<ROOT::Internal::TSchemaHelper> fReadRules;
73 std::vector<ROOT::Internal::TSchemaHelper> fReadRawRules;
74
75 public:
76 TGenericClassInfo(const char *fullClassname,
77 const char *declFileName, Int_t declFileLine,
78 const std::type_info &info, const Internal::TInitBehavior *action,
79 DictFuncPtr_t dictionary,
80 TVirtualIsAProxy *isa, Int_t pragmabits, Int_t sizof);
81
82 TGenericClassInfo(const char *fullClassname, Int_t version,
83 const char *declFileName, Int_t declFileLine,
84 const std::type_info &info, const Internal::TInitBehavior *action,
85 DictFuncPtr_t dictionary,
86 TVirtualIsAProxy *isa, Int_t pragmabits, Int_t sizof);
87
88 TGenericClassInfo(const char *fullClassname, Int_t version,
89 const char *declFileName, Int_t declFileLine,
90 const Internal::TInitBehavior *action,
91 DictFuncPtr_t dictionary, Int_t pragmabits);
92
93 void Init(Int_t pragmabits);
95
98 const char *GetClassName() const;
101 const char *GetDeclFileName() const;
102 Int_t GetDeclFileLine() const;
103 DelFunc_t GetDelete() const;
105 DesFunc_t GetDestructor() const;
107 const char *GetImplFileName();
109 const std::type_info &GetInfo() const;
110 TVirtualIsAProxy *GetIsA() const;
111 NewFunc_t GetNew() const;
113 const std::vector<ROOT::Internal::TSchemaHelper> &GetReadRawRules() const;
114 const std::vector<ROOT::Internal::TSchemaHelper> &GetReadRules() const;
115 Int_t GetVersion() const;
116
117 TClass *IsA(const void *obj);
118
123 Int_t SetDeclFile(const char *file, Int_t line);
124 void SetDelete(DelFunc_t deleteFunc);
125 void SetDeleteArray(DelArrFunc_t deleteArrayFunc);
126 void SetDestructor(DesFunc_t destructorFunc);
127 void SetDirectoryAutoAdd(DirAutoAdd_t dirAutoAdd);
128 void SetFromTemplate();
129 Int_t SetImplFile(const char *file, Int_t line);
130 void SetMerge(MergeFunc_t);
132 void SetNew(NewFunc_t newFunc);
133 void SetNewArray(NewArrFunc_t newArrayFunc);
134 void SetReadRawRules( const std::vector<ROOT::Internal::TSchemaHelper>& rules );
135 void SetReadRules( const std::vector<ROOT::Internal::TSchemaHelper>& rules );
139 Short_t SetVersion(Short_t version);
140
141 // protected:
142 private:
143 void CreateRuleSet( std::vector<ROOT::Internal::TSchemaHelper>& vect, Bool_t ProcessReadRules );
146
147 private:
149
150 };
151
152}
153
154#endif
short Short_t
Definition RtypesCore.h:39
TClass *(* DictFuncPtr_t)()
Definition Rtypes.h:80
void(* ClassStreamerFunc_t)(TBuffer &, void *)
Definition Rtypes.h:72
void(* ClassConvStreamerFunc_t)(TBuffer &, void *, const TClass *)
Definition Rtypes.h:73
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)
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
void SetReadRules(const std::vector< ROOT::Internal::TSchemaHelper > &rules)
ClassConvStreamerFunc_t fConvStreamerFunc
TGenericClassInfo(const TGenericClassInfo &)=delete
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)
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)
TGenericClassInfo & operator=(const TGenericClassInfo &)=delete
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...
void(* DirAutoAdd_t)(void *, TDirectory *)
Definition Rtypes.h:113
void(* ResetAfterMergeFunc_t)(void *, TFileMergeInfo *)
Definition Rtypes.h:115
void(* DesFunc_t)(void *)
Definition Rtypes.h:112
void(* DelFunc_t)(void *)
Definition Rtypes.h:110
void *(* NewArrFunc_t)(Long_t size, void *arena)
Definition Rtypes.h:109
void(* DelArrFunc_t)(void *)
Definition Rtypes.h:111
void *(* NewFunc_t)(void *)
Definition Rtypes.h:108
Long64_t(* MergeFunc_t)(void *, TCollection *, TFileMergeInfo *)
Definition Rtypes.h:114
Definition file.py:1