Coords Class Reference

Implementation of a point in the computational domain in global index coordinates. More...

#include <Coords.h>

List of all members.

Public Types

typedef CoordsIterator Iterator

Public Member Functions

 Coords (void)
 Coords (int const r, int const val)
 Coords (int const r, int const *val)
 Coords (Coords const &other)
 Coords (int const r, int const i, int const j)
 Coords (int const r, int const i, int const j, int const k)
Coordsoperator= (Coords const &rhs)
Coordsoperator= (const int &rhs)
 ~Coords ()
int & operator() (int const i)
int operator() (int const i) const
int * operator() (void)
int * operator() (void) const
 operator int * ()
 operator int * () const
 Point_Point_Operator (+=,+) Point_Point_Operator(-
Point_Point_Operator * Point_Point_Operator (/=,/) Point_Point_Operator(%=,%)#define Point_Scalar_Operator(ope, op) Point_Scalar_Operator(+=,+) Point_Scalar_Operator(-=,-) Point_Scalar_Operator(*=,*) Point_Scalar_Operator(/=,/) Point_Scalar_Operator(%=,%) inline Coords operator-() const {Coords coords(rank, 0
 return (coords)
int operator!= (Coords const &rhs) const
int operator== (Coords const &rhs) const
int operator> (Coords const &rhs) const
int operator< (Coords const &rhs) const
void setval (int const val)
void setval (Coords const rhs)
void min (Coords const &rhs)
void max (Coords const &rhs)
Coords getmin (Coords const &rhs) const
Coords getmax (Coords const &rhs) const

Public Attributes

int rank
coords c [0] = -c[0]

Static Public Attributes

static class Coords _empty_coords

Friends

std::istream & operator>> (std::istream &s, Coords &c)
std::ostream & operator<< (std::ostream &s, const Coords &c)
std::ifstream & operator>> (std::ifstream &s, Coords &c)
std::ofstream & operator<< (std::ofstream &s, const Coords &c)

Detailed Description

Implementation of a point in the computational domain in global index coordinates.

This class is sort of an adaptation and extension of the from Class RegionX of LPARX developed by Scott Kohn (skohn-at-cs.ucsd.edu)

Author:
Manish Parashar
Date:
Jun-1997

Member Typedef Documentation

typedef CoordsIterator Coords::Iterator

Constructor & Destructor Documentation

Coords::Coords ( void   )  [inline]
Coords::Coords ( int const   r,
int const   val 
) [inline]
Coords::Coords ( int const   r,
int const *  val 
) [inline]

References rank.

Coords::Coords ( Coords const &  other  )  [inline]
Coords::Coords ( int const   r,
int const   i,
int const   j 
) [inline]
Coords::Coords ( int const   r,
int const   i,
int const   j,
int const   k 
) [inline]
Coords::~Coords (  )  [inline]

Member Function Documentation

Coords Coords::getmax ( Coords const &  rhs  )  const [inline]

References max().

Referenced by Max().

Coords Coords::getmin ( Coords const &  rhs  )  const [inline]

References min().

Referenced by Min().

void Coords::min ( Coords const &  rhs  )  [inline]
Coords::operator int * (  )  const [inline]
Coords::operator int * (  )  [inline]
int Coords::operator!= ( Coords const &  rhs  )  const [inline]

References rank.

int* Coords::operator() ( void   )  const [inline]
int* Coords::operator() ( void   )  [inline]
int Coords::operator() ( int const   i  )  const [inline]
int& Coords::operator() ( int const   i  )  [inline]
int Coords::operator< ( Coords const &  rhs  )  const [inline]

References rank.

Coords& Coords::operator= ( const int &  rhs  )  [inline]
Coords& Coords::operator= ( Coords const &  rhs  )  [inline]

References rank.

int Coords::operator== ( Coords const &  rhs  )  const [inline]
int Coords::operator> ( Coords const &  rhs  )  const [inline]

References rank.

Point_Point_Operator* Coords::Point_Point_Operator ( ,
 
) const
Coords::Point_Point_Operator ( ,
 
)
Coords::return ( coords   ) 
void Coords::setval ( Coords const   rhs  )  [inline]
void Coords::setval ( int const   val  )  [inline]

Friends And Related Function Documentation

std::ofstream& operator<< ( std::ofstream &  s,
const Coords c 
) [friend]
std::ostream& operator<< ( std::ostream &  s,
const Coords c 
) [friend]
std::ifstream& operator>> ( std::ifstream &  s,
Coords c 
) [friend]
std::istream& operator>> ( std::istream &  s,
Coords c 
) [friend]

Member Data Documentation

class Coords Coords::_empty_coords [static]
coords Coords::c[2] = -c[0]

The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:19:00 2016 for AMROC's Hierachical Data Structures by  doxygen 1.6.3