Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
MethodVar.h
Go to the documentation of this file.
1#ifndef Podd_MethodVar_h_
2#define Podd_MethodVar_h_
3
5//
6// MethodVar
7//
8// A "global variable" referencing a class member function call
9//
11
12#include "Variable.h"
13
14class TMethodCall;
15
16namespace Podd {
17
18 class MethodVar : virtual public Variable {
19
20 public:
21 MethodVar( THaVar* pvar, const void* addr, VarType type,
22 TMethodCall* method );
23 virtual ~MethodVar();
24
25 virtual const void* GetDataPointer( Int_t i = 0 ) const;
26 virtual Bool_t IsBasic() const;
27
28 protected:
29 TMethodCall* fMethod; //Member function to access data in object
30 // Data cache, filled in GetDataPointer()
31 mutable Double_t fData; //Function call result (interpretation depends on fType!)
32
33 const void* GetDataPointer( const void* obj ) const;
34 };
35
36}// namespace Podd
37
38#endif
int Int_t
bool Bool_t
double Double_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
Double_t fData
Definition MethodVar.h:31
virtual ~MethodVar()
Definition MethodVar.cxx:39
virtual Bool_t IsBasic() const
virtual const void * GetDataPointer(Int_t i=0) const
Definition MethodVar.cxx:47
TMethodCall * fMethod
Definition MethodVar.h:29