Loading [MathJax]/jax/output/HTML-CSS/config.js
ROOT
6.08/07
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace Members
+
All
2
3
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
2
3
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
v
x
+
Enumerations
a
d
e
f
g
h
m
p
t
v
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
u
v
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
v
w
x
y
z
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
tree
tree
inc
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
#ifndef ROOT_Rtypes
12
#include "
Rtypes.h
"
13
#endif
14
15
16
class
TIndArray
17
{
18
public
:
19
TIndArray
():
20
fElems
( 0 ),
fCapacity
( 0 ),
fArr
( 0 ) {};
21
22
virtual
~TIndArray
()
23
{
24
delete
[]
fArr
;
25
}
26
27
void
ClearAndResize
(
UInt_t
size )
28
{
29
delete
[]
fArr
;
30
fElems
= 0;
31
fArr
=
new
UChar_t
[size];
32
fCapacity
= size;
33
}
34
35
UInt_t
GetCapacity
() {
return
fCapacity
; }
36
UInt_t
GetNumItems
() {
return
fElems
; }
37
void
SetNumItems
(
UInt_t
items ) {
fElems
= items;}
38
UChar_t
&
At
(
Int_t
ind ) {
return
fArr
[ind]; }
39
void
Clear
() {
fElems
= 0; }
40
41
private
:
42
UInt_t
fElems
;
///< Number of elements stored in the array
43
UInt_t
fCapacity
;
///<! Capacity of the array
44
UChar_t
*
fArr
;
///<[fElems] The array
45
46
};
47
48
#endif // ROOT_TIndArray
TIndArray::fArr
UChar_t * fArr
[fElems] The array
Definition:
TIndArray.h:44
Rtypes.h
TIndArray::At
UChar_t & At(Int_t ind)
Definition:
TIndArray.h:38
TIndArray
Definition:
TIndArray.h:16
Int_t
int Int_t
Definition:
RtypesCore.h:41
TIndArray::fCapacity
UInt_t fCapacity
! Capacity of the array
Definition:
TIndArray.h:43
TIndArray::GetCapacity
UInt_t GetCapacity()
Definition:
TIndArray.h:35
TIndArray::TIndArray
TIndArray()
Definition:
TIndArray.h:19
TIndArray::Clear
void Clear()
Definition:
TIndArray.h:39
TIndArray::ClearAndResize
void ClearAndResize(UInt_t size)
Definition:
TIndArray.h:27
TIndArray::GetNumItems
UInt_t GetNumItems()
Definition:
TIndArray.h:36
UInt_t
unsigned int UInt_t
Definition:
RtypesCore.h:42
TIndArray::SetNumItems
void SetNumItems(UInt_t items)
Definition:
TIndArray.h:37
TIndArray::fElems
UInt_t fElems
Number of elements stored in the array.
Definition:
TIndArray.h:42
TIndArray::~TIndArray
virtual ~TIndArray()
Definition:
TIndArray.h:22
UChar_t
unsigned char UChar_t
Definition:
RtypesCore.h:34