Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 TVirtualRefProxy* Clone() const override { return new TRefArrayProxy(*this);}
28 // TVirtualRefProxy overload: Flag to indicate if this is a container reference
29 bool HasCounter() const override { return true; }
30 // TVirtualRefProxy overload: Access referenced object(-data)
31 void* GetObject(TFormLeafInfoReference* info, void* data, Int_t instance) override;
32 // TVirtualRefProxy overload: Access to container size (if container reference (ie TRefArray) etc)
33 Int_t GetCounterValue(TFormLeafInfoReference* info, void *data) override;
34};
35#endif // ROOT_TRefArrayProxy
static Roo_reg_AGKInteg1D instance
int Int_t
Definition RtypesCore.h:45
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
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.
TVirtualRefProxy * Clone() const override
Int_t GetCounterValue(TFormLeafInfoReference *info, void *data) override
TVirtualRefProxy overload: Access to container size (if container reference (ie TRefArray) etc)
bool HasCounter() const override
void * GetObject(TFormLeafInfoReference *info, void *data, Int_t instance) override
Access referenced object(-data)