Skip to content

Commit 65a5247

Browse files
committed
[tree] implement missing classdefs
1 parent 86a433b commit 65a5247

File tree

7 files changed

+8
-25
lines changed

7 files changed

+8
-25
lines changed

roottest/root/io/namespacedict/Header.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,9 @@ namespace A {
1515
#ifdef WIN32
1616
ClassDef(Class2,1) //
1717
#else
18-
ClassDefT(A::Class2<T>,1) //
18+
ClassDef(A::Class2<T>,1) //
1919
#endif
2020
};
21-
22-
#ifndef __MAKECINT__
23-
ClassDefT2(Class2,T)
24-
#endif
2521
}
2622

2723
namespace B {

roottest/root/io/newClassDef/current/template.C

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#include "template.h"
22
#include "TBufferFile.h"
33

4-
//ClassImpT(MyTemplate,const int)
5-
64
#ifdef _ClassInit_
75
// Old Style
86
#define _ClassImpTS_(name,Tmpl) \
@@ -27,9 +25,6 @@
2725

2826
ClassImpTS(MyTemplate,const double*)
2927

30-
ClassImpT(MyTemplate,T)
31-
ClassImp2T(MyPairTemplate,T,T2)
32-
3328
const double dvalue = 33.3;
3429

3530
static MyTemplate<int> dummy(1);

roottest/root/io/rootcint/cltestClass.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212

1313
ClassImp(TestClass)
14-
ClassImpT(TestClass::IE_t, T)
1514

1615

1716
//________________________________________________________________________

roottest/root/io/rootcint/cltestClass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TestClass : public TObject {
2323
TIE_t() : fIndex(0), fVal(0) {}
2424
TIE_t(UInt_t i, T v) : fIndex(i),fVal(v) {}
2525
virtual ~TIE_t() {}
26-
ClassDefT(TIE_t,1) // Generic parameter given by an index (in common block)
26+
ClassDef(TIE_t,1) // Generic parameter given by an index (in common block)
2727
};
2828

2929
template<typename T = Int_t>

roottest/root/meta/rootcling/selectTemplateInvalidArg.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ class RtObj2 : public T
66
public:
77
RtObj2() {}
88
RtObj2( const T & val ) : T(val) {}
9-
ClassDefT(RtObj2,1)
9+
ClassDef(RtObj2,1)
1010
} ;
1111

12-
ClassDefT2(RtObj2,T)
13-
14-
ClassImpT(RtObj2,T)

tree/treeplayer/inc/TTreeReaderArray.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ class TTreeReaderArrayBase : public TTreeReaderValueBase {
5252

5353
std::unique_ptr<TVirtualCollectionReader> fImpl; // Common interface to collections
5454

55-
// FIXME: re-introduce once we have ClassDefInline!
56-
// ClassDefOverride(TTreeReaderArrayBase, 0);//Accessor to member of an object stored in a collection
55+
ClassDefInlineOverride(TTreeReaderArrayBase, 0);//Accessor to member of an object stored in a collection
5756
};
5857

5958
class R__CLING_PTRCHECK(off) TTreeReaderUntypedArray final : public TTreeReaderArrayBase {
@@ -241,8 +240,7 @@ class R__CLING_PTRCHECK(off) TTreeReaderArray final : public ROOT::Internal::TTr
241240
#define R__TTreeReaderArray_TypeString(T) #T
242241
const char *GetDerivedTypeName() const override { return R__TTreeReaderArray_TypeString(T); }
243242
#undef R__TTreeReaderArray_TypeString
244-
// FIXME: re-introduce once we have ClassDefTInline!
245-
// ClassDefT(TTreeReaderArray, 0);//Accessor to member of an object stored in a collection
243+
ClassDefInline(TTreeReaderArray, 0);//Accessor to member of an object stored in a collection
246244
};
247245

248246
namespace cling {

tree/treeplayer/inc/TTreeReaderValue.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ class TTreeReaderValueBase {
150150
*/
151151
bool fOpaqueRead{false};
152152

153-
// FIXME: re-introduce once we have ClassDefInline!
154-
// ClassDefOverride(TTreeReaderValueBase, 0);//Base class for accessors to data via TTreeReader
153+
ClassDefInlineOverride(TTreeReaderValueBase, 0);//Base class for accessors to data via TTreeReader
155154

156155
friend class ::TTreeReader;
157156
};
@@ -238,16 +237,15 @@ class R__CLING_PTRCHECK(off) TTreeReaderValue final : public ROOT::Internal::TTr
238237
T &operator*() { return *Get(); }
239238

240239
protected:
241-
// FIXME: use IsA() instead once we have ClassDefTInline
240+
// FIXME: use IsA() instead
242241
/// Get the template argument as a string.
243242
const char *GetDerivedTypeName() const override
244243
{
245244
static const std::string sElementTypeName = GetElementTypeName(typeid(T));
246245
return sElementTypeName.data();
247246
}
248247

249-
// FIXME: re-introduce once we have ClassDefTInline!
250-
// ClassDefT(TTreeReaderValue, 0);//Accessor to data via TTreeReader
248+
ClassDefInlineOverride(TTreeReaderValue, 0);//Accessor to data via TTreeReader
251249
};
252250

253251
namespace cling {

0 commit comments

Comments
 (0)