|
IBAMR
IBAMR version 0.19.
|
#include <EdgeIndex.h>

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) |
| 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 |
| Index< DIM > & | operator+= (const IntVector< DIM > &rhs) |
| Index< DIM > | operator+ (const IntVector< DIM > &rhs) const |
| Index< DIM > & | operator-= (const IntVector< DIM > &rhs) |
| Index< DIM > | operator- (const IntVector< DIM > &rhs) const |
| IntVector< DIM > | operator- () const |
| Index< DIM > & | operator*= (const IntVector< DIM > &rhs) |
| Index< DIM > | operator* (const IntVector< DIM > &rhs) const |
| Index< DIM > & | operator/= (const IntVector< DIM > &rhs) |
| Index< DIM > & | operator/= (const int rhs) |
| Index< DIM > | operator/ (const IntVector< DIM > &rhs) const |
| Index< DIM > | operator/ (const int rhs) const |
| int & | operator() (const int i) |
| const int & | operator() (const int i) const |
| operator int * () | |
| operator const int * () const | |
| bool | operator== (const IntVector< DIM > &rhs) const |
| bool | operator!= (const IntVector< DIM > &rhs) const |
| bool | operator< (const IntVector< DIM > &rhs) const |
| bool | operator<= (const IntVector< DIM > &rhs) const |
| bool | operator> (const IntVector< DIM > &rhs) const |
| bool | operator>= (const IntVector< DIM > &rhs) const |
| void | min (const IntVector< DIM > &rhs) |
| int | min () const |
| void | max (const IntVector< DIM > &rhs) |
| int | max () const |
| int | getProduct () const |
Static Public Member Functions | |
| static IntVector< DIM > | min (const IntVector< DIM > &a, const IntVector< DIM > &b) |
| static IntVector< DIM > | max (const IntVector< DIM > &a, const IntVector< DIM > &b) |
Private Attributes | |
| int | d_axis |
| int | d_vector [DIM] |
Class EdgeIndex<DIM> implements a simple n-dimensional integer vector for edge centered variables. Edge indices contain an integer index location in AMR index space along with the designated edge axis (X=0, Y=1, or Z=2). See the edge box geometry class for more information about the mapping between the AMR index space and the edge indices.
| anonymous enum |
| SAMRAI::pdat::EdgeIndex< DIM >::EdgeIndex | ( | ) |
The default constructor for a edge index creates an uninitialized index.
| SAMRAI::pdat::EdgeIndex< DIM >::EdgeIndex | ( | const hier::Index< DIM > & | rhs, |
| const int | axis, | ||
| const int | edge | ||
| ) |
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).
| SAMRAI::pdat::EdgeIndex< DIM >::EdgeIndex | ( | const EdgeIndex< DIM > & | rhs | ) |
The copy constructor creates a edge index equal to the argument.
| EdgeIndex<DIM>& SAMRAI::pdat::EdgeIndex< DIM >::operator= | ( | const EdgeIndex< DIM > & | rhs | ) |
The assignment operator sets the edge index equal to the argument.
| int SAMRAI::pdat::EdgeIndex< DIM >::getAxis | ( | ) | const |
Get the axis for which this edge index is defined (X=0, Y=1, Z=2).
| void SAMRAI::pdat::EdgeIndex< DIM >::setAxis | ( | const int | axis | ) |
Set the edge axis (X=0, Y=1, Z=2).
| hier::Index<DIM> SAMRAI::pdat::EdgeIndex< DIM >::toCell | ( | const int | edge | ) | const |
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.
| EdgeIndex<DIM>& SAMRAI::pdat::EdgeIndex< DIM >::operator+= | ( | const hier::IntVector< DIM > & | rhs | ) |
Plus-equals operator for a edge index and an integer vector.
| EdgeIndex<DIM> SAMRAI::pdat::EdgeIndex< DIM >::operator+ | ( | const hier::IntVector< DIM > & | rhs | ) | const |
Plus operator for a edge index and an integer vector.
| EdgeIndex<DIM>& SAMRAI::pdat::EdgeIndex< DIM >::operator+= | ( | const int | rhs | ) |
Plus-equals operator for a edge index and an integer.
| EdgeIndex<DIM> SAMRAI::pdat::EdgeIndex< DIM >::operator+ | ( | const int | rhs | ) | const |
Plus operator for a edge index and an integer.
| EdgeIndex<DIM>& SAMRAI::pdat::EdgeIndex< DIM >::operator-= | ( | const hier::IntVector< DIM > & | rhs | ) |
Minus-equals operator for a edge index and an integer vector.
| EdgeIndex<DIM> SAMRAI::pdat::EdgeIndex< DIM >::operator- | ( | const hier::IntVector< DIM > & | rhs | ) | const |
Minus operator for a edge index and an integer vector.
| EdgeIndex<DIM>& SAMRAI::pdat::EdgeIndex< DIM >::operator-= | ( | const int | rhs | ) |
Minus-equals operator for a edge index and an integer.
| EdgeIndex<DIM> SAMRAI::pdat::EdgeIndex< DIM >::operator- | ( | const int | rhs | ) | const |
Minus operator for a edge index and an integer.
| EdgeIndex<DIM>& SAMRAI::pdat::EdgeIndex< DIM >::operator*= | ( | const hier::IntVector< DIM > & | rhs | ) |
Times-equals operator for a edge index and an integer vector.
| EdgeIndex<DIM> SAMRAI::pdat::EdgeIndex< DIM >::operator* | ( | const hier::IntVector< DIM > & | rhs | ) | const |
Times operator for a edge index and an integer vector.
| EdgeIndex<DIM>& SAMRAI::pdat::EdgeIndex< DIM >::operator*= | ( | const int | rhs | ) |
Times-equals operator for a edge index and an integer.
| EdgeIndex<DIM> SAMRAI::pdat::EdgeIndex< DIM >::operator* | ( | const int | rhs | ) | const |
Times operator for a edge index and an integer.
| bool SAMRAI::pdat::EdgeIndex< DIM >::operator== | ( | const EdgeIndex< DIM > & | rhs | ) | const |
Returns true if two edge index objects are equal. All components and the corresponding edge axes must be the same for equality.
| bool SAMRAI::pdat::EdgeIndex< DIM >::operator!= | ( | const EdgeIndex< DIM > & | rhs | ) | const |
Returns true if two edge index objects are not equal. Any of the components or axes may be different for inequality.
|
inherited |
Plus-equals operator for an index and an integer vector.
|
inherited |
Plus operator for an index and an integer vector.
|
inherited |
Minus-equals operator for an index and an integer vector.
|
inherited |
Minus operator for an index and an integer vector.
|
inherited |
Unary minus to negate an integer vector.
|
inherited |
Times-equals operator for an index and an integer vector.
|
inherited |
Times operator for an index and an integer vector.
|
inherited |
Assign-quotient operator for an index and an integer vector.
|
inherited |
Assign-quotient operator for an index and an integer.
|
inherited |
Quotient operator for an index and an integer vector.
|
inherited |
Quotient operator for an index and an integer.
|
inherited |
Return the specified component of the vector. No bounds checking.
|
inherited |
Return the specified component of the vector as a const integer. No bounds checking.
|
inherited |
Return a pointer to the beginning of the vector data values.
|
inherited |
Return a const pointer to the beginning of the vector data values.
|
inherited |
Returns true if two vector objects are equal. All components must be the same for equality.
|
inherited |
Returns true if two vector objects are not equal. Any of the components may be different for inequality.
|
inherited |
Returns true if each integer in vector is less than corresponding integer in comparison vector.
|
inherited |
Returns true if each integer in vector is less or equal to corresponding integer in comparison vector.
|
inherited |
Returns true if each integer in vector is greater than corresponding integer in comparison vector.
|
inherited |
Returns true if each integer in vector is greater or equal to corresponding integer in comparison vector.
|
inherited |
Return the component-wise minimum of two integer vector objects.
|
inherited |
Return the minimum entry in an integer vector.
|
staticinherited |
Utility function to take the minimum of two integer vector objects.
|
inherited |
Return the component-wise maximum of two integer vector objects.
|
inherited |
Return the maximum entry in an integer vector.
|
staticinherited |
Utility function to take the maximum of two integer vector objects.
|
inherited |
Return the product of the entries in the integer vector.
|
private |
|
privateinherited |
1.8.17