FaceIndex Class Reference

#include <FaceIndex.H>

Collaboration diagram for FaceIndex:

Collaboration graph
[legend]

List of all members.


Detailed Description

FaceIndex is a very lightweight object used to distinguish faces. It has two VolIndex (s) and a direction and a way to access them.

Public Member Functions

 FaceIndex (const VolIndex &a_vof1, const VolIndex &a_vof2, const int &a_direction)
void define (const VolIndex &a_vof1, const VolIndex &a_vof2, const int &a_direction)
 FaceIndex ()
 FaceIndex (const FaceIndex &a_facein)
void define (const FaceIndex &a_facein)
 ~FaceIndex ()
FaceIndexoperator= (const FaceIndex &a_facein)
bool operator== (const FaceIndex &a_facein) const
bool operator!= (const FaceIndex &a_facein) const
const int & direction () const
const bool & isDefined () const
const bool & isBoundary () const
const int & cellIndex (const Side::LoHiSide &a_sd) const
const IntVectgridIndex (const Side::LoHiSide &a_sd) const
VolIndex getVoF (const Side::LoHiSide &a_sd) const

Static Public Member Functions

static int initializeOffsets ()

Static Public Attributes

static size_t lo_offset
static size_t hi_offset
static size_t rest_offset

Private Attributes

IntVect m_loiv
 the intvect of the low vof
IntVect m_hiiv
 the intvect of the high vof
int m_loIndex
int m_hiIndex
int m_direction
 direction of the face.
bool m_isDefined
bool m_isBoundary

Friends

bool operator< (const FaceIndex &f1, const FaceIndex &f2)
ostream & operator<< (ostream &out, const FaceIndex &fi)

Constructor & Destructor Documentation

FaceIndex::FaceIndex ( const VolIndex a_vof1,
const VolIndex a_vof2,
const int &  a_direction 
)

if both cellindexes of the vofs are >= 0, then the face is interior. otherwise the face is a boundary face.

FaceIndex::FaceIndex (  ) 

FaceIndex::FaceIndex ( const FaceIndex a_facein  ) 

FaceIndex::~FaceIndex (  ) 


Member Function Documentation

void FaceIndex::define ( const VolIndex a_vof1,
const VolIndex a_vof2,
const int &  a_direction 
)

if both cellindexes of the vofs are >= 0, then the face is interior. otherwise the face is a boundary face.

void FaceIndex::define ( const FaceIndex a_facein  ) 

FaceIndex& FaceIndex::operator= ( const FaceIndex a_facein  ) 

bool FaceIndex::operator== ( const FaceIndex a_facein  )  const

bool FaceIndex::operator!= ( const FaceIndex a_facein  )  const

const int& FaceIndex::direction (  )  const

const bool& FaceIndex::isDefined (  )  const

const bool& FaceIndex::isBoundary (  )  const

const int& FaceIndex::cellIndex ( const Side::LoHiSide a_sd  )  const

return cell index of the vof on the a_sd side. returns -1 if that side of the face is outside the domain (boundary face case).

Referenced by BaseIFFAB< T >::getLocalVecIndex().

const IntVect& FaceIndex::gridIndex ( const Side::LoHiSide a_sd  )  const

return grid index of the vof on the a_sd side. may be inside or ouside domain.

Referenced by BaseIFFAB< T >::getIndex(), BaseIFFAB< T >::getLocalVecIndex(), BaseIFFAB< T >::operator()(), and BaseEBFaceFAB< T >::operator()().

VolIndex FaceIndex::getVoF ( const Side::LoHiSide a_sd  )  const

manufactures the appropriate volindex.

static int FaceIndex::initializeOffsets (  )  [static]


Friends And Related Function Documentation

bool operator< ( const FaceIndex f1,
const FaceIndex f2 
) [friend]

Lexicographic

Friend of class FaceIndex

ostream& operator<< ( ostream &  out,
const FaceIndex fi 
) [friend]


Member Data Documentation

size_t FaceIndex::lo_offset [static]

size_t FaceIndex::hi_offset [static]

size_t FaceIndex::rest_offset [static]

the intvect of the low vof

Referenced by operator<().

the intvect of the high vof

Referenced by operator<().

int FaceIndex::m_loIndex [private]

The index of the low vof. This = -1 if the face is set to be a boundary face on the low side of the domain.

Referenced by operator<().

int FaceIndex::m_hiIndex [private]

The index of the high vof. This = -1 if the face is set to be a boundary face on the high side of the domain.

Referenced by operator<().

int FaceIndex::m_direction [private]

direction of the face.

Referenced by operator<().

bool FaceIndex::m_isDefined [private]

true if one of the define functions has been called.

bool FaceIndex::m_isBoundary [private]

true if the face is constructed using the boundary face constructor

Referenced by operator<().


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

Generated on Tue Apr 14 14:23:33 2009 for Chombo + EB by  doxygen 1.5.5