amroc/hds/DCoords.h File Reference

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

#include "DAGHDefaults.h"
#include "lparx_copyright.h"
#include <iosfwd>
#include <cstdlib>
#include <cassert>

Go to the source code of this file.

Classes

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

Defines

#define DCoordsNULL   ((DCoords *)0)
#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)
std::ostream & operator<< (std::ostream &s, const DCoords &c)
std::istream & operator>> (std::istream &s, DCoords &c)

Detailed Description

Double precision coordinates of a point in the computational domain.

Author:
Manish Parashar

Define Documentation

#define DCoordsNULL   ((DCoords *)0)
#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);                                           \
     }
#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);                                           \
     }

Function Documentation

DCoords Max ( const DCoords a,
const DCoords b 
) [inline]

References DCoords::getmax().

DCoords Min ( const DCoords a,
const DCoords b 
) [inline]

References DCoords::getmin().

std::ostream& operator<< ( std::ostream &  s,
const DCoords c 
)
std::istream& operator>> ( std::istream &  s,
DCoords c 
)

References MATCH.

Generated on Thu Jun 30 02:19:00 2016 for AMROC's Hierachical Data Structures by  doxygen 1.6.3