Public Member Functions | |
TArrayL () | |
Default TArrayL ctor. | |
TArrayL (const TArrayL &array) | |
Copy constructor. | |
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. | |
virtual | ~TArrayL () |
Delete TArrayL object. | |
void | AddAt (Long_t c, Int_t i) |
Add long c at position i. Check for out of bounds. | |
void | Adopt (Int_t n, Long_t *array) |
Adopt array arr into TArrayL, i.e. | |
Long_t | At (Int_t i) const |
void | Copy (TArrayL &array) const |
Long_t * | GetArray () |
const Long_t * | GetArray () const |
Double_t | GetAt (Int_t i) const |
Stat_t | GetSum () const |
TArrayL & | operator= (const TArrayL &rhs) |
TArrayL assignment operator. | |
Long_t & | operator[] (Int_t i) |
Long_t | operator[] (Int_t i) const |
void | Reset () |
void | Reset (Long_t val) |
void | Set (Int_t n) |
Set size of this array to n longs. | |
void | Set (Int_t n, const Long_t *array) |
Set size of this array to n longs and set the contents. | |
void | SetAt (Double_t v, Int_t i) |
Public Member Functions inherited from TArray | |
TArray () | |
TArray (const TArray &a) | |
TArray (Int_t n) | |
virtual | ~TArray () |
Int_t | GetSize () const |
TArray & | operator= (const TArray &rhs) |
Public Attributes | |
Long_t * | fArray |
Public Attributes inherited from TArray | |
Int_t | fN |
Additional Inherited Members | |
Static Public Member Functions inherited from TArray | |
static TArray * | ReadArray (TBuffer &b, const TClass *clReq) |
Read TArray object from buffer. | |
static void | WriteArray (TBuffer &b, const TArray *a) |
Write TArray object to buffer. | |
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 |
Generate an out-of-bounds error. Always returns false. | |
#include <TArrayL.h>
TArrayL::TArrayL | ( | ) |
Default TArrayL ctor.
Definition at line 26 of file TArrayL.cxx.
TArrayL::TArrayL | ( | Int_t | n | ) |
Create TArrayL object and set array size to n longs.
Definition at line 34 of file TArrayL.cxx.
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.
|
virtual |
Delete TArrayL object.
Definition at line 71 of file TArrayL.cxx.
Add long c at position i. Check for out of bounds.
Definition at line 93 of file TArrayL.cxx.
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.
TArrayL assignment operator.
Definition at line 61 of file TArrayL.cxx.
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.
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 132 of file TArrayL.cxx.