AMROC Main     Blockstructured Adaptive Mesh Refinement in object-oriented C++


Main Page   Class Hierarchy   Compound List   File List  

DCoords.h File Reference

Double precision coordinates of a point in the computational domain. More...

#include "DAGHDefaults.h"
#include "lparx_copyright.h"
#include <iostream.h>
#include <assert.h>

Include dependency graph for DCoords.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  DCoords
 This class implements the double precision coordinates of a point in the computational domain. More...


Defines

#define DCoordsNULL   ((DCoords *)NULL)
#define Point_Point_Operator(ope, op)
#define Point_Scalar_Operator(ope, op)

Functions

DCoords Max (const DCoords &a, const DCoords &b)
DCoords Min (const DCoords &a, const DCoords &b)
ostream & operator<< (ostream &s, const DCoords &c)
istream & operator>> (istream &s, DCoords &c)


Detailed Description

Double precision coordinates of a point in the computational domain.

Author:
Manish Parashar

Definition in file DCoords.h.


Define Documentation

#define Point_Point_Operator ope,
op   
 

Value:

DCoords& operator ope (DCoords const &rhs)                   \
     {                                                          \
      c[0] ope rhs.c[0];                                        \
      if (rank>1) c[1] ope rhs.c[1];                            \
      if (rank>2) c[2] ope rhs.c[2];                            \
      return(*this);                                            \
     }                                                          \
   DCoords operator op (DCoords const &rhs) const               \
     {                                                          \
      DCoords coords(*this);                                    \
      coords ope rhs;                                           \
      return(coords);                                           \
     }

Definition at line 80 of file DCoords.h.

#define Point_Scalar_Operator ope,
op   
 

Value:

DCoords& operator ope (double const rhs)                     \
     {                                                          \
      c[0] ope rhs;                                             \
      if (rank>1) c[1] ope rhs;                                 \
      if (rank>2) c[2] ope rhs;                                 \
      return(*this);                                            \
     }                                                          \
   DCoords operator op (double const rhs) const                 \
     {                                                          \
      DCoords coords(*this);                                    \
      coords ope rhs;                                           \
      return(coords);                                           \
     }

Definition at line 101 of file DCoords.h.


Quickstart     Users Guide     Programmers Reference     Installation      Examples     Download



AMROC Main      Home      Contact
last update: 06/01/04