IBAMR  IBAMR version 0.19.
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SAMRAI::pdat::SideIndex< DIM > Class Template Reference

#include <ibtk/IndexUtilities.h>

Inheritance diagram for SAMRAI::pdat::SideIndex< DIM >:
Inheritance graph
[legend]

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)
 
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
 
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
 
intoperator() (const int i)
 
const intoperator() (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]
 

Detailed Description

template<int DIM>
class SAMRAI::pdat::SideIndex< DIM >

Class SideIndex<DIM> implements a simple n-dimensional integer vector for side centered variables. Side indices contain an integer index location in AMR index space along with the designated side axis (X=0, Y=1, or Z=2). See the side box geometry class for more information about the mapping between the AMR index space and the side indices.

See also
hier::Index
pdat::SideData
pdat::SideGeometry
pdat::SideIterator

Member Enumeration Documentation

◆ anonymous enum

template<int DIM>
anonymous enum
Enumerator
Lower 
Upper 

Constructor & Destructor Documentation

◆ SideIndex() [1/3]

template<int DIM>
SAMRAI::pdat::SideIndex< DIM >::SideIndex ( )

The default constructor for a side index creates an uninitialized index.

◆ SideIndex() [2/3]

template<int DIM>
SAMRAI::pdat::SideIndex< DIM >::SideIndex ( const hier::Index< DIM > &  rhs,
const int  axis,
const int  side 
)

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).

◆ SideIndex() [3/3]

template<int DIM>
SAMRAI::pdat::SideIndex< DIM >::SideIndex ( const SideIndex< DIM > &  rhs)

The copy constructor creates a side index equal to the argument.

Member Function Documentation

◆ operator=()

template<int DIM>
SideIndex<DIM>& SAMRAI::pdat::SideIndex< DIM >::operator= ( const SideIndex< DIM > &  rhs)

The assignment operator sets the side index equal to the argument.

◆ getAxis()

template<int DIM>
int SAMRAI::pdat::SideIndex< DIM >::getAxis ( ) const

Get the axis for which this side index is defined (X=0, Y=1, Z=2).

◆ setAxis()

template<int DIM>
void SAMRAI::pdat::SideIndex< DIM >::setAxis ( const int  axis)

Set the side axis (X=0, Y=1, Z=2).

◆ toCell()

template<int DIM>
hier::Index<DIM> SAMRAI::pdat::SideIndex< DIM >::toCell ( const int  side) const

Convert the side index into the index on the left hand side (argument side == 0) or the right hand side (argument side == 1).

◆ operator+=() [1/3]

template<int DIM>
SideIndex<DIM>& SAMRAI::pdat::SideIndex< DIM >::operator+= ( const hier::IntVector< DIM > &  rhs)

Plus-equals operator for a side index and an integer vector.

◆ operator+() [1/3]

template<int DIM>
SideIndex<DIM> SAMRAI::pdat::SideIndex< DIM >::operator+ ( const hier::IntVector< DIM > &  rhs) const

Plus operator for a side index and an integer vector.

◆ operator+=() [2/3]

template<int DIM>
SideIndex<DIM>& SAMRAI::pdat::SideIndex< DIM >::operator+= ( const int  rhs)

Plus-equals operator for a side index and an integer.

◆ operator+() [2/3]

template<int DIM>
SideIndex<DIM> SAMRAI::pdat::SideIndex< DIM >::operator+ ( const int  rhs) const

Plus operator for a side index and an integer.

◆ operator-=() [1/3]

template<int DIM>
SideIndex<DIM>& SAMRAI::pdat::SideIndex< DIM >::operator-= ( const hier::IntVector< DIM > &  rhs)

Minus-equals operator for a side index and an integer vector.

◆ operator-() [1/4]

template<int DIM>
SideIndex<DIM> SAMRAI::pdat::SideIndex< DIM >::operator- ( const hier::IntVector< DIM > &  rhs) const

Minus operator for a side index and an integer vector.

◆ operator-=() [2/3]

template<int DIM>
SideIndex<DIM>& SAMRAI::pdat::SideIndex< DIM >::operator-= ( const int  rhs)

Minus-equals operator for a side index and an integer.

◆ operator-() [2/4]

template<int DIM>
SideIndex<DIM> SAMRAI::pdat::SideIndex< DIM >::operator- ( const int  rhs) const

Minus operator for a side index and an integer.

◆ operator*=() [1/3]

template<int DIM>
SideIndex<DIM>& SAMRAI::pdat::SideIndex< DIM >::operator*= ( const hier::IntVector< DIM > &  rhs)

Times-equals operator for a side index and an integer vector.

◆ operator*() [1/3]

template<int DIM>
SideIndex<DIM> SAMRAI::pdat::SideIndex< DIM >::operator* ( const hier::IntVector< DIM > &  rhs) const

Times operator for a side index and an integer vector.

◆ operator*=() [2/3]

template<int DIM>
SideIndex<DIM>& SAMRAI::pdat::SideIndex< DIM >::operator*= ( const int  rhs)

Times-equals operator for a side index and an integer.

◆ operator*() [2/3]

template<int DIM>
SideIndex<DIM> SAMRAI::pdat::SideIndex< DIM >::operator* ( const int  rhs) const

Times operator for a side index and an integer.

◆ operator==() [1/2]

template<int DIM>
bool SAMRAI::pdat::SideIndex< DIM >::operator== ( const SideIndex< DIM > &  rhs) const

Returns true if two side index objects are equal. All components and the corresponding side axes must be the same for equality.

◆ operator!=() [1/2]

template<int DIM>
bool SAMRAI::pdat::SideIndex< DIM >::operator!= ( const SideIndex< DIM > &  rhs) const

Returns true if two side index objects are not equal. Any of the components or axes may be different for inequality.

◆ operator+=() [3/3]

template<int DIM>
Index<DIM>& SAMRAI::hier::Index< DIM >::operator+= ( const IntVector< DIM > &  rhs)
inherited

Plus-equals operator for an index and an integer vector.

◆ operator+() [3/3]

template<int DIM>
Index<DIM> SAMRAI::hier::Index< DIM >::operator+ ( const IntVector< DIM > &  rhs) const
inherited

Plus operator for an index and an integer vector.

◆ operator-=() [3/3]

template<int DIM>
Index<DIM>& SAMRAI::hier::Index< DIM >::operator-= ( const IntVector< DIM > &  rhs)
inherited

Minus-equals operator for an index and an integer vector.

◆ operator-() [3/4]

template<int DIM>
Index<DIM> SAMRAI::hier::Index< DIM >::operator- ( const IntVector< DIM > &  rhs) const
inherited

Minus operator for an index and an integer vector.

◆ operator-() [4/4]

template<int DIM>
IntVector<DIM> SAMRAI::hier::IntVector< DIM >::operator- ( ) const
inherited

Unary minus to negate an integer vector.

◆ operator*=() [3/3]

template<int DIM>
Index<DIM>& SAMRAI::hier::Index< DIM >::operator*= ( const IntVector< DIM > &  rhs)
inherited

Times-equals operator for an index and an integer vector.

◆ operator*() [3/3]

template<int DIM>
Index<DIM> SAMRAI::hier::Index< DIM >::operator* ( const IntVector< DIM > &  rhs) const
inherited

Times operator for an index and an integer vector.

◆ operator/=() [1/2]

template<int DIM>
Index<DIM>& SAMRAI::hier::Index< DIM >::operator/= ( const IntVector< DIM > &  rhs)
inherited

Assign-quotient operator for an index and an integer vector.

◆ operator/=() [2/2]

template<int DIM>
Index<DIM>& SAMRAI::hier::Index< DIM >::operator/= ( const int  rhs)
inherited

Assign-quotient operator for an index and an integer.

◆ operator/() [1/2]

template<int DIM>
Index<DIM> SAMRAI::hier::Index< DIM >::operator/ ( const IntVector< DIM > &  rhs) const
inherited

Quotient operator for an index and an integer vector.

◆ operator/() [2/2]

template<int DIM>
Index<DIM> SAMRAI::hier::Index< DIM >::operator/ ( const int  rhs) const
inherited

Quotient operator for an index and an integer.

◆ operator()() [1/2]

template<int DIM>
int& SAMRAI::hier::IntVector< DIM >::operator() ( const int  i)
inherited

Return the specified component of the vector. No bounds checking.

◆ operator()() [2/2]

template<int DIM>
const int& SAMRAI::hier::IntVector< DIM >::operator() ( const int  i) const
inherited

Return the specified component of the vector as a const integer. No bounds checking.

◆ operator int *()

template<int DIM>
SAMRAI::hier::IntVector< DIM >::operator int * ( )
inherited

Return a pointer to the beginning of the vector data values.

◆ operator const int *()

template<int DIM>
SAMRAI::hier::IntVector< DIM >::operator const int * ( ) const
inherited

Return a const pointer to the beginning of the vector data values.

◆ operator==() [2/2]

template<int DIM>
bool SAMRAI::hier::IntVector< DIM >::operator== ( const IntVector< DIM > &  rhs) const
inherited

Returns true if two vector objects are equal. All components must be the same for equality.

◆ operator!=() [2/2]

template<int DIM>
bool SAMRAI::hier::IntVector< DIM >::operator!= ( const IntVector< DIM > &  rhs) const
inherited

Returns true if two vector objects are not equal. Any of the components may be different for inequality.

◆ operator<()

template<int DIM>
bool SAMRAI::hier::IntVector< DIM >::operator< ( const IntVector< DIM > &  rhs) const
inherited

Returns true if each integer in vector is less than corresponding integer in comparison vector.

◆ operator<=()

template<int DIM>
bool SAMRAI::hier::IntVector< DIM >::operator<= ( const IntVector< DIM > &  rhs) const
inherited

Returns true if each integer in vector is less or equal to corresponding integer in comparison vector.

◆ operator>()

template<int DIM>
bool SAMRAI::hier::IntVector< DIM >::operator> ( const IntVector< DIM > &  rhs) const
inherited

Returns true if each integer in vector is greater than corresponding integer in comparison vector.

◆ operator>=()

template<int DIM>
bool SAMRAI::hier::IntVector< DIM >::operator>= ( const IntVector< DIM > &  rhs) const
inherited

Returns true if each integer in vector is greater or equal to corresponding integer in comparison vector.

◆ min() [1/3]

template<int DIM>
void SAMRAI::hier::IntVector< DIM >::min ( const IntVector< DIM > &  rhs)
inherited

Return the component-wise minimum of two integer vector objects.

◆ min() [2/3]

template<int DIM>
int SAMRAI::hier::IntVector< DIM >::min ( ) const
inherited

Return the minimum entry in an integer vector.

◆ min() [3/3]

template<int DIM>
static IntVector<DIM> SAMRAI::hier::IntVector< DIM >::min ( const IntVector< DIM > &  a,
const IntVector< DIM > &  b 
)
staticinherited

Utility function to take the minimum of two integer vector objects.

◆ max() [1/3]

template<int DIM>
void SAMRAI::hier::IntVector< DIM >::max ( const IntVector< DIM > &  rhs)
inherited

Return the component-wise maximum of two integer vector objects.

◆ max() [2/3]

template<int DIM>
int SAMRAI::hier::IntVector< DIM >::max ( ) const
inherited

Return the maximum entry in an integer vector.

◆ max() [3/3]

template<int DIM>
static IntVector<DIM> SAMRAI::hier::IntVector< DIM >::max ( const IntVector< DIM > &  a,
const IntVector< DIM > &  b 
)
staticinherited

Utility function to take the maximum of two integer vector objects.

◆ getProduct()

template<int DIM>
int SAMRAI::hier::IntVector< DIM >::getProduct ( ) const
inherited

Return the product of the entries in the integer vector.

Member Data Documentation

◆ d_axis

template<int DIM>
int SAMRAI::pdat::SideIndex< DIM >::d_axis
private

◆ d_vector

template<int DIM>
int SAMRAI::hier::IntVector< DIM >::d_vector[DIM]
privateinherited

The documentation for this class was generated from the following file: