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