Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
VectorObjMethodVar.cxx
Go to the documentation of this file.
1//*-- Author : Ole Hansen 15/2/2018
2
4//
5// VectorObjMethodVar
6//
7// A "global variable" referencing a class member function call
8// on objects held in a std::vector.
9//
11
12#include "VectorObjMethodVar.h"
13
14using namespace std;
15
16namespace Podd {
17
18//_____________________________________________________________________________
20 VarType type, Int_t elem_size, TMethodCall* method )
21 : Variable(pvar,addr,type),
22 SeqCollectionVar(pvar,addr,type,0),
23 MethodVar(pvar,addr,type,method),
24 VectorObjVar(pvar,addr,type,elem_size,0)
25{
26 // Constructor
27}
28
29//_____________________________________________________________________________
31{
32 // Get pointer to data from method call on i-th object stored in a
33 // std::vector
34
35 const void* obj = VectorObjVar::GetDataPointer(i);
36 if( !obj )
37 return nullptr;
38
39 // Get data from method, using object retrieved from the std::vector above
40 return MethodVar::GetDataPointer(obj);
41}
42
43//_____________________________________________________________________________
45{
46 // Data are basic (POD variable or array)
47
48 return false;
49}
50
51}// 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
VectorObjMethodVar(THaVar *pvar, const void *addr, VarType type, Int_t elem_size, TMethodCall *method)
virtual Bool_t IsBasic() const
virtual const void * GetDataPointer(Int_t i=0) const
virtual const void * GetDataPointer(Int_t i=0) const
STL namespace.