StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | List of all members
AliHLTArray< T, Dim > Class Template Reference

#include <AliHLTArray.h>

Inheritance diagram for AliHLTArray< T, Dim >:
AliHLTInternal::ArrayBase< T, Dim >

Public Types

typedef
AliHLTInternal::ArrayBase< T,
Dim > 
Parent
 

Public Member Functions

int Size () const
 
 operator bool () const
 
bool IsValid () const
 
T & operator* ()
 
const T & operator* () const
 
T * Data ()
 
const T * Data () const
 
AliHLTArray operator+ (int x) const
 
AliHLTArray operator- (int x) const
 
template<typename Other >
AliHLTArray< Other, Dim > ReinterpretCast () const
 

Detailed Description

template<typename T, int Dim>
class AliHLTArray< T, Dim >

C-Array like class with the dimension dependent behavior defined in the ArrayBase class

Definition at line 80 of file AliHLTArray.h.

Member Function Documentation

template<typename T, int Dim>
T* AliHLTArray< T, Dim >::Data ( )
inline

returns a pointer to the data This circumvents bounds checking so it should not be used.

Definition at line 405 of file AliHLTArray.h.

Referenced by AliHLTTPCCAGBTracker::FindTracks().

template<typename T, int Dim>
const T* AliHLTArray< T, Dim >::Data ( ) const
inline

returns a const pointer to the data This circumvents bounds checking so it should not be used.

Definition at line 410 of file AliHLTArray.h.

template<typename T, int Dim>
bool AliHLTArray< T, Dim >::IsValid ( ) const
inline

allows you to check for validity of the array

Definition at line 390 of file AliHLTArray.h.

template<typename T, int Dim>
AliHLTArray< T, Dim >::operator bool ( ) const
inline

allows you to check for validity of the array by casting to bool

Definition at line 386 of file AliHLTArray.h.

template<typename T, int Dim>
T& AliHLTArray< T, Dim >::operator* ( void  )
inline

returns a reference to the data at index 0

Definition at line 395 of file AliHLTArray.h.

template<typename T, int Dim>
const T& AliHLTArray< T, Dim >::operator* ( void  ) const
inline

returns a const reference to the data at index 0

Definition at line 399 of file AliHLTArray.h.

template<typename T , int Dim>
AliHLTArray< T, Dim > AliHLTArray< T, Dim >::operator+ ( int  x) const
inline

moves the array base pointer so that the data that was once at index 0 will then be at index -x

Definition at line 669 of file AliHLTArray.h.

template<typename T , int Dim>
AliHLTArray< T, Dim > AliHLTArray< T, Dim >::operator- ( int  x) const
inline

moves the array base pointer so that the data that was once at index 0 will then be at index x

Definition at line 677 of file AliHLTArray.h.

template<typename T, int Dim>
int AliHLTArray< T, Dim >::Size ( ) const
inline

Returns the number of elements in the array. If it is a multi-dimensional array the size is the multiplication of the dimensions ( e.g. a 10 x 20 array returns 200 as its size ).

Definition at line 381 of file AliHLTArray.h.

Referenced by AliHLTTPCCASliceData::ClearHitWeights(), AliHLTTPCCASliceData::ClearLinks(), AliHLTTPCCAGBTracker::FindTracks(), and AliHLTTPCCASliceData::HitDataXS().


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