ROOT  6.06/09
Reference Guide
Public Member Functions | Public Attributes | List of all members
TArrayI Class Reference

Array of integers (32 bits per element).

Definition at line 29 of file TArrayI.h.

Public Member Functions

 TArrayI ()
 
 TArrayI (Int_t n)
 Create TArrayI object and set array size to n integers. More...
 
 TArrayI (Int_t n, const Int_t *array)
 Create TArrayI object and initialize it with values of array. More...
 
 TArrayI (const TArrayI &array)
 Copy constructor. More...
 
TArrayIoperator= (const TArrayI &rhs)
 TArrayI assignment operator. More...
 
virtual ~TArrayI ()
 Delete TArrayI object. More...
 
void Adopt (Int_t n, Int_t *array)
 Adopt array arr into TArrayI, i.e. More...
 
void AddAt (Int_t c, Int_t i)
 Add Int_t c at position i. Check for out of bounds. More...
 
Int_t At (Int_t i) const
 
void Copy (TArrayI &array) const
 
const Int_tGetArray () const
 
Int_tGetArray ()
 
Double_t GetAt (Int_t i) const
 
Stat_t GetSum () const
 
void Reset ()
 
void Reset (Int_t val)
 
void Set (Int_t n)
 Set size of this array to n ints. More...
 
void Set (Int_t n, const Int_t *array)
 Set size of this array to n ints and set the contents. More...
 
void SetAt (Double_t v, Int_t i)
 
Int_toperator[] (Int_t i)
 
Int_t operator[] (Int_t i) const
 
- Public Member Functions inherited from TArray
 TArray ()
 
 TArray (Int_t n)
 
 TArray (const TArray &a)
 
TArrayoperator= (const TArray &rhs)
 
virtual ~TArray ()
 
Int_t GetSize () const
 

Public Attributes

Int_tfArray
 
- Public Attributes inherited from TArray
Int_t fN
 

Additional Inherited Members

- Static Public Member Functions inherited from TArray
static TArrayReadArray (TBuffer &b, const TClass *clReq)
 Read TArray object from buffer. More...
 
static void WriteArray (TBuffer &b, const TArray *a)
 Write TArray object to buffer. More...
 
- Protected Member Functions inherited from TArray
Bool_t BoundsOk (const char *where, Int_t at) const
 
Bool_t OutOfBoundsError (const char *where, Int_t i) const
 

#include <TArrayI.h>

+ Inheritance diagram for TArrayI:
+ Collaboration diagram for TArrayI:

Constructor & Destructor Documentation

TArrayI::TArrayI ( )
TArrayI::TArrayI ( Int_t  n)

Create TArrayI object and set array size to n integers.

Definition at line 33 of file TArrayI.cxx.

TArrayI::TArrayI ( Int_t  n,
const Int_t array 
)

Create TArrayI object and initialize it with values of array.

Definition at line 42 of file TArrayI.cxx.

TArrayI::TArrayI ( const TArrayI array)

Copy constructor.

Definition at line 51 of file TArrayI.cxx.

TArrayI::~TArrayI ( )
virtual

Delete TArrayI object.

Definition at line 70 of file TArrayI.cxx.

Member Function Documentation

void TArrayI::AddAt ( Int_t  c,
Int_t  i 
)
void TArrayI::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.

Definition at line 80 of file TArrayI.cxx.

Int_t TArrayI::At ( Int_t  i) const
inline
void TArrayI::Copy ( TArrayI array) const
inline
const Int_t* TArrayI::GetArray ( ) const
inline
Int_t* TArrayI::GetArray ( )
inline

Definition at line 46 of file TArrayI.h.

Double_t TArrayI::GetAt ( Int_t  i) const
inlinevirtual
Stat_t TArrayI::GetSum ( ) const
inline

Definition at line 48 of file TArrayI.h.

TArrayI & TArrayI::operator= ( const TArrayI rhs)

TArrayI assignment operator.

Definition at line 60 of file TArrayI.cxx.

Int_t & TArrayI::operator[] ( Int_t  i)
inline

Definition at line 87 of file TArrayI.h.

Int_t TArrayI::operator[] ( Int_t  i) const
inline

Definition at line 94 of file TArrayI.h.

void TArrayI::Reset ( void  )
inline

Definition at line 49 of file TArrayI.h.

Referenced by TBufferJSON::JsonWriteMember(), TH2I::Reset(), TH3I::Reset(), and TH1I::Reset().

void TArrayI::Reset ( Int_t  val)
inline

Definition at line 50 of file TArrayI.h.

void TArrayI::Set ( Int_t  n)
virtual
void TArrayI::Set ( Int_t  n,
const Int_t array 
)

Set size of this array to n ints and set the contents.

This function should not be called if the array was declared via Adopt.

Definition at line 128 of file TArrayI.cxx.

void TArrayI::SetAt ( Double_t  v,
Int_t  i 
)
inlinevirtual

Implements TArray.

Definition at line 53 of file TArrayI.h.

Referenced by TFITSHDU::LoadHDU().

Member Data Documentation

Int_t* TArrayI::fArray

The documentation for this class was generated from the following files: