![]() |
AliPhysics
vAN-20151020 (3f0c6c3)
|
Exception class handling access to non-existing container element. More...
#include <AliEmcalTriggerDataGrid.h>
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... | |
Exception class handling access to non-existing container element.
Definition at line 48 of file AliEmcalTriggerDataGrid.h.
enum AliEmcalTriggerDataGrid::OutOfBoundsException::Direction_t |
Definition of directions
Enumerator | |
---|---|
kColDir |
Column direction (eta) |
kRowDir |
Row direction (phi) |
kUndef |
Not defined. |
Definition at line 53 of file AliEmcalTriggerDataGrid.h.
|
inline |
Dumny constructor
Definition at line 61 of file AliEmcalTriggerDataGrid.h.
|
inline |
Regular constructor, to be called when exception is thrown
dir | Direction (col or row) |
index | Index for which exception is thrown |
size | Size of the grid in direction |
Definition at line 75 of file AliEmcalTriggerDataGrid.h.
|
inlinevirtual |
Destructor
Definition at line 89 of file AliEmcalTriggerDataGrid.h.
|
inline |
Get the direction for which exception is thrown.
Definition at line 113 of file AliEmcalTriggerDataGrid.h.
|
inline |
Get index for which exception is thrown
Definition at line 107 of file AliEmcalTriggerDataGrid.h.
|
inline |
Get the size of the grid in direction for which exception is thrown
Definition at line 101 of file AliEmcalTriggerDataGrid.h.
|
inline |
Get error message
Definition at line 95 of file AliEmcalTriggerDataGrid.h.
|
private |
Direction.
Definition at line 117 of file AliEmcalTriggerDataGrid.h.
Referenced by AliEmcalTriggerDataGrid< T >::OutOfBoundsException::GetDirection(), and AliEmcalTriggerDataGrid< T >::OutOfBoundsException::OutOfBoundsException().
|
private |
Index requested.
Definition at line 119 of file AliEmcalTriggerDataGrid.h.
Referenced by AliEmcalTriggerDataGrid< T >::OutOfBoundsException::GetIndex(), and AliEmcalTriggerDataGrid< T >::OutOfBoundsException::OutOfBoundsException().
|
private |
Error message, accessible via "what".
Definition at line 116 of file AliEmcalTriggerDataGrid.h.
Referenced by AliEmcalTriggerDataGrid< T >::OutOfBoundsException::OutOfBoundsException(), and AliEmcalTriggerDataGrid< T >::OutOfBoundsException::what().
|
private |
size of the container in direction
Definition at line 118 of file AliEmcalTriggerDataGrid.h.
Referenced by AliEmcalTriggerDataGrid< T >::OutOfBoundsException::GetSize(), and AliEmcalTriggerDataGrid< T >::OutOfBoundsException::OutOfBoundsException().