TLeafElement.cxx

Go to the documentation of this file.
00001 // @(#)root/tree:$Id: TLeafElement.cxx 31603 2009-12-07 18:59:15Z pcanal $
00002 // Author: Rene Brun   14/01/2001
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 //////////////////////////////////////////////////////////////////////////
00013 //                                                                      //
00014 // A TLeaf for a general object derived from TObject.                   //
00015 //////////////////////////////////////////////////////////////////////////
00016 
00017 #include "TLeafElement.h"
00018 //#include "TMethodCall.h"
00019 
00020 
00021 ClassImp(TLeafElement)
00022 
00023 //______________________________________________________________________________
00024 TLeafElement::TLeafElement(): TLeaf()
00025 {
00026    // Default constructor for LeafObject.
00027 
00028    fAbsAddress = 0;
00029    fID   = -1;
00030    fType = -1;
00031 }
00032 
00033 //______________________________________________________________________________
00034 TLeafElement::TLeafElement(TBranch *parent, const char *name, Int_t id, Int_t type)
00035    :TLeaf(parent, name,name)
00036 {
00037    // Create a LeafObject.
00038    
00039    fAbsAddress = 0;
00040    fID         = id;
00041    fType       = type;
00042 }
00043 
00044 //______________________________________________________________________________
00045 TLeafElement::~TLeafElement()
00046 {
00047    // Default destructor for a LeafObject.
00048 
00049 }
00050 
00051 //______________________________________________________________________________
00052 TMethodCall *TLeafElement::GetMethodCall(const char * /*name*/)
00053 {
00054    // Returns pointer to method corresponding to name name is a string
00055    // with the general form "method(list of params)" If list of params is
00056    // omitted, () is assumed;
00057 
00058    return 0;
00059 }
00060 
00061 
00062 //______________________________________________________________________________
00063 Bool_t TLeafElement::IsOnTerminalBranch() const
00064 {
00065    // Return true if this leaf is does not have any sub-branch/leaf.
00066 
00067    if (fBranch->GetListOfBranches()->GetEntriesFast()) return kFALSE;
00068    return kTRUE;
00069 }

Generated on Tue Jul 5 15:34:03 2011 for ROOT_528-00b_version by  doxygen 1.5.1