Logo ROOT  
Reference Guide
TRefArrayProxy.h
Go to the documentation of this file.
1 // @(#)root/treeplayer:$Id$
2 // Author: Markus Frank 20/05/2005
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
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_TRefArrayProxy
13 #define ROOT_TRefArrayProxy
14 #include "TRefProxy.h"
15 
16 //______________________________________________________________________________
17 //
18 // TRefArrayProxy is a container proxy, which allows to access references stored
19 // in a TRefArray from TTree::Draw
20 //
21 //______________________________________________________________________________
22 class TRefArrayProxy : public TRefProxy {
23 public:
24  // The implicit's constructor and destructor have the correct implementation.
25 
26  // TVirtualRefProxy overload: Clone the reference proxy (virtual constructor)
27  virtual TVirtualRefProxy* Clone() const { return new TRefArrayProxy(*this);}
28  // TVirtualRefProxy overload: Flag to indicate if this is a container reference
29  virtual Bool_t HasCounter() const { return kTRUE; }
30  // TVirtualRefProxy overload: Access referenced object(-data)
31  virtual void* GetObject(TFormLeafInfoReference* info, void* data, Int_t instance);
32  // TVirtualRefProxy overload: Access to container size (if container reference (ie TRefArray) etc)
33  virtual Int_t GetCounterValue(TFormLeafInfoReference* info, void *data);
34 };
35 #endif // ROOT_TRefArrayProxy
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
TRefArrayProxy
A container proxy, which allows to access references stored in a TRefArray from TTree::Draw.
Definition: TRefArrayProxy.h:22
TRefArrayProxy::GetCounterValue
virtual Int_t GetCounterValue(TFormLeafInfoReference *info, void *data)
TVirtualRefProxy overload: Access to container size (if container reference (ie TRefArray) etc)
Definition: TRefArrayProxy.cxx:32
TRefArrayProxy::HasCounter
virtual Bool_t HasCounter() const
TVirtualRefProxy overload: Flag to indicate if this is a container reference.
Definition: TRefArrayProxy.h:29
Int_t
int Int_t
Definition: RtypesCore.h:45
TRefArrayProxy::Clone
virtual TVirtualRefProxy * Clone() const
TVirtualRefProxy overload: Clone the reference proxy (virtual constructor)
Definition: TRefArrayProxy.h:27
bool
TVirtualRefProxy
Definition: TVirtualRefProxy.h:81
TRefArrayProxy::GetObject
virtual void * GetObject(TFormLeafInfoReference *info, void *data, Int_t instance)
Access referenced object(-data)
Definition: TRefArrayProxy.cxx:24
TFormLeafInfoReference
A small helper class to implement the following of reference objects stored in a TTree.
Definition: TFormLeafInfoReference.h:20
TRefProxy.h
RooFit_internal::instance
static Roo_reg_AGKInteg1D instance
Definition: RooAdaptiveGaussKronrodIntegrator1D.cxx:153
TRefProxy
Definition: TRefProxy.h:28