Main Page | User's guide | Class Hierarchy | Class List | File List | Class Members

Multivac::CMesh< T > Class Template Reference

Base class for meshes. More...

#include <baseclass.hxx>

Inheritance diagram for Multivac::CMesh< T >:

Multivac::COrthogonalMesh< T > List of all members.

Public Member Functions

 CMesh () throw ()
 Default constructor.

 CMesh (T Xmin, T Xmax, T Ymin, T Ymax) throw ()
 Main constructor.

virtual ~CMesh () throw ()
 Destructor.

GetXmin () const
 Returns the minimum abscissa.

GetXmax () const
 Returns the maximum abscissa.

GetYmin () const
 Returns the minimum ordinate.

GetYmax () const
 Returns the maximum ordinate.

void SetXmin (T Xmin_)
 Sets the minimum abscissa.

void SetXmax (T Xmax_)
 Sets the maximum abscissa.

void SetYmin (T Ymin_)
 Sets the minimum ordinate.

void SetYmax (T Ymax_)
 Sets the maximum ordinate.

GetDelta_x () const
 Returns the spacestep along (x'x).

void SetDelta_x (T Delta_x_)
 Sets the spacestep along (x'x).

int GetNx () const
 Returns the number of points along (x'x).

GetDelta_y () const
 Returns the space step along (y'y).

void SetDelta_y (T Delta_y_)
 Sets the spacestep along (y'y).

int GetNy () const
 Returns the number of points along (y'y).

void GetClosestUpperPoint (T &x, T &y)
 Returns the closest "upper" mesh-point to (x, y).

virtual void Save (string XFile, string YFile) const=0
virtual void SaveNonOrthogonalMesh (string PointsFile, string EdgesFile, string TrianglesFile) const=0

Protected Attributes

Xmin
 Minimum abscissa.

Xmax
 Maximum abscissa.

Ymin
 Minimum ordinate.

Ymax
 Maximum ordinate.

int Nx
 Number of points along (x'x).

Delta_x
 Space step along (x'x).

int Ny
 Number of points along (y'y).

Delta_y
 Space step along (y'y).


Detailed Description

template<class T>
class Multivac::CMesh< T >

Base class for meshes.

Defines meshes interface. All meshes must be defined in the same way.

Note:
This is an abstract class.


Constructor & Destructor Documentation

template<class T>
Multivac::CMesh< T >::CMesh Xmin_,
Xmax_,
Ymin_,
Ymax_
throw ()
 

Main constructor.

Parameters:
Xmin_ minimum abscissa.
Xmax_ maximum abscissa.
Ymin_ minimum ordinate.
Ymax_ maximum ordinate.


Member Function Documentation

template<class T>
void Multivac::CMesh< T >::GetClosestUpperPoint T &  x,
T &  y
[inline]
 

Returns the closest "upper" mesh-point to (x, y).

Let B = (x_B, y_B) be the closest mesh-point to A = (x, y) such that (x_B > x) and (y_B > y). On exit, (x, y) = B.

template<class T>
T Multivac::CMesh< T >::GetDelta_x  )  const [inline]
 

Returns the spacestep along (x'x).

Returns:
the spacestep along (x'x).

template<class T>
T Multivac::CMesh< T >::GetDelta_y  )  const [inline]
 

Returns the space step along (y'y).

Returns:
the space step along (y'y).

template<class T>
int Multivac::CMesh< T >::GetNx  )  const [inline]
 

Returns the number of points along (x'x).

Returns:
the number of points along (x'x).

template<class T>
int Multivac::CMesh< T >::GetNy  )  const [inline]
 

Returns the number of points along (y'y).

Returns:
the number of points along (y'y).

template<class T>
T Multivac::CMesh< T >::GetXmax  )  const [inline]
 

Returns the maximum abscissa.

Returns:
Maximum abscissa.

template<class T>
T Multivac::CMesh< T >::GetXmin  )  const [inline]
 

Returns the minimum abscissa.

Returns:
Minimum abscissa.

template<class T>
T Multivac::CMesh< T >::GetYmax  )  const [inline]
 

Returns the maximum ordinate.

Returns:
Maximum ordinate.

template<class T>
T Multivac::CMesh< T >::GetYmin  )  const [inline]
 

Returns the minimum ordinate.

Returns:
Minimum ordinate.

template<class T>
void Multivac::CMesh< T >::SetDelta_x Delta_x_  )  [inline]
 

Sets the spacestep along (x'x).

Parameters:
the new spacestep along (x'x).

template<class T>
void Multivac::CMesh< T >::SetDelta_y Delta_y_  )  [inline]
 

Sets the spacestep along (y'y).

Parameters:
the new spacestep along (y'y).

template<class T>
void Multivac::CMesh< T >::SetXmax Xmax_  )  [inline]
 

Sets the maximum abscissa.

Parameters:
XMax_ the new value of Xmax.

template<class T>
void Multivac::CMesh< T >::SetXmin Xmin_  )  [inline]
 

Sets the minimum abscissa.

Parameters:
Xmin_ the new value of Xmin.

template<class T>
void Multivac::CMesh< T >::SetYmax Ymax_  )  [inline]
 

Sets the maximum ordinate.

Parameters:
YMax_ the new value of Ymax.

template<class T>
void Multivac::CMesh< T >::SetYmin Ymin_  )  [inline]
 

Sets the minimum ordinate.

Parameters:
Ymin_ the new value of Ymin.


The documentation for this class was generated from the following files:
Generated on Mon Apr 19 01:59:16 2004 for Multivac by doxygen 1.3.6-20040222