/usr/include/root/TBranchSTL.h is in libroot-tree-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | // @(#)root/tree:$Id$
// author: Lukasz Janyst <ljanyst@cern.ch>
//------------------------------------------------------------------------------
// file: TBranchSTL.h
//------------------------------------------------------------------------------
#ifndef ROOT_TBranchSTL
#define ROOT_TBranchSTL
#include "TBranch.h"
#include "TTree.h"
#include "TVirtualCollectionProxy.h"
#include "TBrowser.h"
#include "TBranchObject.h"
#include "TBranchElement.h"
#include "TIndArray.h"
#if __cplusplus >= 201103L
#include <atomic>
#endif
#include <map>
#include <vector>
#include <utility>
class TBranchSTL: public TBranch {
public:
TBranchSTL();
TBranchSTL( TTree* tree, const char* name,
TVirtualCollectionProxy* collProxy,
Int_t buffsize, Int_t splitlevel );
TBranchSTL( TBranch* parent, const char* name,
TVirtualCollectionProxy* collProxy,
Int_t buffsize, Int_t splitlevel,
TStreamerInfo* info, Int_t id );
virtual ~TBranchSTL();
virtual void Browse( TBrowser *b );
virtual Bool_t IsFolder() const;
virtual Int_t Fill();
virtual const char *GetClassName() const { return fClassName.Data(); }
virtual Int_t GetExpectedType(TClass *&clptr,EDataType &type);
virtual Int_t GetEntry( Long64_t entry = 0, Int_t getall = 0 );
virtual TStreamerInfo *GetInfo() const;
virtual void Print(Option_t*) const;
virtual void SetAddress( void* addr );
ClassDef( TBranchSTL, 1 ) //Branch handling STL collection of pointers
private:
void ReadLeavesImpl( TBuffer& b );
void FillLeavesImpl( TBuffer& b );
#ifndef __CINT__
struct ElementBranchHelper_t
{
ElementBranchHelper_t():
fBranch( 0 ), fPointers( 0 ), fId( 0 ),
fBaseOffset( 0 ), fPosition( 0 ) {}
TBranchElement* fBranch;
std::vector<void*>* fPointers;
UChar_t fId;
UInt_t fBaseOffset;
Int_t fPosition;
};
typedef std::map<TClass*, ElementBranchHelper_t> BranchMap_t;
BranchMap_t fBranchMap; //! Branch map
std::vector<ElementBranchHelper_t> fBranchVector; //! Branch vector
#endif // __CINT__
TVirtualCollectionProxy* fCollProxy; //! Collection proxy
TBranch* fParent; //! Parent of this branch
TClass* fIndArrayCl; //! Class of the ind array
TIndArray fInd; //! Indices
TString fContName; // Class name of referenced object
TString fClassName; // Name of the parent class, if we're the data member
#if __cplusplus >= 201103L
mutable std::atomic<Int_t> fClassVersion; // Version number of the class
#else
mutable Int_t fClassVersion; // Version number of the class
#endif
UInt_t fClCheckSum; // Class checksum
#if __cplusplus >= 201103L
mutable std::atomic<TStreamerInfo*> fInfo; //! The streamer info
#else
mutable TStreamerInfo *fInfo; //! The streamer info
#endif
char* fObject; //! Pointer to object at address or the
Int_t fID; // Element serial number in the streamer info
};
#endif // ROOT_TBranchSTL
|