Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TArrayL64 Class Reference

Array of long64s (64 bits per element).

Definition at line 27 of file TArrayL64.h.

Public Member Functions

 TArrayL64 ()
 Default TArrayL64 ctor.
 
 TArrayL64 (const TArrayL64 &array)
 Copy constructor.
 
 TArrayL64 (Int_t n)
 Create TArrayL64 object and set array size to n long64s.
 
 TArrayL64 (Int_t n, const Long64_t *array)
 Create TArrayL object and initialize it with values of array.
 
virtual ~TArrayL64 ()
 Delete TArrayL64 object.
 
void AddAt (Long64_t c, Int_t i)
 Add long64 c at position i. Check for out of bounds.
 
void Adopt (Int_t n, Long64_t *array)
 Adopt array arr into TArrayL64, i.e.
 
Long64_t At (Int_t i) const
 
void Copy (TArrayL64 &array) const
 
Long64_tGetArray ()
 
const Long64_tGetArray () const
 
Double_t GetAt (Int_t i) const override
 
Stat_t GetSum () const
 
TClassIsA () const override
 
TArrayL64operator= (const TArrayL64 &rhs)
 TArrayL64 assignment operator.
 
Long64_toperator[] (Int_t i)
 
Long64_t operator[] (Int_t i) const
 
void Reset ()
 
void Reset (Long64_t val)
 
void Set (Int_t n) override
 Set size of this array to n long64s.
 
void Set (Int_t n, const Long64_t *array)
 Set size of this array to n long64s and set the contents.
 
void SetAt (Double_t v, Int_t i) override
 
void Streamer (TBuffer &) override
 Stream a TArrayL64 object.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TArray
 TArray ()
 
 TArray (const TArray &a)
 
 TArray (Int_t n)
 
virtual ~TArray ()
 
Int_t GetSize () const
 
TArrayoperator= (const TArray &rhs)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TArray
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static TArrayReadArray (TBuffer &b, const TClass *clReq)
 Read TArray object from buffer.
 
static void WriteArray (TBuffer &b, const TArray *a)
 Write TArray object to buffer.
 

Public Attributes

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

#include <TArrayL64.h>

Inheritance diagram for TArrayL64:
[legend]

Constructor & Destructor Documentation

◆ TArrayL64() [1/4]

TArrayL64::TArrayL64 ( )

Default TArrayL64 ctor.

Definition at line 26 of file TArrayL64.cxx.

◆ TArrayL64() [2/4]

TArrayL64::TArrayL64 ( Int_t  n)

Create TArrayL64 object and set array size to n long64s.

Definition at line 34 of file TArrayL64.cxx.

◆ TArrayL64() [3/4]

TArrayL64::TArrayL64 ( Int_t  n,
const Long64_t array 
)

Create TArrayL object and initialize it with values of array.

Definition at line 43 of file TArrayL64.cxx.

◆ TArrayL64() [4/4]

TArrayL64::TArrayL64 ( const TArrayL64 array)

Copy constructor.

Definition at line 52 of file TArrayL64.cxx.

◆ ~TArrayL64()

TArrayL64::~TArrayL64 ( )
virtual

Delete TArrayL64 object.

Definition at line 71 of file TArrayL64.cxx.

Member Function Documentation

◆ AddAt()

void TArrayL64::AddAt ( Long64_t  c,
Int_t  i 
)

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

Definition at line 93 of file TArrayL64.cxx.

◆ Adopt()

void TArrayL64::Adopt ( Int_t  n,
Long64_t arr 
)

Adopt array arr into TArrayL64, i.e.

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

Definition at line 81 of file TArrayL64.cxx.

◆ At()

Long64_t TArrayL64::At ( Int_t  i) const
inline

Definition at line 81 of file TArrayL64.h.

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

static constexpr Version_t TArrayL64::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 55 of file TArrayL64.h.

◆ Copy()

void TArrayL64::Copy ( TArrayL64 array) const
inline

Definition at line 42 of file TArrayL64.h.

◆ DeclFileName()

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

Definition at line 55 of file TArrayL64.h.

◆ GetArray() [1/2]

Long64_t * TArrayL64::GetArray ( )
inline

Definition at line 44 of file TArrayL64.h.

◆ GetArray() [2/2]

const Long64_t * TArrayL64::GetArray ( ) const
inline

Definition at line 43 of file TArrayL64.h.

◆ GetAt()

Double_t TArrayL64::GetAt ( Int_t  i) const
inlineoverridevirtual

Implements TArray.

Definition at line 45 of file TArrayL64.h.

◆ GetSum()

Stat_t TArrayL64::GetSum ( ) const
inline

Definition at line 46 of file TArrayL64.h.

◆ IsA()

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

Reimplemented from TArray.

Reimplemented in TH1L, TH2L, and TH3L.

Definition at line 55 of file TArrayL64.h.

◆ operator=()

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

TArrayL64 assignment operator.

Definition at line 61 of file TArrayL64.cxx.

◆ operator[]() [1/2]

Long64_t & TArrayL64::operator[] ( Int_t  i)
inline

Definition at line 87 of file TArrayL64.h.

◆ operator[]() [2/2]

Long64_t TArrayL64::operator[] ( Int_t  i) const
inline

Definition at line 94 of file TArrayL64.h.

◆ Reset() [1/2]

void TArrayL64::Reset ( )
inline

Definition at line 47 of file TArrayL64.h.

◆ Reset() [2/2]

void TArrayL64::Reset ( Long64_t  val)
inline

Definition at line 48 of file TArrayL64.h.

◆ Set() [1/2]

void TArrayL64::Set ( Int_t  n)
overridevirtual

Set size of this array to n long64s.

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

◆ Set() [2/2]

void TArrayL64::Set ( Int_t  n,
const Long64_t array 
)

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

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

Definition at line 132 of file TArrayL64.cxx.

◆ SetAt()

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

Implements TArray.

Definition at line 51 of file TArrayL64.h.

◆ Streamer()

void TArrayL64::Streamer ( TBuffer b)
overridevirtual

Stream a TArrayL64 object.

Reimplemented from TArray.

Reimplemented in TH1L, TH2L, and TH3L.

Definition at line 148 of file TArrayL64.cxx.

◆ StreamerNVirtual()

void TArrayL64::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 55 of file TArrayL64.h.

Member Data Documentation

◆ fArray

Long64_t* TArrayL64::fArray

Definition at line 30 of file TArrayL64.h.

  • core/cont/inc/TArrayL64.h
  • core/cont/src/TArrayL64.cxx