ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TMethodArg.h
Go to the documentation of this file.
1 // @(#)root/meta:$Id$
2 // Author: Rene Brun 04/02/95
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_TMethodArg
13 #define ROOT_TMethodArg
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TMethodArg //
19 // //
20 // Dictionary interface for a method argument. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_TDictionary
25 #include "TDictionary.h"
26 #endif
27 
28 #include "TDataMember.h"
29 
30 class TFunction;
31 class TMethod;
32 
33 class TMethodArg : public TDictionary {
34 
35 friend class TMethod;
36 
37 private:
38  TMethodArg(const TMethodArg&); // Not implemented
39  TMethodArg& operator=(const TMethodArg&); // Not implemented
40 
41  MethodArgInfo_t *fInfo; //pointer to CINT method argument info
42  TFunction *fMethod; //pointer to the method or global function
43  TDataMember *fDataMember; //TDataMember pointed by this arg,to get values and options from.
44 
45 public:
46  TMethodArg(MethodArgInfo_t *info = 0, TFunction *method = 0);
47  virtual ~TMethodArg();
48  const char *GetDefault() const;
49  TFunction *GetMethod() const { return fMethod; }
50  const char *GetTypeName() const;
51  const char *GetFullTypeName() const;
52  std::string GetTypeNormalizedName() const;
53  Long_t Property() const;
54 
55  TDataMember *GetDataMember() const;
56  TList *GetOptions() const;
57 
58  void Update(MethodArgInfo_t *info);
59 
60  ClassDef(TMethodArg,0) //Dictionary for a method argument
61 };
62 
63 #endif
64 
MethodArgInfo_t * fInfo
Definition: TMethodArg.h:41
TFunction * fMethod
Definition: TMethodArg.h:42
All ROOT classes may have RTTI (run time type identification) support added.
Definition: TDataMember.h:33
Each ROOT method (see TMethod) has a linked list of its arguments.
Definition: TMethodArg.h:33
TMethodArg & operator=(const TMethodArg &)
#define ClassDef(name, id)
Definition: Rtypes.h:254
TDataMember * GetDataMember() const
Returns TDataMember pointed by this methodarg.
Definition: TMethodArg.cxx:121
const char * GetDefault() const
Get default value of method argument.
Definition: TMethodArg.cxx:58
TList * GetOptions() const
Returns list of possible options - according to pointed datamember.
Definition: TMethodArg.cxx:103
A doubly linked list.
Definition: TList.h:47
virtual ~TMethodArg()
TMethodArg dtor deletes adopted CINT MethodArgInfo object.
Definition: TMethodArg.cxx:50
This class defines an abstract interface that must be implemented by all classes that contain diction...
Definition: TDictionary.h:162
TFunction * GetMethod() const
Definition: TMethodArg.h:49
const char * GetTypeName() const
Get type of method argument, e.g.
Definition: TMethodArg.cxx:67
long Long_t
Definition: RtypesCore.h:50
void Update(MethodArgInfo_t *info)
Update fInfo (to 0 for unloading and non-zero for reloading).
Definition: TMethodArg.cxx:130
std::string GetTypeNormalizedName() const
Get the normalized name of the return type.
Definition: TMethodArg.cxx:86
Global functions class (global functions are obtained from CINT).
Definition: TFunction.h:30
Long_t Property() const
Get property description word. For meaning of bits see EProperty.
Definition: TMethodArg.cxx:94
const char * GetFullTypeName() const
Get full type description of method argument, e.g.: "class TDirectory*".
Definition: TMethodArg.cxx:75
Each ROOT class (see TClass) has a linked list of methods.
Definition: TMethod.h:40
TMethodArg(const TMethodArg &)
TDataMember * fDataMember
Definition: TMethodArg.h:43