ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | List of all members
TArrayL Class Reference

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

Definition at line 29 of file TArrayL.h.

Public Member Functions

 TArrayL ()
 
 TArrayL (Int_t n)
 Create TArrayL object and set array size to n longs. More...
 
 TArrayL (Int_t n, const Long_t *array)
 Create TArrayL object and initialize it with values of array. More...
 
 TArrayL (const TArrayL &array)
 Copy constructor. More...
 
TArrayLoperator= (const TArrayL &rhs)
 TArrayL assignment operator. More...
 
virtual ~TArrayL ()
 Delete TArrayL object. More...
 
void Adopt (Int_t n, Long_t *array)
 Adopt array arr into TArrayL, i.e. More...
 
void AddAt (Long_t c, Int_t i)
 Add long c at position i. Check for out of bounds. More...
 
Long_t At (Int_t i) const
 
void Copy (TArrayL &array) const
 
const Long_tGetArray () const
 
Long_tGetArray ()
 
Double_t GetAt (Int_t i) const
 
Stat_t GetSum () const
 
void Reset ()
 
void Reset (Long_t val)
 
void Set (Int_t n)
 Set size of this array to n longs. More...
 
void Set (Int_t n, const Long_t *array)
 Set size of this array to n longs and set the contents. More...
 
void SetAt (Double_t v, Int_t i)
 
Long_toperator[] (Int_t i)
 
Long_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

Long_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 <TArrayL.h>

Inheritance diagram for TArrayL:
[legend]

Constructor & Destructor Documentation

TArrayL::TArrayL ( )
TArrayL::TArrayL ( Int_t  n)

Create TArrayL object and set array size to n longs.

Definition at line 34 of file TArrayL.cxx.

TArrayL::TArrayL ( Int_t  n,
const Long_t array 
)

Create TArrayL object and initialize it with values of array.

Definition at line 43 of file TArrayL.cxx.

TArrayL::TArrayL ( const TArrayL array)

Copy constructor.

Definition at line 52 of file TArrayL.cxx.

TArrayL::~TArrayL ( )
virtual

Delete TArrayL object.

Definition at line 71 of file TArrayL.cxx.

Member Function Documentation

void TArrayL::AddAt ( Long_t  c,
Int_t  i 
)

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

Definition at line 93 of file TArrayL.cxx.

Referenced by TASImage::GetPixels(), and SetAt().

void TArrayL::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.

Definition at line 81 of file TArrayL.cxx.

Long_t TArrayL::At ( Int_t  i) const
inline

Definition at line 82 of file TArrayL.h.

Referenced by GetAt(), and rr_arrayl_new().

void TArrayL::Copy ( TArrayL array) const
inline

Definition at line 44 of file TArrayL.h.

const Long_t* TArrayL::GetArray ( ) const
inline

Definition at line 45 of file TArrayL.h.

Long_t* TArrayL::GetArray ( )
inline

Definition at line 46 of file TArrayL.h.

Double_t TArrayL::GetAt ( Int_t  i) const
inlinevirtual

Implements TArray.

Definition at line 47 of file TArrayL.h.

Stat_t TArrayL::GetSum ( ) const
inline

Definition at line 48 of file TArrayL.h.

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

TArrayL assignment operator.

Definition at line 61 of file TArrayL.cxx.

Long_t & TArrayL::operator[] ( Int_t  i)
inline

Definition at line 88 of file TArrayL.h.

Long_t TArrayL::operator[] ( Int_t  i) const
inline

Definition at line 95 of file TArrayL.h.

void TArrayL::Reset ( void  )
inline

Definition at line 49 of file TArrayL.h.

void TArrayL::Reset ( Long_t  val)
inline

Definition at line 50 of file TArrayL.h.

void TArrayL::Set ( Int_t  n)
virtual

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.

Implements TArray.

Definition at line 105 of file TArrayL.cxx.

Referenced by Copy(), operator=(), and TArrayL().

void TArrayL::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.

Definition at line 129 of file TArrayL.cxx.

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

Implements TArray.

Definition at line 53 of file TArrayL.h.

Member Data Documentation

Long_t* TArrayL::fArray

Definition at line 32 of file TArrayL.h.

Referenced by AddAt(), Adopt(), At(), Copy(), GetArray(), GetSum(), operator=(), operator[](), Reset(), Set(), TArrayL(), and ~TArrayL().

Collaboration diagram for TArrayL:
[legend]

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