ROOT
Version v6.34
master
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
►
core
►
documentation
►
geom
►
graf2d
►
graf3d
►
gui
►
hist
►
html
►
io
►
main
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
▼
tree
►
dataframe
►
ntuple
►
ntupleutil
►
readspeed
▼
tree
►
doc
▼
inc
►
ROOT
TBasket.h
TBasketSQL.h
►
TBranch.h
TBranchBrowsable.h
►
TBranchCacheInfo.h
TBranchClones.h
TBranchElement.h
TBranchObject.h
TBranchRef.h
►
TBranchSTL.h
TBufferSQL.h
TChain.h
TChainElement.h
►
TCut.h
TEntryList.h
TEntryListArray.h
TEntryListBlock.h
TEntryListFromFile.h
TEventList.h
TFriendElement.h
►
TIndArray.h
►
TLeaf.h
TLeafB.h
TLeafC.h
TLeafD.h
TLeafD32.h
TLeafElement.h
TLeafF.h
TLeafF16.h
TLeafG.h
TLeafI.h
TLeafL.h
TLeafO.h
TLeafObject.h
TLeafS.h
TNtuple.h
TNtupleD.h
►
TQueryResult.h
►
TreeUtils.h
TSelector.h
TSelectorList.h
TSelectorScalar.h
►
TTree.h
►
TTreeCache.h
►
TTreeCacheUnzip.h
►
TTreeCloner.h
TTreeResult.h
TTreeRow.h
TTreeSQL.h
TVirtualIndex.h
TVirtualTreePlayer.h
►
src
►
treeplayer
►
treeviewer
►
webviewer
►
tutorials
►
v6-34-00-patches
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
TIndArray.h
Go to the documentation of this file.
1
// @(#)root/tree:$Id$
2
// Author: Lukasz Janyst <ljanyst@cern.ch> 23/01/2008
3
4
//------------------------------------------------------------------------------
5
// file: TIndArray.h
6
//------------------------------------------------------------------------------
7
8
#ifndef ROOT_TIndArray
9
#define ROOT_TIndArray
10
11
#include "
RtypesCore.h
"
12
13
14
class
TIndArray
15
{
16
public
:
17
TIndArray
():
18
fElems
( 0 ),
fCapacity
( 0 ),
fArr
( nullptr ) {};
19
20
virtual
~TIndArray
()
21
{
22
delete
[]
fArr
;
23
}
24
25
void
ClearAndResize
(
UInt_t
size
)
26
{
27
delete
[]
fArr
;
28
fElems
= 0;
29
fArr
=
new
UChar_t
[
size
];
30
fCapacity
=
size
;
31
}
32
33
UInt_t
GetCapacity
() {
return
fCapacity
; }
34
UInt_t
GetNumItems
() {
return
fElems
; }
35
void
SetNumItems
(
UInt_t
items
) {
fElems
=
items
;}
36
UChar_t
&
At
(
Int_t
ind
) {
return
fArr
[
ind
]; }
37
void
Clear
() {
fElems
= 0; }
38
39
private
:
40
UInt_t
fElems
;
///< Number of elements stored in the array
41
UInt_t
fCapacity
;
///<! Capacity of the array
42
UChar_t
*
fArr
;
///<[fElems] The array
43
44
};
45
46
#endif
// ROOT_TIndArray
size
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
RtypesCore.h
UChar_t
unsigned char UChar_t
Definition
RtypesCore.h:38
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TIndArray
Definition
TIndArray.h:15
TIndArray::TIndArray
TIndArray()
Definition
TIndArray.h:17
TIndArray::GetNumItems
UInt_t GetNumItems()
Definition
TIndArray.h:34
TIndArray::SetNumItems
void SetNumItems(UInt_t items)
Definition
TIndArray.h:35
TIndArray::~TIndArray
virtual ~TIndArray()
Definition
TIndArray.h:20
TIndArray::GetCapacity
UInt_t GetCapacity()
Definition
TIndArray.h:33
TIndArray::fElems
UInt_t fElems
Number of elements stored in the array.
Definition
TIndArray.h:40
TIndArray::ClearAndResize
void ClearAndResize(UInt_t size)
Definition
TIndArray.h:25
TIndArray::Clear
void Clear()
Definition
TIndArray.h:37
TIndArray::At
UChar_t & At(Int_t ind)
Definition
TIndArray.h:36
TIndArray::fCapacity
UInt_t fCapacity
! Capacity of the array
Definition
TIndArray.h:41
TIndArray::fArr
UChar_t * fArr
[fElems] The array
Definition
TIndArray.h:42
int
unsigned int
tree
tree
inc
TIndArray.h
ROOT tags/v6-34-08 - Reference Guide Generated on Tue Apr 8 2025 05:25:13 (GVA Time) using Doxygen 1.10.0