Skip to content
Snippets Groups Projects
Commit f2345009 authored by Anders Eie's avatar Anders Eie Committed by Axel Naumann
Browse files

Changed and refactored TCollectionReaderABC to TVirtualCollectionReader

parent 25523518
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ namespace ROOT {
TString& contentTypeName,
TDictionary* &dict) const;
TCollectionReaderABC* fImpl; // Common interface to collections
TVirtualCollectionReader* fImpl; // Common interface to collections
ClassDefT(TTreeReaderArrayBase, 0);//Accessor to member of an object stored in a collection
};
......
......@@ -60,13 +60,13 @@ namespace ROOT {
};
// Used by TTreeReaderArray
class TCollectionReaderABC {
class TVirtualCollectionReader {
public:
ROOT::TTreeReaderValueBase::EReadStatus fReadStatus;
TCollectionReaderABC() : fReadStatus(ROOT::TTreeReaderValueBase::kReadNothingYet) {}
TVirtualCollectionReader() : fReadStatus(ROOT::TTreeReaderValueBase::kReadNothingYet) {}
virtual ~TCollectionReaderABC();
virtual ~TVirtualCollectionReader();
virtual size_t GetSize(TBranchProxy*) = 0;
virtual void* At(TBranchProxy*, size_t /*idx*/) = 0;
};
......
......@@ -26,11 +26,11 @@
#include "TRegexp.h"
// pin vtable
ROOT::TCollectionReaderABC::~TCollectionReaderABC() {}
ROOT::TVirtualCollectionReader::~TVirtualCollectionReader() {}
namespace {
// Reader interface for clones arrays
class TClonesReader: public ROOT::TCollectionReaderABC {
class TClonesReader: public ROOT::TVirtualCollectionReader {
public:
~TClonesReader() {}
TClonesArray* GetCA(ROOT::TBranchProxy* proxy) {
......@@ -59,7 +59,7 @@ namespace {
};
// Reader interface for STL
class TSTLReader: public ROOT::TCollectionReaderABC {
class TSTLReader: public ROOT::TVirtualCollectionReader {
private:
Bool_t proxySet;
public:
......@@ -109,7 +109,7 @@ namespace {
}
};
class TCollectionLessSTLReader : public ROOT::TCollectionReaderABC {
class TCollectionLessSTLReader : public ROOT::TVirtualCollectionReader {
private:
TVirtualCollectionProxy *localCollection;
Bool_t proxySet;
......@@ -166,7 +166,7 @@ namespace {
// Reader interface for leaf list
// SEE TTreeProxyGenerator.cxx:1319: '//We have a top level raw type'
class TObjectArrayReader: public ROOT::TCollectionReaderABC {
class TObjectArrayReader: public ROOT::TVirtualCollectionReader {
public:
~TObjectArrayReader() {}
TVirtualCollectionProxy* GetCP(ROOT::TBranchProxy* proxy) {
......@@ -216,7 +216,7 @@ namespace {
virtual size_t GetSize(ROOT::TBranchProxy* /*proxy*/) { return size; }
};
class TBasicTypeArrayReader : public ROOT::TCollectionReaderABC {
class TBasicTypeArrayReader : public ROOT::TVirtualCollectionReader {
public:
~TBasicTypeArrayReader() {}
......@@ -256,7 +256,7 @@ namespace {
}
};
class TLeafReader : public ROOT::TCollectionReaderABC {
class TLeafReader : public ROOT::TVirtualCollectionReader {
private:
ROOT::TTreeReaderValueBase *valueReader;
public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment