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) |
Coords & | operator= (Coords const &rhs) |
Coords & | operator= (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
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] |
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
void Coords::max |
( |
Coords const & |
rhs |
) |
[inline] |
References rank.
Referenced by getmax(), BBox::intersects(), GridData< Type, 3 >::lin_interp(), GridData< Type, 2 >::lin_interp(), GridData< Type, 1 >::lin_interp(), BBox::operator*(), BBox::operator*=(), and BBox::operator+=().
void Coords::min |
( |
Coords const & |
rhs |
) |
[inline] |
Coords::operator int * |
( |
|
) |
const [inline] |
Coords::operator int * |
( |
|
) |
[inline] |
int Coords::operator!= |
( |
Coords const & |
rhs |
) |
const [inline] |
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] |
Coords& Coords::operator= |
( |
const int & |
rhs |
) |
[inline] |
int Coords::operator== |
( |
Coords const & |
rhs |
) |
const [inline] |
int Coords::operator> |
( |
Coords const & |
rhs |
) |
const [inline] |
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
coords Coords::c[2] = -c[0] |
The documentation for this class was generated from the following file: