ROOT 6.18/05 Reference Guide |
Public Member Functions | |
TArrayF () | |
Default TArrayF ctor. More... | |
TArrayF (const TArrayF &array) | |
Copy constructor. More... | |
TArrayF (Int_t n) | |
Create TArrayF object and set array size to n floats. More... | |
TArrayF (Int_t n, const Float_t *array) | |
Create TArrayF object and initialize it with values of array. More... | |
virtual | ~TArrayF () |
Delete TArrayF object. More... | |
void | AddAt (Float_t c, Int_t i) |
Add float c at position i. Check for out of bounds. More... | |
void | Adopt (Int_t n, Float_t *array) |
Adopt array arr into TArrayF, i.e. More... | |
Float_t | At (Int_t i) const |
void | Copy (TArrayF &array) const |
Float_t * | GetArray () |
const Float_t * | GetArray () const |
Double_t | GetAt (Int_t i) const |
Stat_t | GetSum () const |
TArrayF & | operator= (const TArrayF &rhs) |
TArrayF assignment operator. More... | |
Float_t & | operator[] (Int_t i) |
Float_t | operator[] (Int_t i) const |
void | Reset () |
void | Reset (Float_t val) |
void | Set (Int_t n) |
Set size of this array to n floats. More... | |
void | Set (Int_t n, const Float_t *array) |
Set size of this array to n floats and set the contents. More... | |
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 () |
virtual Double_t | GetAt (Int_t i) const =0 |
Int_t | GetSize () const |
TArray & | operator= (const TArray &rhs) |
virtual void | Set (Int_t n)=0 |
virtual void | SetAt (Double_t v, Int_t i)=0 |
Public Attributes | |
Float_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 <TArrayF.h>
TArrayF::TArrayF | ( | ) |
Default TArrayF ctor.
Definition at line 26 of file TArrayF.cxx.
TArrayF::TArrayF | ( | Int_t | n | ) |
Create TArrayF object and set array size to n floats.
Definition at line 34 of file TArrayF.cxx.
Create TArrayF object and initialize it with values of array.
Definition at line 43 of file TArrayF.cxx.
TArrayF::TArrayF | ( | const TArrayF & | array | ) |
Copy constructor.
Definition at line 52 of file TArrayF.cxx.
|
virtual |
Delete TArrayF object.
Definition at line 71 of file TArrayF.cxx.
Add float c at position i. Check for out of bounds.
Definition at line 93 of file TArrayF.cxx.
Adopt array arr into TArrayF, i.e.
don't copy arr but use it directly in TArrayF. User may not delete arr, TArrayF dtor will do it.
Definition at line 81 of file TArrayF.cxx.
TArrayF assignment operator.
Definition at line 61 of file TArrayF.cxx.
Set size of this array to n floats.
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 TArrayF.cxx.
Set size of this array to n floats and set the contents.
This function should not be called if the array was declared via Adopt.
Definition at line 129 of file TArrayF.cxx.