Public Member Functions | |
| TArrayI () | |
| Default TArrayI ctor. | |
| TArrayI (const TArrayI &array) | |
| Copy constructor. | |
| TArrayI (Int_t n) | |
| Create TArrayI object and set array size to n integers. | |
| TArrayI (Int_t n, const Int_t *array) | |
| Create TArrayI object and initialize it with values of array. | |
| virtual | ~TArrayI () |
| Delete TArrayI object. | |
| void | AddAt (Int_t c, Int_t i) |
| Add Int_t c at position i. Check for out of bounds. | |
| void | Adopt (Int_t n, Int_t *array) |
| Adopt array arr into TArrayI, i.e. | |
| Int_t | At (Int_t i) const |
| void | Copy (TArrayI &array) const |
| Int_t * | GetArray () |
| const Int_t * | GetArray () const |
| Double_t | GetAt (Int_t i) const override |
| Int_t | GetSize () const |
| Stat_t | GetSum () const |
| TClass * | IsA () const override |
| TArrayI & | operator= (const TArrayI &rhs) |
| TArrayI assignment operator. | |
| Int_t & | operator[] (Int_t i) |
| Int_t | operator[] (Int_t i) const |
| void | Reset () |
| void | Reset (Int_t val) |
| void | Set (Int_t n) override |
| Set size of this array to n ints. | |
| void | Set (Int_t n, const Int_t *array) |
| Set size of this array to n ints and set the contents. | |
| void | SetAt (Double_t v, Int_t i) override |
| std::size_t | size () const |
| void | Streamer (TBuffer &) override |
| Stream a TArrayI object. | |
| 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 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 | |
| Int_t * | fArray |
| Int_t | fN |
Protected Member Functions | |
| 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 <TArrayI.h>
| TArrayI::TArrayI | ( | ) |
Default TArrayI ctor.
Definition at line 25 of file TArrayI.cxx.
| TArrayI::TArrayI | ( | Int_t | n | ) |
Create TArrayI object and set array size to n integers.
Definition at line 33 of file TArrayI.cxx.
Create TArrayI object and initialize it with values of array.
Definition at line 42 of file TArrayI.cxx.
| TArrayI::TArrayI | ( | const TArrayI & | array | ) |
Copy constructor.
Definition at line 51 of file TArrayI.cxx.
|
virtual |
Delete TArrayI object.
Definition at line 70 of file TArrayI.cxx.
Add Int_t c at position i. Check for out of bounds.
Definition at line 92 of file TArrayI.cxx.
Adopt array arr into TArrayI, i.e.
don't copy arr but use it directly in TArrayI. User may not delete arr, TArrayI dtor will do it.
Definition at line 80 of file TArrayI.cxx.
|
static |
|
static |
|
inlinestaticconstexpr |
|
inlinestatic |
|
inlineoverridevirtual |
TArrayI assignment operator.
Definition at line 60 of file TArrayI.cxx.
Generate an out-of-bounds error. Always returns false.
Definition at line 29 of file TArray.cxx.
Read TArray object from buffer.
Simplified version of TBuffer::ReadObject (does not keep track of multiple references to same array).
Definition at line 40 of file TArray.cxx.
|
overridevirtual |
Set size of this array to n ints.
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 TArrayI.cxx.
Set size of this array to n ints and set the contents.
This function should not be called if the array was declared via Adopt.
Definition at line 131 of file TArrayI.cxx.
|
overridevirtual |
|
inline |
Write TArray object to buffer.
Simplified version of TBuffer::WriteObject (does not keep track of multiple references to the same array).
Definition at line 81 of file TArray.cxx.