library: libTree #include "TChainElement.h"

# TChainElement

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

## class TChainElement : public TNamed

| Inheritance Chart:

`TObject`

<-

`TNamed`

<-

`TChainElement`

        public:

                          TChainElement()
                          TChainElement(const char* filename, const char* title)
                          TChainElement(const TChainElement&)
                  virtual ~TChainElement()
           static TClass* Class()
             virtual void CreatePackets()
            virtual void* GetBaddress() 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 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
          char* fPackets     !Packet descriptor string

## Class Description

     A TChainElement describes a component of a TChain.

TChainElement(): TNamed()

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

TChainElement(const char *name, const char *title) :TNamed(name,title)

    *-*-*-*-*-*-*-*-*-*-*-*-*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
                     Int_t GetEntries() const
                     char* GetPackets() const
                     Int_t GetPacketSize() const
                     Int_t GetStatus() const
                      void SetBaddress(void* add)
                      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.3 2002/12/02 18:50:08 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *