library: libCore
#include "TArrayD.h"

TArrayD


class description - source file - inheritance tree (.pdf)

class TArrayD : public TArray

Inheritance Chart:
TArray
<-
TArrayD
<-
TH1D
<-
TProfile
TH2D
<-
TProfile2D
TH3D

    public:
TArrayD() TArrayD(Int_t n) TArrayD(Int_t n, const Double_t* array) TArrayD(const TArrayD& array) virtual ~TArrayD() void AddAt(Double_t c, Int_t i) void Adopt(Int_t n, Double_t* array) Double_t At(Int_t i) const static TClass* Class() void Copy(TArrayD& array) const const Double_t* GetArray() const Double_t* GetArray() Stat_t GetSum() const virtual TClass* IsA() const TArrayD& operator=(const TArrayD& rhs) Double_t& operator[](Int_t i) Double_t operator[](Int_t i) const void Reset() void Reset(Double_t val) virtual void Set(Int_t n) void Set(Int_t n, const Double_t* array) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    public:
Double_t* fArray [fN] Array of fN doubles

Class Description

                                                                      
 TArrayD                                                              
                                                                      
 Array of doubles (64 bits per element).                              
                                                                      


TArrayD()
 Default TArrayD ctor.

TArrayD(Int_t n)
 Create TArrayD object and set array size to n doubles.

TArrayD(Int_t n, const Double_t *array)
 Create TArrayD object and initialize it with values of array.

TArrayD(const TArrayD &array) : TArray(array)
 Copy constructor.

~TArrayD()
 Delete TArrayD object.

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

void AddAt(Double_t c, Int_t i)
 Add double c at position i. Check for out of bounds.

void Set(Int_t n)
 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.

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.

void Streamer(TBuffer &b)
 Stream a TArrayD object.



Inline Functions


               TArrayD& operator=(const TArrayD& rhs)
               Double_t At(Int_t i) const
                   void Copy(TArrayD& array) const
        const Double_t* GetArray() const
              Double_t* GetArray()
                 Stat_t GetSum() const
                   void Reset()
                   void Reset(Double_t val)
              Double_t& operator[](Int_t i)
               Double_t operator[](Int_t i) const
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void StreamerNVirtual(TBuffer& b)


Author: Rene Brun 06/03/95
Last update: root/cont:$Name: $:$Id: TArrayD.cxx,v 1.13 2004/05/06 12:32:43 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.