#include <IndexType.H>
Public Types | |
enum | CellIndex { CELL = 0, NODE = 1 } |
The cell index type: one of CELL or NODE. More... | |
Public Member Functions | |
IndexType () | |
The default constructor. | |
IndexType (const IndexType &rhs) | |
The copy constructor. | |
IndexType (const IntVect &iv) | |
Construct an IndexType identical to an IntVect. | |
IndexType & | operator= (const IndexType &rhs) |
The assignment operator. | |
IndexType (D_DECL(CellIndex i, CellIndex j, CellIndex k)) | |
Construct an IndexType given an explicit CellIndex for each direction. | |
void | set (int dir) |
Set IndexType to be NODE based in direction dir. | |
void | unset (int dir) |
Set IndexType to be CELL based in direction dir. | |
bool | test (int dir) const |
True if IndexType is NODE based in direction dir. | |
void | setall () |
Set NODE based in all directions. | |
void | clear () |
Set CELL based in all directions. | |
bool | any () const |
True if this IndexType is NODE based in any direction. | |
bool | ok () const |
True if IndexType is valid. | |
void | flip (int i) |
Change from CELL to NODE or NODE to CELL in direction dir. | |
bool | operator== (const IndexType &t) const |
True if IndexTypes are identical. | |
bool | operator!= (const IndexType &t) const |
True if IndexTypes are not identical. | |
bool | cellCentered () const |
True if the IndexType is CELL based in all directions. | |
bool | nodeCentered () const |
True if the IndexType is NODE based in all directions. | |
void | setType (int dir, CellIndex t) |
Set IndexType to CellIndex type t in direction dir. | |
CellIndex | ixType (int dir) const |
Returns the CellIndex in direction dir. | |
int | operator[] (int dir) const |
Return an integer representing the IndexType in direction dir. | |
IntVect | ixType () const |
Fill an IntVect of size BL with IndexTypes. | |
Static Public Member Functions | |
static IndexType | TheCellType () |
This static member function returns an IndexType object of value IndexType::CELL. | |
static IndexType | TheNodeType () |
This static member function returns an IndexType object of value IndexType::NODE. | |
static IndexType | TheUMACType () |
static IndexType | TheVMACType () |
static IndexType | TheWMACType () |
Friends | |
MPI_Datatype | ParallelDescriptor::Mpi_typemap () |
The class IndexType defines an index as being cell based or node (edge) based in each of the BL directions. This class defines an enumerated type CellIndex to be either CELL or NODE; i.e. each of the BL dimensions must be either CELL or NODE.
enum IndexType::CellIndex |
IndexType::IndexType | ( | ) | [inline] |
The default constructor.
IndexType::IndexType | ( | const IndexType & | rhs | ) | [inline] |
The copy constructor.
IndexType::IndexType | ( | const IntVect & | iv | ) | [explicit] |
Construct an IndexType given an explicit CellIndex for each direction.
D is a macro that sets the constructor to take BL arguments.
void IndexType::set | ( | int | dir | ) | [inline] |
Set IndexType to be NODE based in direction dir.
Referenced by operator>>(), and Box::surroundingNodes().
void IndexType::unset | ( | int | dir | ) | [inline] |
Set IndexType to be CELL based in direction dir.
Referenced by Box::enclosedCells(), operator>>(), and setType().
bool IndexType::test | ( | int | dir | ) | const [inline] |
void IndexType::setall | ( | ) | [inline] |
void IndexType::clear | ( | ) | [inline] |
bool IndexType::any | ( | ) | const [inline] |
True if this IndexType is NODE based in any direction.
Referenced by Box::cellCentered(), and Box::coarsen().
void IndexType::flip | ( | int | i | ) | [inline] |
bool IndexType::operator== | ( | const IndexType & | t | ) | const [inline] |
bool IndexType::operator!= | ( | const IndexType & | t | ) | const [inline] |
bool IndexType::cellCentered | ( | ) | const [inline] |
True if the IndexType is CELL based in all directions.
bool IndexType::nodeCentered | ( | ) | const [inline] |
True if the IndexType is NODE based in all directions.
void IndexType::setType | ( | int | dir, | |
CellIndex | t | |||
) |
IndexType::CellIndex IndexType::ixType | ( | int | dir | ) | const |
Returns the CellIndex in direction dir.
Referenced by Box::convert(), Box::refine(), BoxList::remove(), and Box::type().
int IndexType::operator[] | ( | int | dir | ) | const [inline] |
IndexType IndexType::TheCellType | ( | ) | [static] |
This static member function returns an IndexType object of value IndexType::CELL.
It is provided as a convenience to our users when defining a Box all of whose faces should be of type IndexType::CELL.
References CELL.
IndexType IndexType::TheNodeType | ( | ) | [static] |
This static member function returns an IndexType object of value IndexType::NODE.
It is provided as a convenience to our users when defining a Box all of whose faces should be of type IndexType::NODE.
References NODE.
MPI_Datatype ParallelDescriptor::Mpi_typemap | ( | ) | [friend] |