Sundance::CellSetBase Class Reference

Inheritance diagram for Sundance::CellSetBase:

Sundance::ObjectWithClassVerbosity< CellSetBase > Playa::Printable Sundance::Noncopyable Playa::Handleable< CellSetBase > Playa::ObjectWithVerbosity Sundance::ExplicitCellSet Sundance::ImplicitCellSet Sundance::MaximalCellSet

List of all members.

Public Member Functions

 CellSetBase (const Mesh &mesh, int cellDim, const CellType &cellType)
virtual CellIterator begin () const =0
virtual CellIterator end () const =0
const CellTypecellType (const CellType &cellType) const
int meshID () const
int dimension () const
const Meshmesh () const
const CellTypecellType () const
bool lessThan (const CellSetBase *other) const
virtual bool internalLessThan (const CellSetBase *other) const =0

Private Attributes

Mesh mesh_
CellType cellType_
int dim_


Detailed Description

CellSetBase is the base class for cell sets. There are two cell set subtypes: ExplicitCellSet and ImplicitCellSet.

See also:
CellFilter

Definition at line 55 of file SundanceCellSetBase.hpp.


Constructor & Destructor Documentation

CellSetBase::CellSetBase ( const Mesh mesh,
int  cellDim,
const CellType cellType 
)

Construct, initializing to an empty set

Definition at line 40 of file SundanceCellSetBase.cpp.


Member Function Documentation

virtual CellIterator Sundance::CellSetBase::begin (  )  const [pure virtual]

Return an iterator pointing to the first element in the set

Implemented in Sundance::ExplicitCellSet, and Sundance::ImplicitCellSet.

const CellType& Sundance::CellSetBase::cellType (  )  const [inline]

The type of the cells contained in this set

Definition at line 85 of file SundanceCellSetBase.hpp.

References cellType_.

Referenced by Sundance::ImplicitCellSet::print().

const CellType& Sundance::CellSetBase::cellType ( const CellType cellType  )  const [inline]

Return the type of cells in this set

Definition at line 72 of file SundanceCellSetBase.hpp.

References cellType_.

int Sundance::CellSetBase::dimension (  )  const [inline]

The dimension of the cells contained in this set

Definition at line 79 of file SundanceCellSetBase.hpp.

References dim_.

Referenced by Sundance::ImplicitCellSet::begin(), Sundance::ImplicitCellSet::end(), and Sundance::ImplicitCellSet::print().

virtual CellIterator Sundance::CellSetBase::end (  )  const [pure virtual]

Return an iterator containing the past-the-end value

Implemented in Sundance::ExplicitCellSet, and Sundance::ImplicitCellSet.

virtual bool Sundance::CellSetBase::internalLessThan ( const CellSetBase other  )  const [pure virtual]

Implemented in Sundance::ExplicitCellSet, and Sundance::ImplicitCellSet.

Referenced by lessThan().

bool CellSetBase::lessThan ( const CellSetBase other  )  const

Reimplemented in Sundance::MaximalCellSet.

Definition at line 45 of file SundanceCellSetBase.cpp.

References cellType_, dim_, and internalLessThan().

const Mesh& Sundance::CellSetBase::mesh (  )  const [inline]

The mesh in which these cells exist

Definition at line 82 of file SundanceCellSetBase.hpp.

References mesh_.

Referenced by Sundance::ImplicitCellSet::begin(), and Sundance::ImplicitCellSet::end().

int Sundance::CellSetBase::meshID (  )  const [inline]

The ID number of the mesh in which these cells exist

Definition at line 76 of file SundanceCellSetBase.hpp.

References Sundance::Mesh::id(), and mesh_.


Member Data Documentation

the type of cell in the set

Definition at line 99 of file SundanceCellSetBase.hpp.

Referenced by cellType(), and lessThan().

the dimension of the cells in the set

Definition at line 102 of file SundanceCellSetBase.hpp.

Referenced by dimension(), and lessThan().

the mesh in which the set exists

Definition at line 96 of file SundanceCellSetBase.hpp.

Referenced by mesh(), and meshID().

Site Contact