Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
SeqCollectionMethodVar.cxx
Go to the documentation of this file.
1//*-- Author : Ole Hansen 18/2/2016
2
4//
5// SeqCollectionMethodVar
6//
7// A "global variable" referencing a member function call on objects
8// in a TSeqCollection
9//
11
13
14using namespace std;
15
16namespace Podd {
17
18//_____________________________________________________________________________
20 VarType type, TMethodCall* method )
21 : Variable(pvar,addr,type), MethodVar(pvar,addr,type,method),
22 SeqCollectionVar(pvar,addr,type,0)
23{
24 // Constructor
25}
26
27//_____________________________________________________________________________
29{
30 // Get pointer to data from method call on i-th object stored in a
31 // TSeqCollection (e.g. TClonesArray)
32
33 const void* obj = SeqCollectionVar::GetDataPointer(i);
34 if( !obj )
35 return nullptr;
36
37 // Get data from method, using object retrieved from TSeqCollection above
38 return MethodVar::GetDataPointer(obj);
39}
40
41//_____________________________________________________________________________
43{
44 // Data are basic (POD variable or array)
45
46 return false;
47}
48
49}// namespace Podd
int Int_t
bool Bool_t
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
virtual const void * GetDataPointer(Int_t i=0) const
Definition MethodVar.cxx:47
SeqCollectionMethodVar(THaVar *pvar, const void *addr, VarType type, TMethodCall *method)
virtual const void * GetDataPointer(Int_t i=0) const
virtual const void * GetDataPointer(Int_t i=0) const
STL namespace.