TArrayI


class description - source file - inheritance tree

class TArrayI : public TArray


    public:
TArrayI TArrayI(Int_t n) TArrayI TArrayI(Int_t n, Int_t* array) TArrayI TArrayI() TArrayI TArrayI(const TArrayI& array) virtual void ~TArrayI() void AddAt(Int_t i, Int_t idx) void Adopt(Int_t n, Int_t* array) Int_t At(Int_t i) TClass* Class() void Copy(TArrayI& array) Int_t* GetArray() const Stat_t GetSum() const virtual TClass* IsA() const TArrayI& operator=(const TArrayI& rhs) Int_t& operator[](Int_t i) void Reset() virtual void Set(Int_t n) void Set(Int_t n, Int_t* array) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

public:
Int_t* fArray Array of fN 32 bit integers

Class Description

                                                                      
 TArrayI                                                              
                                                                      
 Array of integers (32 bits per element).                             
                                                                      


TArrayI()
 Default TArrayI ctor.

TArrayI(Int_t n)
 Create TArrayI object and set array size to n integers.

TArrayI(Int_t n, Int_t *array)
 Create TArrayI object and initialize it with values of array.

TArrayI(const TArrayI &array)
 Copy constructor.

~TArrayI()
 Delete TArrayI object.

void Adopt(Int_t n, Int_t *arr)
 Adopt array arr into TArrayI, i.e. don't copy arr but use it directly
 in TArrayI. User may not delete arr, TArrayI dtor will do it.

void AddAt(Int_t c, Int_t i)
 Add Int_t c at position i. Check for out of bounds.

void Set(Int_t n)
 Set array size of TArrayI object to n integers.
 If n<0 leave array unchanged.

void Set(Int_t n, Int_t *array)
 Set array size of TArrayI object to n integers and copy array.
 If n<0 leave array unchanged.

void Streamer(TBuffer &b)
 Stream a TArrayI object.



Inline Functions


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


Author: Rene Brun 06/03/95
Last update: 1.03/06 27/10/97 03.23.07 by Fons Rademakers
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.