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//______________________________________________________________________________
22class TRefArrayProxy : public TRefProxy {
23public:
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
int Int_t
Definition: RtypesCore.h:43
const Bool_t kTRUE
Definition: RtypesCore.h:89
A small helper class to implement the following of reference objects stored in a TTree.
A container proxy, which allows to access references stored in a TRefArray from TTree::Draw.
virtual Bool_t HasCounter() const
TVirtualRefProxy overload: Flag to indicate if this is a container reference.
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)
virtual TVirtualRefProxy * Clone() const
TVirtualRefProxy overload: Clone the reference proxy (virtual constructor)
static Roo_reg_AGKInteg1D instance