casa::ArrayShapeError Class Reference
[Arrays]

#include <ArrayError.h>

Inheritance diagram for casa::ArrayShapeError:

Inheritance graph
[legend]
Collaboration diagram for casa::ArrayShapeError:

Collaboration graph
[legend]
List of all members.

Detailed Description

An error thrown when two arrays have different shapes.

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

An ArrayShapeError is derived from ArrayConformanceError. It is thrown when two arrays are non-conformant by virtue of having different shapes. It holds within it the two different two shapes.

Definition at line 155 of file ArrayError.h.

Public Member Functions

 ArrayShapeError (const IPosition &shape1, const IPosition &shape2, const Char *m="ArrayShapeError", Category c=CONFORMANCE)
 Define an ArrayShapeError with the two (presumably different) shapes and an optional supplied message.
 ~ArrayShapeError () throw ()
void shapes (IPosition &, IPosition &) const
 Get back the stored shapes.

Private Attributes

IPosition sh1
IPosition sh2


Constructor & Destructor Documentation

casa::ArrayShapeError::ArrayShapeError ( const IPosition shape1,
const IPosition shape2,
const Char m = "ArrayShapeError",
Category  c = CONFORMANCE 
)

Define an ArrayShapeError with the two (presumably different) shapes and an optional supplied message.

casa::ArrayShapeError::~ArrayShapeError (  )  throw ()


Member Function Documentation

void casa::ArrayShapeError::shapes ( IPosition ,
IPosition  
) const

Get back the stored shapes.

NB modifies arguments.


Member Data Documentation

IPosition casa::ArrayShapeError::sh1 [private]

Definition at line 166 of file ArrayError.h.

IPosition casa::ArrayShapeError::sh2 [private]

Definition at line 166 of file ArrayError.h.


The documentation for this class was generated from the following file:
Generated on Mon Sep 1 22:43:38 2008 for NRAOCASA by  doxygen 1.5.1