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


Main Page   Class Hierarchy   Compound List   File List  

Coords.h File Reference

A point in the computational domain in global index coordinates. More...

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

Include dependency graph for Coords.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  Coords
 Implementation of a point in the computational domain in global index coordinates. More...


Defines

#define CoordsNULL   ((Coords *)NULL)
#define NULL   0
#define Point_Point_Operator(ope, op)
#define Point_Scalar_Operator(ope, op)

Functions

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


Detailed Description

A point in the computational domain in global index coordinates.

Author:
Manish Parashar

Definition in file Coords.h.


Define Documentation

#define Point_Point_Operator ope,
op   
 

Value:

Coords& operator ope (Coords 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);                                            \
     }                                                          \
   Coords operator op (Coords const &rhs) const                 \
     {                                                          \
      Coords coords(*this);                                     \
      coords ope rhs;                                           \
      return(coords);                                           \
     }

Definition at line 104 of file Coords.h.

#define Point_Scalar_Operator ope,
op   
 

Value:

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

Definition at line 126 of file Coords.h.


Quickstart     Users Guide     Programmers Reference     Installation      Examples     Download



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