library: libCore #include "TGlobal.h"

# TGlobal

class description - source file - inheritance tree (.pdf)

## class TGlobal : public TDictionary

| Inheritance Chart:
`TObject`
| <- | `TNamed`
| <- | `TDictionary`
| <- | `TGlobal` |

        public:

                          TGlobal(G__DataMemberInfo* info = 0)
                          TGlobal(const TGlobal&)
                  virtual ~TGlobal()
           static TClass* Class()
                    void* GetAddress() const
                    Int_t GetArrayDim() const
              const char* GetFullTypeName() const
                    Int_t GetMaxIndex(Int_t dim) const
              const char* GetTypeName() const
          virtual TClass* IsA() const
                 TGlobal& operator=(const TGlobal&)
           virtual Long_t Property() const
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        private:

          G__DataMemberInfo* fInfo  pointer to CINT data member info

## Class Description

     Global variables class (global variables are obtained from CINT).
     This class describes the attributes of a global variable.
     The TROOT class contains a list of all currently defined global
     variables (accessible via TROOT::GetListOfGlobals()).

TGlobal(G__DataMemberInfo *info) : TDictionary()

     Default TGlobal ctor. TGlobals are constructed in TROOT via
     a call to TCint::UpdateListOfGlobals().

~TGlobal()

     TGlobal dtor deletes adopted G__DataMemberInfo object.

void* GetAddress() const

     Return address of global.

Int_t GetArrayDim() const

     Return number of array dimensions.

Int_t GetMaxIndex(Int_t dim) const

     Return maximum index for array dimension "dim".

const char* GetTypeName() const

     Get type of global variable, e,g.: "class TDirectory*" -> "TDirectory".
     Result needs to be used or copied immediately.

const char* GetFullTypeName() const

     Get full type description of global variable, e,g.: "class TDirectory*".

Long_t Property() const

     Get property description word. For meaning of bits see EProperty.

### Inline Functions

                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
                TGlobal TGlobal(const TGlobal&)
               TGlobal& operator=(const TGlobal&)

Author: Rene Brun 13/11/95
Last update: root/meta:$Name: $:$Id: TGlobal.cxx,v 1.3 2002/11/26 10:24:09 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *