Logo ROOT  
Reference Guide
TArrayL Class Reference

Array of longs (32 or 64 bits per element).

Definition at line 27 of file TArrayL.h.

Public Member Functions

 TArrayL ()
 Default TArrayL ctor. More...
 
 TArrayL (const TArrayL &array)
 Copy constructor. More...
 
 TArrayL (Int_t n)
 Create TArrayL object and set array size to n longs. More...
 
 TArrayL (Int_t n, const Long_t *array)
 Create TArrayL object and initialize it with values of array. More...
 
virtual ~TArrayL ()
 Delete TArrayL object. More...
 
void AddAt (Long_t c, Int_t i)
 Add long c at position i. Check for out of bounds. More...
 
void Adopt (Int_t n, Long_t *array)
 Adopt array arr into TArrayL, i.e. More...
 
Long_t At (Int_t i) const
 
void Copy (TArrayL &array) const
 
Long_tGetArray ()
 
const Long_tGetArray () const
 
Double_t GetAt (Int_t i) const override
 
Stat_t GetSum () const
 
TClassIsA () const override
 
TArrayLoperator= (const TArrayL &rhs)
 TArrayL assignment operator. More...
 
Long_toperator[] (Int_t i)
 
Long_t operator[] (Int_t i) const
 
void Reset ()
 
void Reset (Long_t val)
 
void Set (Int_t n) override
 Set size of this array to n longs. More...
 
void Set (Int_t n, const Long_t *array)
 Set size of this array to n longs and set the contents. More...
 
void SetAt (Double_t v, Int_t i) override
 
void Streamer (TBuffer &) override
 Stream a TArrayL object. More...
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- 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
 
virtual TClassIsA () const
 
TArrayoperator= (const TArray &rhs)
 
virtual void Set (Int_t n)=0
 
virtual void SetAt (Double_t v, Int_t i)=0
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TArray
static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
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...
 

Public Attributes

Long_tfArray
 
- Public Attributes inherited from TArray
Int_t fN
 

Additional Inherited Members

- 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 <TArrayL.h>

Inheritance diagram for TArrayL:
[legend]

Constructor & Destructor Documentation

◆ TArrayL() [1/4]

TArrayL::TArrayL ( )

Default TArrayL ctor.

Definition at line 26 of file TArrayL.cxx.

◆ TArrayL() [2/4]

TArrayL::TArrayL ( Int_t  n)

Create TArrayL object and set array size to n longs.

Definition at line 34 of file TArrayL.cxx.

◆ TArrayL() [3/4]

TArrayL::TArrayL ( Int_t  n,
const Long_t array 
)

Create TArrayL object and initialize it with values of array.

Definition at line 43 of file TArrayL.cxx.

◆ TArrayL() [4/4]

TArrayL::TArrayL ( const TArrayL array)

Copy constructor.

Definition at line 52 of file TArrayL.cxx.

◆ ~TArrayL()

TArrayL::~TArrayL ( )
virtual

Delete TArrayL object.

Definition at line 71 of file TArrayL.cxx.

Member Function Documentation

◆ AddAt()

void TArrayL::AddAt ( Long_t  c,
Int_t  i 
)

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

Definition at line 93 of file TArrayL.cxx.

◆ Adopt()

void TArrayL::Adopt ( Int_t  n,
Long_t arr 
)

Adopt array arr into TArrayL, i.e.

don't copy arr but use it directly in TArrayL. User may not delete arr, TArrayL dtor will do it.

Definition at line 81 of file TArrayL.cxx.

◆ At()

Long_t TArrayL::At ( Int_t  i) const
inline

Definition at line 80 of file TArrayL.h.

◆ Class()

static TClass * TArrayL::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TArrayL::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static Version_t TArrayL::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 55 of file TArrayL.h.

◆ Copy()

void TArrayL::Copy ( TArrayL array) const
inline

Definition at line 42 of file TArrayL.h.

◆ DeclFileName()

static const char * TArrayL::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 55 of file TArrayL.h.

◆ GetArray() [1/2]

Long_t * TArrayL::GetArray ( )
inline

Definition at line 44 of file TArrayL.h.

◆ GetArray() [2/2]

const Long_t * TArrayL::GetArray ( ) const
inline

Definition at line 43 of file TArrayL.h.

◆ GetAt()

Double_t TArrayL::GetAt ( Int_t  i) const
inlineoverridevirtual

Implements TArray.

Definition at line 45 of file TArrayL.h.

◆ GetSum()

Stat_t TArrayL::GetSum ( ) const
inline

Definition at line 46 of file TArrayL.h.

◆ IsA()

TClass * TArrayL::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TArray.

Definition at line 55 of file TArrayL.h.

◆ operator=()

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

TArrayL assignment operator.

Definition at line 61 of file TArrayL.cxx.

◆ operator[]() [1/2]

Long_t & TArrayL::operator[] ( Int_t  i)
inline

Definition at line 86 of file TArrayL.h.

◆ operator[]() [2/2]

Long_t TArrayL::operator[] ( Int_t  i) const
inline

Definition at line 93 of file TArrayL.h.

◆ Reset() [1/2]

void TArrayL::Reset ( void  )
inline

Definition at line 47 of file TArrayL.h.

◆ Reset() [2/2]

void TArrayL::Reset ( Long_t  val)
inline

Definition at line 48 of file TArrayL.h.

◆ Set() [1/2]

void TArrayL::Set ( Int_t  n)
overridevirtual

Set size of this array to n longs.

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 TArrayL.cxx.

◆ Set() [2/2]

void TArrayL::Set ( Int_t  n,
const Long_t array 
)

Set size of this array to n longs and set the contents.

This function should not be called if the array was declared via Adopt.

Definition at line 132 of file TArrayL.cxx.

◆ SetAt()

void TArrayL::SetAt ( Double_t  v,
Int_t  i 
)
inlineoverridevirtual

Implements TArray.

Definition at line 51 of file TArrayL.h.

◆ Streamer()

void TArrayL::Streamer ( TBuffer b)
overridevirtual

Stream a TArrayL object.

Reimplemented from TArray.

Definition at line 148 of file TArrayL.cxx.

◆ StreamerNVirtual()

void TArrayL::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 55 of file TArrayL.h.

Member Data Documentation

◆ fArray

Long_t* TArrayL::fArray

Definition at line 30 of file TArrayL.h.


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