Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

IndexType Class Reference

#include <Box.H>

List of all members.

Public Types

enum  CellIndex { CELL = 0, NODE = 1 }

Public Methods

 IndexType ()
 IndexType (const IndexType &rhs)
 IndexType (const IntVect &iv)
IndexType & operator= (const IndexType &rhs)
 IndexType (D_DECL(CellIndex i, CellIndex j, CellIndex k))
void set (int dir)
void unset (int dir)
bool test (int dir) const
void setall ()
void clear ()
bool any () const
bool ok () const
void flip (int i)
bool operator== (const IndexType &t) const
bool operator!= (const IndexType &t) const
bool cellCentered () const
bool nodeCentered () const
void setType (int dir, CellIndex t)
CellIndex ixType (int dir) const
int operator[] (int dir) const
IntVect ixType () const

Static Public Methods

IndexType TheCellType ()
IndexType TheNodeType ()

Static Private Methods

int mask (int k)

Private Attributes

unsigned int itype

Friends

std::ostream & operator<< (std::ostream &os, const IndexType &itype)
std::istream & operator>> (std::istream &is, IndexType &itype)


Member Enumeration Documentation

enum IndexType::CellIndex
 

The cell index type: one of CELL or NODE.

Enumeration values:
CELL 
NODE 


Constructor & Destructor Documentation

IndexType::IndexType   [inline]
 

The default constructor.

IndexType::IndexType const IndexType &    rhs [inline]
 

The copy constructor.

IndexType::IndexType const IntVect   iv [inline, explicit]
 

Constructs an IndexType identical to an IntVect.

IndexType::IndexType D_DECL(CellIndex i, CellIndex j, CellIndex k   [inline]
 

Constructs an IndexType given an explicit CellIndex for each direction. D\_DECL is a macro that sets the constructor to take BL\_SPACEDIM arguments.


Member Function Documentation

bool IndexType::any   const [inline]
 

True if this IndexType is NODE based in any direction.

bool IndexType::cellCentered   const [inline]
 

True if this IndexType is CELL based in all directions.

void IndexType::clear   [inline]
 

Set this IndexType to be CELL based in all directions.

void IndexType::flip int    i [inline]
 

Change this IndexType from CELL to NODE or NODE to CELL in direction dir.

IntVect IndexType::ixType   const [inline]
 

Convert this IndexType to an IntVect via component-wise conversion of enum CellIndex to int.

IndexType::CellIndex IndexType::ixType int    dir const [inline]
 

Returns the CellIndex of this IndexType in direction dir.

int IndexType::mask int    k [inline, static, private]
 

bool IndexType::nodeCentered   const [inline]
 

True if this IndexType is NODE based in all directions.

bool IndexType::ok   const [inline]
 

True if this IndexType is valid.

bool IndexType::operator!= const IndexType &    t const [inline]
 

True if IndexTypes are not identical.

IndexType & IndexType::operator= const IndexType &    rhs [inline]
 

The assignment operator.

bool IndexType::operator== const IndexType &    t const [inline]
 

True if IndexTypes are identical.

int IndexType::operator[] int    dir const [inline]
 

Return an integer representing this IndexType in direction dir.

void IndexType::set int    dir [inline]
 

Sets this IndexType to be NODE based in direction dir.

void IndexType::setall   [inline]
 

Set this IndexType to be NODE based in all directions.

void IndexType::setType int    dir,
CellIndex    t
[inline]
 

Set this IndexType to CellIndex type t in direction dir.

bool IndexType::test int    dir const [inline]
 

True if this IndexType is NODE based in direction dir.

IndexType IndexType::TheCellType   [static]
 

This static member function returns an IndexType object all of whose components are 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.

IndexType IndexType::TheNodeType   [static]
 

This static member function returns an IndexType object all of whose components are 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.

void IndexType::unset int    dir [inline]
 

Sets this IndexType to be CELL based in direction dir.


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &    os,
const IndexType &    itype
[friend]
 

Write an IndexType to an ostream in ASCII.

std::istream& operator>> std::istream &    is,
IndexType &    itype
[friend]
 

Read an IndexType from an istream.


Member Data Documentation

unsigned int IndexType::itype [private]
 


The documentation for this class was generated from the following file:
Generated on Wed Apr 16 14:35:22 2003 for EBChombo by doxygen1.2.16