library: libTree #include "TChainElement.h"

# TChainElement

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

## class TChainElement : public TNamed

| Inheritance Chart:

`TObject`

<-

`TNamed`

<-

`TChainElement`

        public:

                              TChainElement()
                              TChainElement(const char* title, const char* filename)
                              TChainElement(const TChainElement&)
                      virtual ~TChainElement()
               static TClass* Class()
                 virtual void CreatePackets()
                virtual void* GetBaddress() const
          virtual const char* GetBaddressClassName() const
               virtual Bool_t GetBaddressIsPtr() const
               virtual UInt_t GetBaddressType() const
                virtual Int_t GetEntries() const
                virtual char* GetPackets() const
                virtual Int_t GetPacketSize() const
                virtual Int_t GetStatus() const
              virtual TClass* IsA() const
                 virtual void ls(Option_t* option = "") const
               TChainElement& operator=(const TChainElement&)
                 virtual void SetBaddress(void* add)
                 virtual void SetBaddressClassName(const char* clname)
                 virtual void SetBaddressIsPtr(Bool_t isptr)
                 virtual void SetBaddressType(UInt_t type)
                 virtual void SetNumberEntries(Int_t n)
                 virtual void SetPacketSize(Int_t size = 100)
                 virtual void SetStatus(Int_t status)
                 virtual void ShowMembers(TMemberInspector& insp, char* parent)
                 virtual void Streamer(TBuffer& b)
                         void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

            Int_t fEntries            Number of entries in the tree of this chain element
            Int_t fNPackets           Number of packets
            Int_t fPacketSize         Number of events in one packet for parallel root
            Int_t fStatus             branch status when used as a branch
            void* fBaddress           !branch address when used as a branch
          TString fBaddressClassName  !Name of the class pointed to by fBaddress
           UInt_t fBaddressType       !Type of the value pointed to by fBaddress
           Bool_t fBaddressIsPtr      !True if the address is a pointer to an address
            char* fPackets            !Packet descriptor string

## Class Description

     A TChainElement describes a component of a TChain.

TChainElement(): TNamed(),fBaddress(0),fBaddressType(0), fBaddressIsPtr(kFALSE)

    *-*-*-*-*-*Default constructor for a chain element*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*        =======================================

TChainElement(const char *name, const char *title) :TNamed(name,title),fBaddress(0),fBaddressType(0), fBaddressIsPtr(kFALSE)

    *-*-*-*-*-*-*-*-*-*-*-*-*Create a chain element*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                      ======================

~TChainElement()

    *-*-*-*-*-*Default destructor for a chain element*-*-*-*-*-*-*-*-*-*-*-*
    *-*        ======================================

void CreatePackets()

    *-*-*-*-*-*-*-*-*Initialize the packet descriptor string*-*-*-*-*-*-*-*-*-*
    *-*              =======================================

void ls(Option_t *) const

     List files in the chain

void SetPacketSize(Int_t size)

    *-*-*-*-*-*-*-*-*Set number of entries per packet for parallel root*-*-*-*-*
    *-*              =================================================

### Inline Functions

                     void* GetBaddress() const
               const char* GetBaddressClassName() const
                    Bool_t GetBaddressIsPtr() const
                    UInt_t GetBaddressType() const
                     Int_t GetEntries() const
                     char* GetPackets() const
                     Int_t GetPacketSize() const
                     Int_t GetStatus() const
                      void SetBaddress(void* add)
                      void SetBaddressClassName(const char* clname)
                      void SetBaddressIsPtr(Bool_t isptr)
                      void SetBaddressType(UInt_t type)
                      void SetNumberEntries(Int_t n)
                      void SetStatus(Int_t status)
                   TClass* Class()
                   TClass* IsA() const
                      void ShowMembers(TMemberInspector& insp, char* parent)
                      void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)
             TChainElement TChainElement(const TChainElement&)
            TChainElement& operator=(const TChainElement&)

Author: Rene Brun 11/02/97
Last update: root/tree:$Name: $:$Id: TChainElement.cxx,v 1.4 2005/01/12 18:02:28 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *