#include <IntVect.H>
Collaboration diagram for IntVect:
Public Methods | |
IntVect () | |
{\bf Constructors and Accessors} | |
~IntVect () | |
IntVect (D_DECL(int i, int j, int k)) | |
IntVect (const int *a) | |
const int * | dataPtr () const |
IntVect (const IntVect &rhs) | |
IntVect | copy () const |
IntVect & | operator= (const IntVect &rhs) |
int & | operator[] (int i) |
int | operator[] (int i) const |
void | setVal (int i, int val) |
const int * | getVect () const |
bool | operator== (const IntVect &p) const |
{\bf Comparison Operators} | |
bool | operator!= (const IntVect &p) const |
bool | operator< (const IntVect &p) const |
bool | operator<= (const IntVect &p) const |
bool | operator> (const IntVect &p) const |
bool | operator>= (const IntVect &p) const |
bool | lexLT (const IntVect &s) const |
bool | lexGT (const IntVect &s) const |
IntVect | operator+ () const |
{\bf Arithmetic Operators} | |
IntVect | operator- () const |
IntVect & | operator+= (int s) |
addition | |
IntVect & | operator+= (const IntVect &p) |
IntVect | operator+ (const IntVect &p) const |
IntVect | operator+ (int s) const |
IntVect & | operator-= (int s) |
subtraction | |
IntVect & | operator-= (const IntVect &p) |
IntVect | operator- (const IntVect &p) const |
IntVect | operator- (int s) const |
IntVect & | operator *= (int s) |
multiplication | |
IntVect & | operator *= (const IntVect &p) |
IntVect | operator * (const IntVect &p) const |
IntVect | operator * (int s) const |
IntVect & | operator/= (int s) |
division | |
IntVect & | operator/= (const IntVect &p) |
IntVect | operator/ (const IntVect &p) const |
IntVect | operator/ (int s) const |
IntVect & | min (const IntVect &p) |
other | |
IntVect & | max (const IntVect &p) |
IntVect & | scale (int s) |
IntVect & | reflect (int ref_ix, int idir) |
IntVect & | shift (int coord, int s) |
IntVect & | shift (const IntVect &iv) |
IntVect & | diagShift (int s) |
IntVect & | coarsen (const IntVect &p) |
IntVect & | coarsen (int p) |
void | printOn (std::ostream &os) const |
{\bf I/O Functions} | |
void | p () const |
void | dumpOn (std::ostream &os) const |
Static Public Methods | |
const IntVect | TheZeroVector () |
const IntVect | TheUnitVector () |
Static Public Attributes | |
const IntVect | Zero |
const IntVect | Unit |
Protected Attributes | |
int | vect [SpaceDim] |
Static Protected Attributes | |
const size_t | IntVectSize |
Friends | |
class | Box |
class | HDF5Handle |
class | VolIndex |
class | FaceIndex |
IntVect | operator+ (int s, const IntVect &p) |
IntVect | operator- (int s, const IntVect &p) |
IntVect | operator * (int s, const IntVect &p) |
IntVect | min (const IntVect &p1, const IntVect &p2) |
IntVect | max (const IntVect &p1, const IntVect &p2) |
IntVect | scale (const IntVect &p, int s) |
IntVect | reflect (const IntVect &a, int ref_ix, int idir) |
IntVect | diagShift (const IntVect &p, int s) |
IntVect | coarsen (const IntVect &p, int s) |
IntVect | coarsen (const IntVect &p1, const IntVect &p2) |
std::ostream & | operator<< (std::ostream &os, const IntVect &iv) |
std::istream & | operator>> (std::istream &os, IntVect &iv) |
IntVect | BASISV (int dir) |
{\bf IntVect Constants} |
|
{\bf Constructors and Accessors} Construct an IntVect whose components are uninitialized. |
|
Destructor |
|
Construct an IntVect given the specific values for its coordinates. D\_DECL is a macro that sets the constructor to take CH\_SPACEDIM arguments. |
|
Construct an IntVect setting the coordinates to the corresponding values in the integer array a. |
|
The copy constructor. |
|
Modify IntVect by component-wise integer projection. |
|
Modify IntVect by component-wise integer projection. |
|
|
|
only for sending to fortran |
|
Modifies this IntVect by adding a scalar s to each component. |
|
Print an IntVect to the ostream a bit more verbosely. |
|
Returns a const pointer to an array of coordinates of the IntVect. Useful for arguments to FORTRAN calls. |
|
Returns true if this IntVect is lexically greater than the argument. An IntVect MUST BE either lexically less than, lexically greater than, or equal to another IntVect.\ iv1 is lexically less than iv2 if: \ in 2-D: \ (iv1[0] > iv2[0]) || ((iv1[0] == iv2[0]) && (iv1[1] > iv2[1])); \ int 3-D: \ (iv1[0] > iv2[0]) || (iv1[0]==iv2[0] && ((iv1[1] > iv2[1] || ((iv1[1] == iv2[1]) && (iv1[2] > iv2[2]))))); \ |
|
Returns true if this IntVect is lexically less than the argument. An IntVect MUST BE either lexically less than, lexically greater than, or equal to another IntVect.\ iv1 is lexically less than iv2 if: \ in 2-D: \ (iv1[0] < iv2[0]) || ((iv1[0] == iv2[0]) && (iv1[1] < iv2[1])); \ in 3-D: \ (iv1[0] < iv2[0]) || (iv1[0]==iv2[0] && ((iv1[1] < iv2[1] || ((iv1[1] == iv2[1]) && (iv1[2] < iv2[2]))))); \ |
|
Modifies this IntVect by taking component-wise max with //IntVect argument. |
|
other Modifies this IntVect by taking component-wise min with IntVect argument. |
|
Returns an IntVect that is this IntVect with each component multiplied by a scalar. |
|
Returns component-wise product of this IntVect and argument. |
|
Modifies this IntVect by component-wise multiplication with argument. |
|
multiplication Modifies this IntVect by multiplication of a scalar to each component. |
|
Returns true if this IntVect is different from argument IntVect. All comparisons between analogous components must be satisfied. |
|
Return an IntVect that is this IntVect with a scalar added to each component. |
|
Returns component-wise sum of this IntVect and argument. |
|
{\bf Arithmetic Operators} Unary plus -- for completeness. |
|
Modifies this IntVect by component-wise addition with argument. |
|
addition Modifies this IntVect by addition of a scalar to each component. |
|
Returns an IntVect that is this IntVect with a scalar s subtracted from each component. |
|
Returns component-wise difference of this IntVect and argument. |
|
Unary Minus -- negates all components of this IntVect. |
|
Modifies this IntVect by component-wise subtraction with argument. |
|
subtraction Modifies this IntVect by subtraction of a scalar from each component. |
|
Returns component-wise division of this IntVect by scalar s. |
|
Returns component-wise division of this IntVect by IntVect argument. |
|
Modifies this IntVect by component-wise division with IntVect argument. |
|
division Modifies this IntVect by division by a scalar of each component. |
|
Returns true if this IntVect is less than argument IntVect. All comparisons between analogous components must be satisfied. Note that, since the comparison is componentwise, it is possible for an IntVect to be neither greater than, less than, nor equal to another. |
|
Returns true if this IntVect is less than or equal to argument IntVect. All comparisons between analogous components must be satisfied. Note that, since the comparison is componentwise, it is possible for an IntVect to be neither greater than or equal to, less than or equal to, nor equal to another. |
|
The assignment operator. |
|
{\bf Comparison Operators} Returns true if this IntVect is equivalent to argument IntVect. All comparisons between analogous components must be satisfied. |
|
Returns true if this IntVect is greater than argument IntVect. All comparisons between analogous components must be satisfied. Note that, since the comparison is componentwise, it is possible for an IntVect to be neither greater than, less than, nor equal to another. |
|
Returns true if this IntVect is greater than or equal to argument IntVect. All comparisons between analogous components must be satisfied. Note that, since the comparison is componentwise, it is possible for an IntVect to be neither greater than or equal to, less than or equal to, nor equal to another. |
|
Returns the i'th coordinate of the IntVect. |
|
Returns a modifiable lvalue reference to the i'th coordinate of the IntVect. |
|
Print an IntVect to the pout(). |
|
{\bf I/O Functions} Print an IntVect to the ostream. |
|
Modifies IntVect by reflecting it in the plane defined by the index ref\_ix and with normal in the direction of idir. Directions are zero-based. |
|
Modifies this IntVect by multiplying each component by a scalar. |
|
Set i'th coordinate of IntVect to val. |
|
Modifies this IntVect by component-wise addition with IntVect argument. |
|
Modifies this IntVect by adding s to component in given coordinate direction. |
|
|
|
|
|
{\bf IntVect Constants} Returns a basis vector in the given coordinate direction; eg. IntVect3d BASISV(1) == (0,1,0). Note that the coordinate directions are zero based. |
|
|
|
Returns an IntVect which is the component-wise integer projection of IntVect p1 by IntVect p2. |
|
Returns an IntVect that is the component-wise integer projection of p by s. |
|
Returns IntVect obtained by adding a scalar to each of the components of the given IntVect. |
|
|
|
|
|
Returns the IntVect that is the component-wise minimum of two argument IntVects. |
|
Returns the IntVect that is the component-wise minimum of two argument IntVects. |
|
Returns and IntVect that is an IntVect p with each component multiplied by a scalar s. |
|
Returns an IntVect that is an IntVect p with a scalar s added to each component. |
|
Returns -p + s. |
|
Print the IntVect to given output stream in ASCII. |
|
Read next IntVect from given input stream. |
|
Returns an IntVect that is the reflection of the given IntVect in the plane which passes through ref\_ix and normal to the coordinate direction idir. |
|
Returns an IntVect obtained by multiplying each of the components of the given IntVect by a scalar. |
|
|
|
|
|
This is an IntVect all of whose components are equal to one. |
|
|
|
This is an IntVect all of whose components are equal to zero. |