#include <source/patchdata/edge/EdgeIndex.h>
Inheritance diagram for SAMRAI::pdat::EdgeIndex< DIM >:
Public Types | |
enum | { X = 0, Y = 1, Z = 2, Lower = 0, Upper = 1, LowerLeft = 0, LowerRight = 1, UpperLeft = 2, UpperRight = 3 } |
Public Member Functions | |
EdgeIndex () | |
EdgeIndex (const hier::Index< DIM > &rhs, const int axis, const int edge) | |
EdgeIndex (const EdgeIndex< DIM > &rhs) | |
EdgeIndex< DIM > & | operator= (const EdgeIndex< DIM > &rhs) |
~EdgeIndex () | |
int | getAxis () const |
void | setAxis (const int axis) |
hier::Index< DIM > | toCell (const int edge) const |
EdgeIndex< DIM > & | operator+= (const hier::IntVector< DIM > &rhs) |
EdgeIndex< DIM > | operator+ (const hier::IntVector< DIM > &rhs) const |
EdgeIndex< DIM > & | operator+= (const int rhs) |
EdgeIndex< DIM > | operator+ (const int rhs) const |
EdgeIndex< DIM > & | operator-= (const hier::IntVector< DIM > &rhs) |
EdgeIndex< DIM > | operator- (const hier::IntVector< DIM > &rhs) const |
EdgeIndex< DIM > & | operator-= (const int rhs) |
EdgeIndex< DIM > | operator- (const int rhs) const |
EdgeIndex< DIM > & | operator *= (const hier::IntVector< DIM > &rhs) |
EdgeIndex< DIM > | operator * (const hier::IntVector< DIM > &rhs) const |
EdgeIndex< DIM > & | operator *= (const int rhs) |
EdgeIndex< DIM > | operator * (const int rhs) const |
bool | operator== (const EdgeIndex< DIM > &rhs) const |
bool | operator!= (const EdgeIndex< DIM > &rhs) const |
|
|
|
The default constructor for a edge index creates an uninitialized index. |
|
Construct a edge index from a regular index, axis, and edge. The axis can be one of EdgeIndex<DIM>::X (0), EdgeIndex<DIM>::Y (1), or EdgeIndex<DIM>::Z (2). The edge argument can be one of the constants EdgeIndex<DIM>::LowerLeft (0), EdgeIndex<DIM>::LowerRight(1), EdgeIndex<DIM>::UpperLeft (2) or EdgeIndex<DIM>::UpperRight(3). |
|
The copy constructor creates a edge index equal to the argument. |
|
The edge index destructor does nothing interesting. |
|
The assignment operator sets the edge index equal to the argument. |
|
Get the axis for which this edge index is defined (X=0, Y=1, Z=2). |
|
Set the edge axis (X=0, Y=1, Z=2). |
|
For dimension 2, converts the edge index into the index on the lower side (argument edge = 0) or the upper side (argument edge = 1) of the edge. For dimension 3, converts the edge index into the index on the lower left (argument edge == 0), the lower right (argument edge == 1), the upper left (argument edge == 2), or the upper right (argument edge == 3) of thw edge. |
|
Plus-equals operator for a edge index and an integer vector. |
|
Plus operator for a edge index and an integer vector. |
|
Plus-equals operator for a edge index and an integer. Reimplemented from SAMRAI::hier::Index< DIM >. |
|
Plus operator for a edge index and an integer. Reimplemented from SAMRAI::hier::Index< DIM >. |
|
Minus-equals operator for a edge index and an integer vector. |
|
Minus operator for a edge index and an integer vector. |
|
Minus-equals operator for a edge index and an integer. Reimplemented from SAMRAI::hier::Index< DIM >. |
|
Minus operator for a edge index and an integer. Reimplemented from SAMRAI::hier::Index< DIM >. |
|
Times-equals operator for a edge index and an integer vector. |
|
Times operator for a edge index and an integer vector. |
|
Times-equals operator for a edge index and an integer. Reimplemented from SAMRAI::hier::Index< DIM >. |
|
Times operator for a edge index and an integer. Reimplemented from SAMRAI::hier::Index< DIM >. |
|
Returns true if two edge index objects are equal. All components and the corresponding edge axes must be the same for equality. |
|
Returns true if two edge index objects are not equal. Any of the components or axes may be different for inequality. |