AliPhysics  vAN-20151014 (f894c76)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliEmcalTriggerDataGrid< T >::OutOfBoundsException Class Reference

Exception class handling access to non-existing container element. More...

#include <AliEmcalTriggerDataGrid.h>

Inheritance diagram for AliEmcalTriggerDataGrid< T >::OutOfBoundsException:

Public Types

enum  Direction_t { kColDir = 0, kRowDir = 1, kUndef = 2 }
 

Public Member Functions

 OutOfBoundsException ()
 
 OutOfBoundsException (Direction_t dir, int index, int size)
 
virtual ~OutOfBoundsException () throw ()
 
const char * what () const throw ()
 
int GetSize () const
 
int GetIndex () const
 
Direction_t GetDirection () const
 

Private Attributes

std::string fMessage
 Error message, accessible via "what". More...
 
Direction_t fDir
 Direction. More...
 
int fSize
 size of the container in direction More...
 
int fIndex
 Index requested. More...
 

Detailed Description

template<typename T>
class AliEmcalTriggerDataGrid< T >::OutOfBoundsException

Exception class handling access to non-existing container element.

Definition at line 48 of file AliEmcalTriggerDataGrid.h.

Member Enumeration Documentation

Definition of directions

Enumerator
kColDir 

Column direction (eta)

kRowDir 

Row direction (phi)

kUndef 

Not defined.

Definition at line 53 of file AliEmcalTriggerDataGrid.h.

Constructor & Destructor Documentation

template<typename T>
AliEmcalTriggerDataGrid< T >::OutOfBoundsException::OutOfBoundsException ( )
inline

Dumny constructor

Definition at line 61 of file AliEmcalTriggerDataGrid.h.

template<typename T>
AliEmcalTriggerDataGrid< T >::OutOfBoundsException::OutOfBoundsException ( Direction_t  dir,
int  index,
int  size 
)
inline

Regular constructor, to be called when exception is thrown

Parameters
dirDirection (col or row)
indexIndex for which exception is thrown
sizeSize of the grid in direction

Definition at line 75 of file AliEmcalTriggerDataGrid.h.

template<typename T>
virtual AliEmcalTriggerDataGrid< T >::OutOfBoundsException::~OutOfBoundsException ( )
throw (
)
inlinevirtual

Destructor

Definition at line 89 of file AliEmcalTriggerDataGrid.h.

Member Function Documentation

template<typename T>
Direction_t AliEmcalTriggerDataGrid< T >::OutOfBoundsException::GetDirection ( ) const
inline

Get the direction for which exception is thrown.

Returns
Direction for which exception is thrown.

Definition at line 113 of file AliEmcalTriggerDataGrid.h.

template<typename T>
int AliEmcalTriggerDataGrid< T >::OutOfBoundsException::GetIndex ( ) const
inline

Get index for which exception is thrown

Returns
Index for which exception is thrown

Definition at line 107 of file AliEmcalTriggerDataGrid.h.

template<typename T>
int AliEmcalTriggerDataGrid< T >::OutOfBoundsException::GetSize ( ) const
inline

Get the size of the grid in direction for which exception is thrown

Returns
Size of the grid in direction

Definition at line 101 of file AliEmcalTriggerDataGrid.h.

template<typename T>
const char* AliEmcalTriggerDataGrid< T >::OutOfBoundsException::what ( ) const
throw (
)
inline

Get error message

Returns
error message (created in constructor)

Definition at line 95 of file AliEmcalTriggerDataGrid.h.

Member Data Documentation

template<typename T>
int AliEmcalTriggerDataGrid< T >::OutOfBoundsException::fIndex
private
template<typename T>
std::string AliEmcalTriggerDataGrid< T >::OutOfBoundsException::fMessage
private
template<typename T>
int AliEmcalTriggerDataGrid< T >::OutOfBoundsException::fSize
private

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