#include <winstd.H>
#include <algorithm>
#include <cstdlib>
#include <iostream>
#include <BLassert.H>
#include <BoxLib.H>
#include <IntVect.H>
#include <IndexType.H>
#include <Utility.H>
Defines | |
#define | LLT0 (vect[0] < s[0]) |
#define | LLT1 ((vect[0] == s[0]) && (vect[1] < s[1])) |
#define | LLT2 ((vect[1] == s[1]) && (vect[2] < s[2])) |
#define | LGT0 (vect[0] > s[0]) |
#define | LGT1 ((vect[0] == s[0]) && (vect[1] > s[1])) |
#define | LGT2 ((vect[1] == s[1]) && (vect[2] > s[2])) |
#define | BL_IGNORE_MAX 100000 |
Functions | |
IntVect | operator+ (int s, const IntVect &p) |
Returns p + s. | |
IntVect | operator- (int s, const IntVect &p) |
Returns -p + s. | |
IntVect | operator* (int s, const IntVect &p) |
Returns p * s. | |
IntVect | BoxLib::scale (const IntVect &p, int s) |
Returns a IntVect obtained by multiplying each of the components of this IntVect by s. | |
IntVect | BoxLib::diagShift (const IntVect &p, int s) |
Returns IntVect obtained by adding s to each of the components of this IntVect. | |
IntVect | BoxLib::min (const IntVect &p1, const IntVect &p2) |
Returns the IntVect that is the component-wise minimum of two argument IntVects. | |
IntVect | BoxLib::max (const IntVect &p1, const IntVect &p2) |
Returns the IntVect that is the component-wise minimum of two argument IntVects. | |
IntVect | BoxLib::BASISV (int dir) |
Returns a basis vector in the given coordinate direction; eg. | |
IntVect | BoxLib::reflect (const IntVect &a, int ref_ix, int idir) |
Returns an IntVect that is the reflection of input in the plane which passes through ref and normal to the coordinate direction idir. | |
IntVect | BoxLib::coarsen (const IntVect &p, int s) |
Returns an IntVect that is the component-wise integer projection of p by s. | |
IntVect | BoxLib::coarsen (const IntVect &p1, const IntVect &p2) |
Returns an IntVect which is the component-wise integer projection of IntVect p1 by IntVect p2. | |
std::ostream & | operator<< (std::ostream &os, const IntVect &p) |
Print the IntVect to given output stream in ASCII. | |
std::istream & | operator>> (std::istream &is, IntVect &iv) |
Read next IntVect from given input stream. |
#define BL_IGNORE_MAX 100000 |
#define LGT0 (vect[0] > s[0]) |
Referenced by IntVect::lexGT().
#define LGT1 ((vect[0] == s[0]) && (vect[1] > s[1])) |
Referenced by IntVect::lexGT().
#define LGT2 ((vect[1] == s[1]) && (vect[2] > s[2])) |
Referenced by IntVect::lexGT().
#define LLT0 (vect[0] < s[0]) |
Referenced by IntVect::lexLT().
#define LLT1 ((vect[0] == s[0]) && (vect[1] < s[1])) |
Referenced by IntVect::lexLT().
#define LLT2 ((vect[1] == s[1]) && (vect[2] < s[2])) |
Referenced by IntVect::lexLT().
std::ostream& operator<< | ( | std::ostream & | os, | |
const IntVect & | p | |||
) |
std::istream& operator>> | ( | std::istream & | is, | |
IntVect & | iv | |||
) |