Logo ROOT   6.08/07
Reference Guide
List of all members | Public Member Functions | Public Attributes | List of all members
TArrayD Class Reference

Array of doubles (64 bits per element).

Definition at line 29 of file TArrayD.h.

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)
 Add double c at position i. Check for out of bounds. 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_tGetArray () const
 
Double_tGetArray ()
 
Double_t GetAt (Int_t i) const
 
Stat_t GetSum () const
 
TArrayDoperator= (const TArrayD &rhs)
 TArrayD assignment operator. More...
 
Double_toperator[] (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
 
TArrayoperator= (const TArray &rhs)
 

Public Attributes

Double_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
 Generate an out-of-bounds error. Always returns false. More...
 

#include <TArrayD.h>

Inheritance diagram for TArrayD:
[legend]

Constructor & Destructor Documentation

◆ TArrayD() [1/4]

TArrayD::TArrayD ( )

Default TArrayD ctor.

Definition at line 26 of file TArrayD.cxx.

◆ TArrayD() [2/4]

TArrayD::TArrayD ( Int_t  n)

Create TArrayD object and set array size to n doubles.

Definition at line 34 of file TArrayD.cxx.

◆ TArrayD() [3/4]

TArrayD::TArrayD ( Int_t  n,
const Double_t array 
)

Create TArrayD object and initialize it with values of array.

Definition at line 43 of file TArrayD.cxx.

◆ TArrayD() [4/4]

TArrayD::TArrayD ( const TArrayD array)

Copy constructor.

Definition at line 52 of file TArrayD.cxx.

◆ ~TArrayD()

TArrayD::~TArrayD ( )
virtual

Delete TArrayD object.

Definition at line 71 of file TArrayD.cxx.

Member Function Documentation

◆ AddAt()

void TArrayD::AddAt ( Double_t  c,
Int_t  i 
)

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

Definition at line 93 of file TArrayD.cxx.

◆ Adopt()

void TArrayD::Adopt ( Int_t  n,
Double_t arr 
)

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.

◆ At()

Double_t TArrayD::At ( Int_t  i) const
inline

Definition at line 81 of file TArrayD.h.

◆ Copy()

void TArrayD::Copy ( TArrayD array) const
inline

Definition at line 44 of file TArrayD.h.

◆ GetArray() [1/2]

const Double_t* TArrayD::GetArray ( ) const
inline

Definition at line 45 of file TArrayD.h.

◆ GetArray() [2/2]

Double_t* TArrayD::GetArray ( )
inline

Definition at line 46 of file TArrayD.h.

◆ GetAt()

Double_t TArrayD::GetAt ( Int_t  i) const
inlinevirtual

Implements TArray.

Definition at line 47 of file TArrayD.h.

◆ GetSum()

Stat_t TArrayD::GetSum ( ) const
inline

Definition at line 48 of file TArrayD.h.

◆ operator=()

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

TArrayD assignment operator.

Definition at line 61 of file TArrayD.cxx.

◆ operator[]() [1/2]

Double_t & TArrayD::operator[] ( Int_t  i)
inline

Definition at line 87 of file TArrayD.h.

◆ operator[]() [2/2]

Double_t TArrayD::operator[] ( Int_t  i) const
inline

Definition at line 94 of file TArrayD.h.

◆ Reset() [1/2]

void TArrayD::Reset ( void  )
inline

Definition at line 49 of file TArrayD.h.

◆ Reset() [2/2]

void TArrayD::Reset ( Double_t  val)
inline

Definition at line 50 of file TArrayD.h.

◆ Set() [1/2]

void TArrayD::Set ( Int_t  n)
virtual

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 105 of file TArrayD.cxx.

◆ Set() [2/2]

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

Definition at line 129 of file TArrayD.cxx.

◆ SetAt()

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

Implements TArray.

Definition at line 53 of file TArrayD.h.

Member Data Documentation

◆ fArray

Double_t* TArrayD::fArray

Definition at line 32 of file TArrayD.h.


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