TMethod


class description - source file - inheritance tree

class TMethod : public TFunction

    private:
virtual void CreateSignature() public:
TMethod TMethod(G__MethodInfo* info = 0, TClass* cl = 0) TMethod TMethod(TMethod&) virtual void ~TMethod() TClass* Class() virtual TDataMember* FindDataMember() TClass* GetClass() const virtual const Text_t* GetCommentString() const virtual TList* GetListOfMethodArgs() virtual TClass* IsA() const EMenuItemKind IsMenuItem() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

private:
TClass* fClass pointer to the class EMenuItemKind fMenuItem type of menuitem in context menu

Class Description

                                                                      
  Each ROOT class (see TClass) has a linked list of methods.          
  This class describes one single method (member function).           
  The method info is obtained via the CINT api. See class TCint.      
                                                                      
  The method information is used a.o. by the THml class and by the    
  TTree class.                                                        
                                                                      


TMethod(G__MethodInfo *info, TClass *cl) : TFunction(info)
 Default TMethod ctor. TMethods are constructed in TClass.
 Comment strings are pre-parsed to find out whether the method is
 a contxt-menu item.

const Text_t* GetCommentString()
 Returns a comment string from the class declaration.

void CreateSignature()
 Using the CINT method arg information create a complete signature string.

TDataMember* FindDataMember()
 Tries to guess DataMember from comment string
 and Method's name <==(only if 1 Argument!).
 If more then one argument=> returns pointer to the last argument.
 It also sets MethodArgs' pointers to point to specified data members.

 The form of comment string defining arguments is:
 void XXX(Int_t x1, Float_t y2) //*ARGS={x1=>fX1,y2=>fY2}
 where fX1, fY2 are data fields in the same class.
 ("pointers" to data members)

TList* GetListOfMethodArgs()
 Returns methodarg list and additionally updates fDataMember in TMethod by
 calling FindDataMember();



Inline Functions


              TClass* GetClass() const
        EMenuItemKind IsMenuItem() const
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
              TMethod TMethod(TMethod&)
                 void ~TMethod()


Author: Rene Brun 09/02/95
Last update: 2.23/00 12/08/99 18.52.55 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.