Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::Array_2< T > Class Template Reference

#include <Array.h>

Inheritance diagram for Hal::Array_2< T >:

Public Member Functions

 Array_2 (Int_t x, Int_t y)
 
 Array_2 (const Array_2< T > &obj)
 
void MakeBigger (Int_t sizeA, Int_t sizeB)
 
Int_t GetSize () const
 
Array_1< T > * At (const Int_t i)
 
Array_2< T > & operator= (const Array_2< T > &rhs)
 
Array_2< T > & operator+= (const Array_2< T > &rhs)
 
Get (Int_t i, Int_t j) const
 
Array_1< T > & operator[] (const int index)
 
void Set (Int_t i, Int_t j, T val)
 
IncrementAfter (Int_t i, Int_t j)
 

Detailed Description

template<typename T>
class Hal::Array_2< T >

store 2-dim array of types

Definition at line 127 of file Array.h.

Constructor & Destructor Documentation

◆ Array_2() [1/3]

template<typename T >
Hal::Array_2< T >::Array_2 ( )
inline

Definition at line 131 of file Array.h.

◆ Array_2() [2/3]

template<typename T >
Hal::Array_2< T >::Array_2 ( Int_t x,
Int_t y )

construtor

Parameters
xcols
yrows

Definition at line 258 of file Array.cxx.

◆ Array_2() [3/3]

template<typename T >
Hal::Array_2< T >::Array_2 ( const Array_2< T > & obj)

cop constructor

Parameters
obj

Definition at line 250 of file Array.cxx.

◆ ~Array_2()

template<typename T >
virtual Hal::Array_2< T >::~Array_2 ( )
inlinevirtual

Definition at line 190 of file Array.h.

Member Function Documentation

◆ At()

template<typename T >
Array_1< T > * Hal::Array_2< T >::At ( const Int_t i)
inline
Parameters
iindex
Returns
sub-array

Definition at line 159 of file Array.h.

◆ Get()

template<typename T >
T Hal::Array_2< T >::Get ( Int_t i,
Int_t j ) const
inline
Returns
size of this array (last dimension)

Definition at line 174 of file Array.h.

◆ GetSize()

template<typename T >
Int_t Hal::Array_2< T >::GetSize ( ) const
inline
Returns
size of array

Definition at line 153 of file Array.h.

◆ IncrementAfter()

template<typename T >
T Hal::Array_2< T >::IncrementAfter ( Int_t i,
Int_t j )
inline

return and later increment value at given place

Parameters
i1st index
j2nd index
Returns
value before incrementation

Definition at line 189 of file Array.h.

◆ MakeBigger()

template<typename T >
void Hal::Array_2< T >::MakeBigger ( Int_t sizeA,
Int_t sizeB )

make this array bigger, old values are copied new filled by zeroes

Parameters
sizeA
sizeB

Definition at line 197 of file Array.cxx.

◆ operator+=()

template<typename T >
Array_2< T > & Hal::Array_2< T >::operator+= ( const Array_2< T > & rhs)

Definition at line 236 of file Array.cxx.

◆ operator=()

template<typename T >
Array_2< T > & Hal::Array_2< T >::operator= ( const Array_2< T > & rhs)

operator =

Parameters
rhsto copy
Returns

Definition at line 218 of file Array.cxx.

◆ operator[]()

template<typename T >
Array_1< T > & Hal::Array_2< T >::operator[] ( const int index)
inline

Definition at line 175 of file Array.h.

◆ Set()

template<typename T >
void Hal::Array_2< T >::Set ( Int_t i,
Int_t j,
T val )
inline

set value

Parameters
i1st index
j2nd index
valvalue

Definition at line 182 of file Array.h.


The documentation for this class was generated from the following files: