Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::Array_1< T > Class Template Reference
Inheritance diagram for Hal::Array_1< T >:

Public Member Functions

 Array_1 (Int_t size)
 
 Array_1 (const Array_1< T > &obj)
 
void MakeBigger (Int_t new_dim)
 
void Resize (Int_t new_dim)
 
T & operator[] (const int index)
 
Int_t GetSize () const
 
T * GetArray () const
 
void Add (Array_1< T > const &rhs)
 
Array_1< T > & operator= (const Array_1< T > &rhs)
 
Array_1< T > & operator+= (const Array_1< T > &rhs)
 
Array_1< T > & operator-= (const Array_1< T > &rhs)
 
Array_1< T > & operator+ (const Array_1< T > &rhs)
 
Array_1< T > & operator- (const Array_1< T > &rhs)
 
Array_1< T > & operator* (const T &val)
 
Array_1< T > & operator/ (const T &val)
 
Array_1< T > & operator*= (const T &val)
 
Array_1< T > & operator/= (const T &val)
 
FindMin (Int_t &index) const
 
FindMax (Int_t &index) const
 
Get (Int_t i) const
 
void Set (Int_t index, T val)
 
IncrementAfter (Int_t i)
 
void Resize (Int_t new_dim)
 
Array_1< Bool_t > & operator* (const Bool_t &val)
 
Array_1< Bool_t > & operator*= (const Bool_t &val)
 
Bool_t IncrementAfter (Int_t i)
 

Detailed Description

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

Definition at line 19 of file Array.h.

Constructor & Destructor Documentation

◆ Array_1() [1/3]

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

Definition at line 23 of file Array.h.

◆ Array_1() [2/3]

template<typename T >
Hal::Array_1< T >::Array_1 ( Int_t size)

Definition at line 192 of file Array.cxx.

◆ Array_1() [3/3]

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

cop constructor

Parameters
obj

Definition at line 185 of file Array.cxx.

◆ ~Array_1()

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

Definition at line 110 of file Array.h.

Member Function Documentation

◆ Add()

template<typename T >
void Hal::Array_1< T >::Add ( Array_1< T > const & rhs)

operator =

Parameters
rhsto copy
Returns

Definition at line 176 of file Array.cxx.

◆ FindMax()

template<typename T >
T Hal::Array_1< T >::FindMax ( Int_t & index) const

Definition at line 164 of file Array.cxx.

◆ FindMin()

template<typename T >
T Hal::Array_1< T >::FindMin ( Int_t & index) const

Definition at line 152 of file Array.cxx.

◆ Get()

template<typename T >
T Hal::Array_1< T >::Get ( Int_t i) const
inline
Returns
size of this array

Definition at line 97 of file Array.h.

◆ GetArray()

template<typename T >
T * Hal::Array_1< T >::GetArray ( ) const
inline
Returns
array stored in this

Definition at line 55 of file Array.h.

◆ GetSize()

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

Definition at line 50 of file Array.h.

◆ IncrementAfter() [1/2]

template<typename T >
T Hal::Array_1< T >::IncrementAfter ( Int_t i)
inline

return value at given index and later increment it

Parameters
iindex
Returns
value before incrementation

Definition at line 116 of file Array.h.

◆ IncrementAfter() [2/2]

Bool_t Hal::Array_1< Bool_t >::IncrementAfter ( Int_t i)
inline

Definition at line 120 of file Array.h.

◆ MakeBigger()

template<typename T >
void Hal::Array_1< T >::MakeBigger ( Int_t new_dim)

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

Parameters
new_dimnew size

Definition at line 5 of file Array.cxx.

◆ operator*() [1/2]

Array_1< Bool_t > & Hal::Array_1< Bool_t >::operator* ( const Bool_t & val)

Definition at line 112 of file Array.cxx.

◆ operator*() [2/2]

template<typename T >
Array_1< T > & Hal::Array_1< T >::operator* ( const T & val)

Definition at line 104 of file Array.cxx.

◆ operator*=() [1/2]

Array_1< Bool_t > & Hal::Array_1< Bool_t >::operator*= ( const Bool_t & val)

Definition at line 136 of file Array.cxx.

◆ operator*=() [2/2]

template<typename T >
Array_1< T > & Hal::Array_1< T >::operator*= ( const T & val)

Definition at line 128 of file Array.cxx.

◆ operator+()

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

Definition at line 86 of file Array.cxx.

◆ operator+=()

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

Definition at line 63 of file Array.cxx.

◆ operator-()

template<typename T >
Array_1< T > & Hal::Array_1< T >::operator- ( const Array_1< T > & rhs)

Definition at line 95 of file Array.cxx.

◆ operator-=()

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

Definition at line 77 of file Array.cxx.

◆ operator/()

template<typename T >
Array_1< T > & Hal::Array_1< T >::operator/ ( const T & val)

Definition at line 120 of file Array.cxx.

◆ operator/=()

template<typename T >
Array_1< T > & Hal::Array_1< T >::operator/= ( const T & val)

Definition at line 144 of file Array.cxx.

◆ operator=()

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

add elements in array

Parameters
rhs
Returns

Definition at line 45 of file Array.cxx.

◆ operator[]()

template<typename T >
T & Hal::Array_1< T >::operator[] ( const int index)
inline
Parameters
indexindex
Returns
value at given index

Definition at line 45 of file Array.h.

◆ Resize() [1/2]

void Hal::Array_1< TString >::Resize ( Int_t new_dim)

Definition at line 33 of file Array.cxx.

◆ Resize() [2/2]

template<typename T >
void Hal::Array_1< T >::Resize ( Int_t new_dim)

resize this array all content of array is set to 0

Parameters
new_dim

Definition at line 21 of file Array.cxx.

◆ Set()

template<typename T >
void Hal::Array_1< T >::Set ( Int_t index,
T val )
inline

set value

Parameters
indexindex
valvalue

Definition at line 103 of file Array.h.


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