ROOT
6.07/01
Reference Guide
|
Public Member Functions | |
TArrayI () | |
TArrayI (Int_t n) | |
Create TArrayI object and set array size to n integers. More... | |
TArrayI (Int_t n, const Int_t *array) | |
Create TArrayI object and initialize it with values of array. More... | |
TArrayI (const TArrayI &array) | |
Copy constructor. More... | |
TArrayI & | operator= (const TArrayI &rhs) |
TArrayI assignment operator. More... | |
virtual | ~TArrayI () |
Delete TArrayI object. More... | |
void | Adopt (Int_t n, Int_t *array) |
Adopt array arr into TArrayI, i.e. More... | |
void | AddAt (Int_t c, Int_t i) |
Add Int_t c at position i. Check for out of bounds. More... | |
Int_t | At (Int_t i) const |
void | Copy (TArrayI &array) const |
const Int_t * | GetArray () const |
Int_t * | GetArray () |
Double_t | GetAt (Int_t i) const |
Stat_t | GetSum () const |
void | Reset () |
void | Reset (Int_t val) |
void | Set (Int_t n) |
Set size of this array to n ints. More... | |
void | Set (Int_t n, const Int_t *array) |
Set size of this array to n ints and set the contents. More... | |
void | SetAt (Double_t v, Int_t i) |
Int_t & | operator[] (Int_t i) |
Int_t | operator[] (Int_t i) const |
Public Member Functions inherited from TArray | |
TArray () | |
TArray (Int_t n) | |
TArray (const TArray &a) | |
TArray & | operator= (const TArray &rhs) |
virtual | ~TArray () |
Int_t | GetSize () const |
Public Attributes | |
Int_t * | fArray |
Public Attributes inherited from TArray | |
Int_t | fN |
Additional Inherited Members | |
Static Public Member Functions inherited from TArray | |
static TArray * | ReadArray (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... | |
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 |
#include <TArrayI.h>
TArrayI::TArrayI | ( | ) |
TArrayI::TArrayI | ( | Int_t | n | ) |
Create TArrayI object and set array size to n integers.
Definition at line 34 of file TArrayI.cxx.
Create TArrayI object and initialize it with values of array.
Definition at line 43 of file TArrayI.cxx.
TArrayI::TArrayI | ( | const TArrayI & | array | ) |
Copy constructor.
Definition at line 52 of file TArrayI.cxx.
|
virtual |
Delete TArrayI object.
Definition at line 71 of file TArrayI.cxx.
Add Int_t c at position i. Check for out of bounds.
Definition at line 93 of file TArrayI.cxx.
Referenced by TTreeFormulaManager::GetNdata(), TTreeFormula::LoadCurrentDim(), TFormLeafInfoMultiVarDim::LoadSizes(), TFormLeafInfoMultiVarDimCollection::LoadSizes(), TFormLeafInfoMultiVarDimClones::LoadSizes(), SetAt(), TDsKey::SetKey(), TFormLeafInfoMultiVarDim::SetSize(), and TFormLeafInfoMultiVarDim::UpdateSizes().
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 81 of file TArrayI.cxx.
Definition at line 81 of file TArrayI.h.
Referenced by GetAt(), TTreeFormulaManager::GetNdata(), TTreeFormula::GetRealInstance(), TFormLeafInfoMultiVarDim::GetSize(), rr_arrayi_new(), TFormLeafInfoMultiVarDim::SetSize(), and TFormLeafInfoMultiVarDim::UpdateSizes().
Definition at line 44 of file TArrayI.h.
Referenced by TFormLeafInfoMultiVarDim::TFormLeafInfoMultiVarDim(), TH1I::TH1I(), TH2I::TH2I(), and TH3I::TH3I().
|
inline |
Definition at line 45 of file TArrayI.h.
Referenced by TDecompSparse::Factor(), Memstat::TMemStatMng::generateBTID(), TEvePointSet::GetPointIntId(), TEvePointSet::GetPointIntIds(), TTreeFormula::GetRealInstance(), TDecompSparse::InitPivot(), TDecompSparse::Print(), TEvePointSet::SetPointIntIds(), TDecompSparse::Solve(), and TEvePointSet::TakeAction().
Implements TArray.
Definition at line 47 of file TArrayI.h.
Referenced by TFITSHDU::Draw(), TFITSHDU::GetArrayColumn(), TFITSHDU::GetArrayRow(), TFITSHDU::LoadHDU(), TFITSHDU::ReadAsHistogram(), TFITSHDU::ReadAsImage(), and TFITSHDU::ReadAsMatrix().
TArrayI assignment operator.
Definition at line 61 of file TArrayI.cxx.
Definition at line 49 of file TArrayI.h.
Referenced by TBufferJSON::JsonWriteMember(), TH2I::Reset(), TH3I::Reset(), and TH1I::Reset().
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 105 of file TArrayI.cxx.
Referenced by TEvePointSet::AssertIntIdsSize(), Copy(), TDecompSparse::Decompose(), TRobustEstimator::Evaluate(), TTreeFormulaManager::GetNdata(), TEvePointSet::GrowFor(), TEvePointSet::InitFill(), TUnfold::InitTUnfold(), TTreeFormula::LoadCurrentDim(), TFormLeafInfoMultiVarDim::LoadSizes(), TFormLeafInfoMultiVarDimCollection::LoadSizes(), TFormLeafInfoMultiVarDimClones::LoadSizes(), TPRegexp::MatchInternal(), operator=(), TH2I::SetBinsLength(), TH3I::SetBinsLength(), TH1I::SetBinsLength(), TDecompSparse::SetMatrix(), TDsKey::SetUrr(), TPMERegexp::Split(), TArrayI(), TDecayChannel::TDecayChannel(), TDecompSparse::TDecompSparse(), TH1I::TH1I(), TH2I::TH2I(), TH3I::TH3I(), TUnfold::TUnfold(), and TFormLeafInfoMultiVarDim::UpdateSizes().
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 129 of file TArrayI.cxx.
Int_t* TArrayI::fArray |
Definition at line 32 of file TArrayI.h.
Referenced by AddAt(), TH2I::AddBinContent(), TH3I::AddBinContent(), TH1I::AddBinContent(), Adopt(), At(), Copy(), TDecayChannel::DaughterPdgCode(), GetArray(), TTree::GetIndex(), GetSum(), operator=(), operator[](), Reset(), TH2I::RetrieveBinContent(), TH3I::RetrieveBinContent(), TH1I::RetrieveBinContent(), Set(), TArrayI(), TH2I::UpdateBinContent(), TH3I::UpdateBinContent(), TH1I::UpdateBinContent(), and ~TArrayI().