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

#include <Array.h>

Inheritance diagram for Hal::Array_4< T >:

Public Member Functions

 Array_4 (Int_t x, Int_t y, Int_t z, Int_t t)
 
 Array_4 (const Array_4< T > &obj)
 
void MakeBigger (Int_t sizeA, Int_t sizeB, Int_t sizeC, Int_t sizeD)
 
Array_3< T > & operator[] (const int index)
 
Array_3< T > * At (Int_t i) const
 
Array_4< T > & operator= (const Array_4< T > &rhs)
 
Array_4< T > & operator+= (const Array_4< T > &rhs)
 
Int_t GetSize () const
 
Get (Int_t A, Int_t B, Int_t C, Int_t D) const
 
IncrementAfter (Int_t A, Int_t B, Int_t C, Int_t D)
 
void Set (Int_t A, Int_t B, Int_t C, Int_t D, T val)
 

Detailed Description

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

4-dim array

Definition at line 276 of file Array.h.

Constructor & Destructor Documentation

◆ Array_4() [1/3]

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

Definition at line 280 of file Array.h.

◆ Array_4() [2/3]

template<typename T >
Hal::Array_4< T >::Array_4 ( Int_t x,
Int_t y,
Int_t z,
Int_t t )

Definition at line 384 of file Array.cxx.

◆ Array_4() [3/3]

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

cop constructor

Parameters
obj

Definition at line 376 of file Array.cxx.

◆ ~Array_4()

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

Definition at line 346 of file Array.h.

Member Function Documentation

◆ At()

template<typename T >
Array_3< T > * Hal::Array_4< T >::At ( Int_t i) const
inline

return sub-array

Parameters
iindex
Returns
sub-array

Definition at line 301 of file Array.h.

◆ Get()

template<typename T >
T Hal::Array_4< T >::Get ( Int_t A,
Int_t B,
Int_t C,
Int_t D ) const
inline

get value

Parameters
A1st index
B2nd index
C3rd index
D4th index
Returns
value

Definition at line 327 of file Array.h.

◆ GetSize()

template<typename T >
Int_t Hal::Array_4< T >::GetSize ( ) const
inline
Returns
size of this array (last dimension)

Definition at line 318 of file Array.h.

◆ IncrementAfter()

template<typename T >
T Hal::Array_4< T >::IncrementAfter ( Int_t A,
Int_t B,
Int_t C,
Int_t D )
inline

return and later increment value at given place

Parameters
A1st index
B2nd index
C3rd index
D4th idnex
Returns
value before incrementation

Definition at line 336 of file Array.h.

◆ MakeBigger()

template<typename T >
void Hal::Array_4< T >::MakeBigger ( Int_t sizeA,
Int_t sizeB,
Int_t sizeC,
Int_t sizeD )

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

Parameters
sizeA
sizeB
sizeC
sizeD

Definition at line 326 of file Array.cxx.

◆ operator+=()

template<typename T >
Array_4< T > & Hal::Array_4< T >::operator+= ( const Array_4< T > & rhs)
Parameters
rhs
Returns

Definition at line 365 of file Array.cxx.

◆ operator=()

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

operator =

Parameters
rhsto copy
Returns

Definition at line 347 of file Array.cxx.

◆ operator[]()

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

Definition at line 295 of file Array.h.

◆ Set()

template<typename T >
void Hal::Array_4< T >::Set ( Int_t A,
Int_t B,
Int_t C,
Int_t D,
T val )
inline

set value

Parameters
A1st index
B2nd index
C3rd index
D4th index
valvalue

Definition at line 345 of file Array.h.


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