Public Member Functions | |
TArrayS () | |
Default TArrayS ctor. | |
TArrayS (const TArrayS &array) | |
Copy constructor. | |
TArrayS (Int_t n) | |
Create TArrayS object and set array size to n shorts. | |
TArrayS (Int_t n, const Short_t *array) | |
Create TArrayS object and initialize it with values of array. | |
virtual | ~TArrayS () |
Delete TArrayS object. | |
void | AddAt (Short_t c, Int_t i) |
Add short c at position i. Check for out of bounds. | |
void | Adopt (Int_t n, Short_t *array) |
Adopt array arr into TArrayS, i.e. | |
Short_t | At (Int_t i) const |
void | Copy (TArrayS &array) const |
Short_t * | GetArray () |
const Short_t * | GetArray () const |
Double_t | GetAt (Int_t i) const override |
Stat_t | GetSum () const |
TClass * | IsA () const override |
TArrayS & | operator= (const TArrayS &rhs) |
TArrayS assignment operator. | |
Short_t & | operator[] (Int_t i) |
Short_t | operator[] (Int_t i) const |
void | Reset () |
void | Reset (Short_t val) |
void | Set (Int_t n) override |
Set size of this array to n shorts. | |
void | Set (Int_t n, const Short_t *array) |
Set size of this array to n shorts and set the contents. | |
void | SetAt (Double_t v, Int_t i) override |
void | Streamer (TBuffer &) override |
Stream a TArrayS object. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
![]() | |
TArray () | |
TArray (const TArray &a) | |
TArray (Int_t n) | |
virtual | ~TArray () |
Int_t | GetSize () const |
TArray & | operator= (const TArray &rhs) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
![]() | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static TArray * | ReadArray (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 | |
Short_t * | fArray |
![]() | |
Int_t | fN |
Additional Inherited Members | |
![]() | |
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 <TArrayS.h>
TArrayS::TArrayS | ( | ) |
Default TArrayS ctor.
Definition at line 25 of file TArrayS.cxx.
TArrayS::TArrayS | ( | Int_t | n | ) |
Create TArrayS object and set array size to n shorts.
Definition at line 33 of file TArrayS.cxx.
Create TArrayS object and initialize it with values of array.
Definition at line 42 of file TArrayS.cxx.
Copy constructor.
Definition at line 51 of file TArrayS.cxx.
|
virtual |
Delete TArrayS object.
Definition at line 70 of file TArrayS.cxx.
Add short c at position i. Check for out of bounds.
Definition at line 92 of file TArrayS.cxx.
Adopt array arr into TArrayS, i.e.
don't copy arr but use it directly in TArrayS. User may not delete arr, TArrayS dtor will do it.
Definition at line 80 of file TArrayS.cxx.
|
inlineoverridevirtual |
TArrayS assignment operator.
Definition at line 60 of file TArrayS.cxx.
|
overridevirtual |
Set size of this array to n shorts.
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 104 of file TArrayS.cxx.
Set size of this array to n shorts and set the contents.
This function should not be called if the array was declared via Adopt.
Definition at line 131 of file TArrayS.cxx.
|
overridevirtual |
|
inline |