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
TArrayF Class Reference

Array of floats (32 bits per element).

Definition at line 29 of file TArrayF.h.

Public Member Functions

 TArrayF ()
 
 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...
 
 TArrayF (const TArrayF &array)
 Copy constructor. More...
 
TArrayFoperator= (const TArrayF &rhs)
 TArrayF assignment operator. More...
 
virtual ~TArrayF ()
 Delete TArrayF object. More...
 
void Adopt (Int_t n, Float_t *array)
 Adopt array arr into TArrayF, i.e. More...
 
void AddAt (Float_t c, Int_t i)
 Add float c at position i. Check for out of bounds. More...
 
Float_t At (Int_t i) const
 
void Copy (TArrayF &array) const
 
const Float_tGetArray () const
 
Float_tGetArray ()
 
Double_t GetAt (Int_t i) const
 
Stat_t GetSum () 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)
 
Float_toperator[] (Int_t i)
 
Float_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

Float_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 <TArrayF.h>

Inheritance diagram for TArrayF:
[legend]

Constructor & Destructor Documentation

TArrayF::TArrayF ( )
TArrayF::TArrayF ( Int_t  n)

Create TArrayF object and set array size to n floats.

Definition at line 34 of file TArrayF.cxx.

TArrayF::TArrayF ( Int_t  n,
const Float_t array 
)

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.

TArrayF::~TArrayF ( )
virtual

Delete TArrayF object.

Definition at line 71 of file TArrayF.cxx.

Member Function Documentation

void TArrayF::AddAt ( Float_t  c,
Int_t  i 
)

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

Definition at line 93 of file TArrayF.cxx.

Referenced by TH1K::Fill(), SetAt(), and StockReturn().

void TArrayF::Adopt ( Int_t  n,
Float_t arr 
)

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.

Float_t TArrayF::At ( Int_t  i) const
inline

Definition at line 80 of file TArrayF.h.

Referenced by GetAt(), and rr_arrayf_new().

void TArrayF::Copy ( TArrayF array) const
inline

Definition at line 44 of file TArrayF.h.

Referenced by TH1F::TH1F(), TH2F::TH2F(), and TH3F::TH3F().

const Float_t* TArrayF::GetArray ( ) const
inline

Definition at line 45 of file TArrayF.h.

Referenced by TH1K::Sort().

Float_t* TArrayF::GetArray ( )
inline

Definition at line 46 of file TArrayF.h.

Double_t TArrayF::GetAt ( Int_t  i) const
inlinevirtual

Implements TArray.

Definition at line 47 of file TArrayF.h.

Stat_t TArrayF::GetSum ( ) const
inline

Definition at line 48 of file TArrayF.h.

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

TArrayF assignment operator.

Definition at line 61 of file TArrayF.cxx.

Float_t & TArrayF::operator[] ( Int_t  i)
inline

Definition at line 86 of file TArrayF.h.

Float_t TArrayF::operator[] ( Int_t  i) const
inline

Definition at line 93 of file TArrayF.h.

void TArrayF::Reset ( void  )
inline

Definition at line 49 of file TArrayF.h.

Referenced by TH2F::Reset(), TH3F::Reset(), TH1F::Reset(), and TPythia6Decayer::TPythia6Decayer().

void TArrayF::Reset ( Float_t  val)
inline

Definition at line 50 of file TArrayF.h.

void TArrayF::Set ( Int_t  n)
virtual

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.

Referenced by Copy(), TH1K::Fill(), operator=(), TH2F::SetBinsLength(), TH3F::SetBinsLength(), TH1F::SetBinsLength(), TArrayF(), TH1F::TH1F(), TH2F::TH2F(), and TH3F::TH3F().

void TArrayF::Set ( Int_t  n,
const Float_t array 
)

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.

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

Implements TArray.

Definition at line 53 of file TArrayF.h.

Member Data Documentation

Float_t* TArrayF::fArray
Collaboration diagram for TArrayF:
[legend]

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