ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 #ifndef ROOT_TRefProxy
15 #include "TRefProxy.h"
16 #endif
17 
18 //______________________________________________________________________________
19 //
20 // TRefArrayProxy is a container proxy, which allows to access references stored
21 // in a TRefArray from TTree::Draw
22 //
23 //______________________________________________________________________________
24 class TRefArrayProxy : public TRefProxy {
25 public:
26  // The implicit's constructor and destructor have the correct implementation.
27 
28  // TVirtualRefProxy overload: Clone the reference proxy (virtual constructor)
29  virtual TVirtualRefProxy* Clone() const { return new TRefArrayProxy(*this);}
30  // TVirtualRefProxy overload: Flag to indicate if this is a container reference
31  virtual Bool_t HasCounter() const { return kTRUE; }
32  // TVirtualRefProxy overload: Access referenced object(-data)
33  virtual void* GetObject(TFormLeafInfoReference* info, void* data, Int_t instance);
34  // TVirtualRefProxy overload: Access to container size (if container reference (ie TRefArray) etc)
35  virtual Int_t GetCounterValue(TFormLeafInfoReference* info, void *data);
36 };
37 #endif // ROOT_TRefArrayProxy
A small helper class to implement the following of reference objects stored in a TTree.
virtual Bool_t HasCounter() const
TVirtualRefProxy overload: Flag to indicate if this is a container reference.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual TVirtualRefProxy * Clone() const
TVirtualRefProxy overload: Clone the reference proxy (virtual constructor)
A container proxy, which allows to access references stored in a TRefArray from TTree::Draw.
virtual void * GetObject(TFormLeafInfoReference *info, void *data, Int_t instance)
Access referenced object(-data)
virtual Int_t GetCounterValue(TFormLeafInfoReference *info, void *data)
TVirtualRefProxy overload: Access to container size (if container reference (ie TRefArray) etc) ...
const Bool_t kTRUE
Definition: Rtypes.h:91