library: libCore #include "TArrayL.h"

# TArrayL

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

## class TArrayL : public TArray

| Inheritance Chart:

`TArray`

<-

`TArrayL`

        public:

                          TArrayL()
                          TArrayL(Int_t n)
                          TArrayL(Int_t n, const Long_t* array)
                          TArrayL(const TArrayL& array)
                  virtual ~TArrayL()
                     void AddAt(Long_t c, Int_t i)
                     void Adopt(Int_t n, Long_t* array)
                   Long_t At(Int_t i) const
           static TClass* Class()
                     void Copy(TArrayL& array) const
            const Long_t* GetArray() const
                  Long_t* GetArray()
                   Stat_t GetSum() const
          virtual TClass* IsA() const
                 TArrayL& operator=(const TArrayL& rhs)
                  Long_t& operator[](Int_t i)
                   Long_t operator[](Int_t i) const
                     void Reset()
                     void Reset(Long_t val)
             virtual void Set(Int_t n)
                     void Set(Int_t n, const Long_t* array)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        public:

          Long_t* fArray  [fN] Array of fN longs

## Class Description

     TArrayL

     Array of longs (32 or 64 bits per element).

TArrayL()

     Default TArrayL ctor.

TArrayL(Int_t n)

     Create TArrayL object and set array size to n longs.

TArrayL(Int_t n, const Long_t *array)

     Create TArrayL object and initialize it with values of array.

TArrayL(const TArrayL &array) : TArray(array)

     Copy constructor.

~TArrayL()

     Delete TArrayL object.

void Adopt(Int_t n, Long_t *arr)

     Adopt array arr into TArrayL, i.e. don't copy arr but use it directly
     in TArrayL. User may not delete arr, TArrayL dtor will do it.

void AddAt(Long_t c, Int_t i)

     Add long c at position i. Check for out of bounds.

void Set(Int_t n)

     Set size of this array to n longs.
     A new array is created, the old contents copied to the new array,
     then the old array is deleted.
     This function should not be called if the array was declared via Adopt.

void Set(Int_t n, const Long_t *array)

     Set size of this array to n longs and set the contents.
     This function should not be called if the array was declared via Adopt.

void Streamer(TBuffer &b)

     Stream a TArrayL object.

### Inline Functions

                 TArrayL& operator=(const TArrayL& rhs)
                   Long_t At(Int_t i) const
                     void Copy(TArrayL& array) const
            const Long_t* GetArray() const
                  Long_t* GetArray()
                   Stat_t GetSum() const
                     void Reset()
                     void Reset(Long_t val)
                  Long_t& operator[](Int_t i)
                   Long_t operator[](Int_t i) const
                  TClass* Class()
                  TClass* IsA() const
                     void ShowMembers(TMemberInspector& insp, char* parent)
                     void StreamerNVirtual(TBuffer& b)

Author: Rene Brun 06/03/95
Last update: root/cont:$Name: $:$Id: TArrayL.cxx,v 1.13 2004/05/06 12:32:43 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *