ROOT 6.12/07 Reference Guide |
Public Member Functions | |
TArrayD () | |
Default TArrayD ctor. More... | |
TArrayD (Int_t n) | |
Create TArrayD object and set array size to n doubles. More... | |
TArrayD (Int_t n, const Double_t *array) | |
Create TArrayD object and initialize it with values of array. More... | |
TArrayD (const TArrayD &array) | |
Copy constructor. More... | |
virtual | ~TArrayD () |
Delete TArrayD object. More... | |
void | AddAt (Double_t c, Int_t i) |
Set the double c value at position i in the array. More... | |
void | Adopt (Int_t n, Double_t *array) |
Adopt array arr into TArrayD, i.e. More... | |
Double_t | At (Int_t i) const |
void | Copy (TArrayD &array) const |
const Double_t * | GetArray () const |
Double_t * | GetArray () |
Double_t | GetAt (Int_t i) const |
Stat_t | GetSum () const |
TArrayD & | operator= (const TArrayD &rhs) |
TArrayD assignment operator. More... | |
Double_t & | operator[] (Int_t i) |
Double_t | operator[] (Int_t i) const |
void | Reset () |
void | Reset (Double_t val) |
void | Set (Int_t n) |
Set size of this array to n doubles. More... | |
void | Set (Int_t n, const Double_t *array) |
Set size of this array to n doubles and set the contents This function should not be called if the array was declared via Adopt. More... | |
void | SetAt (Double_t v, Int_t i) |
Public Member Functions inherited from TArray | |
TArray () | |
TArray (Int_t n) | |
TArray (const TArray &a) | |
virtual | ~TArray () |
Int_t | GetSize () const |
TArray & | operator= (const TArray &rhs) |
Public Attributes | |
Double_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. 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 |
Generate an out-of-bounds error. Always returns false. More... | |
#include <TArrayD.h>
TArrayD::TArrayD | ( | ) |
Default TArrayD ctor.
Definition at line 26 of file TArrayD.cxx.
TArrayD::TArrayD | ( | Int_t | n | ) |
Create TArrayD object and set array size to n doubles.
Definition at line 34 of file TArrayD.cxx.
Create TArrayD object and initialize it with values of array.
Definition at line 43 of file TArrayD.cxx.
TArrayD::TArrayD | ( | const TArrayD & | array | ) |
Copy constructor.
Definition at line 52 of file TArrayD.cxx.
|
virtual |
Delete TArrayD object.
Definition at line 71 of file TArrayD.cxx.
Set the double c value at position i in the array.
Check for out of bounds. Warning: the name of the method is misleading, it actually overwrites the position i.
Definition at line 94 of file TArrayD.cxx.
Adopt array arr into TArrayD, i.e.
don't copy arr but use it directly in TArrayD. User may not delete arr, TArrayD dtor will do it.
Definition at line 81 of file TArrayD.cxx.
TArrayD assignment operator.
Definition at line 61 of file TArrayD.cxx.
Set size of this array to n doubles.
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 106 of file TArrayD.cxx.
Set size of this array to n doubles and set the contents This function should not be called if the array was declared via Adopt.
Definition at line 130 of file TArrayD.cxx.