ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
TRefArrayProxy.cxx
Go to the documentation of this file.
1
// @(#)root/meta:$Id$
2
// Author: Markus Frank 10/02/2006
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
#include "
TRefArray.h
"
13
#include "
TRefArrayProxy.h
"
14
#include "
TFormLeafInfoReference.h
"
15
16
/** \class TRefArrayProxy
17
A container proxy, which allows to access references stored
18
in a TRefArray from TTree::Draw
19
*/
20
21
////////////////////////////////////////////////////////////////////////////////
22
/// Access referenced object(-data)
23
24
void
* TRefArrayProxy::GetObject(TFormLeafInfoReference*
/*info*/
,
void
* data, Int_t instance) {
25
TRefArray* ref = (TRefArray*)data;
//((char*)data + info->GetOffset());
26
return
ref->At(instance);
27
}
28
29
////////////////////////////////////////////////////////////////////////////////
30
/// TVirtualRefProxy overload: Access to container size (if container reference (ie TRefArray) etc)
31
32
Int_t TRefArrayProxy::GetCounterValue(TFormLeafInfoReference*
/*info*/
,
void
* data) {
33
TRefArray* ref = (TRefArray*)data;
34
return
ref->GetEntriesFast();
35
}
TRefArray.h
TFormLeafInfoReference.h
TRefArrayProxy.h
tree
treeplayer
src
TRefArrayProxy.cxx
Generated on Tue May 5 2020 14:03:39 for ROOT by
1.8.5