#include <Rangedimexc.hh>
Inheritance diagram for RazorBack::Indexrangexc_:
Public Methods | |
Indexrangexc_ (const char *Thnm, unsigned int Bidx, unsigned int Idx, bool F=false) | |
Constructs an index range exception thrown in a function called Thnm. More... | |
int | bad_idx () const |
bad_idx(): returns the "bad" index that caused the exception. | |
int | max_idx () const |
max_idx(): returns the maximal index that was violated. | |
Protected Attributes | |
unsigned int | Badidx |
data. | |
unsigned int | Maxidx |
bad index causing the exception, max.range. | |
Private Methods | |
Indexrangexc_ () |
Stores the bad index and the max. size both of which must be specified (no empty default ctor). Index should have been in the range [0..Maxsize]. Usage: throw Indexrangexc_("wrong_function", BadIdx, Maxsize)
Definition at line 42 of file Rangedimexc.hh.
|
Constructs an index range exception thrown in a function called Thnm. Bidx is the out-of-range index, Idx is the maximal allowed index. F is the fatality indicator (default false). |
|
|
|
bad_idx(): returns the "bad" index that caused the exception.
Definition at line 61 of file Rangedimexc.hh. |
|
max_idx(): returns the maximal index that was violated.
Definition at line 64 of file Rangedimexc.hh. |
|
data.
Definition at line 47 of file Rangedimexc.hh. |
|
bad index causing the exception, max.range.
Definition at line 47 of file Rangedimexc.hh. |