Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

RazorBack::Dimexc_ Class Reference

Dimexc_: dimension mismatch exception. More...

#include <Rangedimexc.hh>

Inheritance diagram for RazorBack::Dimexc_:

Inheritance graph
[legend]
Collaboration diagram for RazorBack::Dimexc_:

Collaboration graph
[legend]
List of all members.

Public Methods

 Dimexc_ (const char *Thnm, unsigned int D1, unsigned int D2, bool F=false)
 Constructs a dimension mismatch exception thrown by a function Thnm. More...

unsigned int bad_dim (int i) const
 bad_dim(): i<=1 returns Dim1, i>=2 returns Dim2.


Protected Attributes

unsigned int Dim1
unsigned int Dim2
 mismatched dimensions.


Private Methods

 Dimexc_ ()

Detailed Description

Dimexc_: dimension mismatch exception.

Stores the two dimensions which should have been equal. Both of them must be specified (no empty default ctor). Usage: throw Dimexc_("wrong_function", Dim1, Dim2).

Definition at line 143 of file Rangedimexc.hh.


Constructor & Destructor Documentation

RazorBack::Dimexc_::Dimexc_ ( const char * Thnm,
unsigned int D1,
unsigned int D2,
bool F = false )
 

Constructs a dimension mismatch exception thrown by a function Thnm.

D1, D2 are the mismatched dimensions, F is the fatality indicator.

RazorBack::Dimexc_::Dimexc_ ( ) [private]
 


Member Function Documentation

unsigned int RazorBack::Dimexc_::bad_dim ( int i ) const [inline]
 

bad_dim(): i<=1 returns Dim1, i>=2 returns Dim2.

Definition at line 160 of file Rangedimexc.hh.


Member Data Documentation

unsigned int RazorBack::Dimexc_::Dim1 [protected]
 

Definition at line 148 of file Rangedimexc.hh.

unsigned int RazorBack::Dimexc_::Dim2 [protected]
 

mismatched dimensions.

Definition at line 148 of file Rangedimexc.hh.


The documentation for this class was generated from the following file:
Generated at Wed Aug 21 09:33:38 2002 for The Razorback C++ Library: Exceptions by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001