Public Member Functions
Sundance::ExplicitCellSet Class Reference
Inheritance diagram for Sundance::ExplicitCellSet:
Sundance::CellSetBase Sundance::ObjectWithClassVerbosity< CellSetBase > Playa::Printable Sundance::Noncopyable Playa::Handleable< CellSetBase > Playa::ObjectWithVerbosity

List of all members.

Public Member Functions

 ExplicitCellSet (const Mesh &mesh, int cellDim, const CellType &cellType)
 ExplicitCellSet (const Mesh &mesh, int cellDim, const CellType &cellType, const Set< int > &cellLIDs)
virtual CellIterator begin () const
virtual CellIterator end () const
Set< int > & cells ()
bool internalLessThan (const CellSetBase *other) const
Printable interface
virtual void print (std::ostream &os) const

Private Attributes

Handleable interface
Set< int > cells_

Detailed Description

ExplicitCellSet is a cell set subtype where the cell LIDs are stored explicitly in an STL set.

See also:
CellFilter, CellSet, CellSetBase, CellIterator

Definition at line 58 of file SundanceExplicitCellSet.hpp.


Constructor & Destructor Documentation

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

Construct with a mesh, initializing to an empty set

Definition at line 50 of file SundanceExplicitCellSet.cpp.

ExplicitCellSet::ExplicitCellSet ( const Mesh mesh,
int  cellDim,
const CellType cellType,
const Set< int > &  cellLIDs 
)

Construct with a set of cells

Definition at line 56 of file SundanceExplicitCellSet.cpp.


Member Function Documentation

CellIterator ExplicitCellSet::begin ( ) const [virtual]

Returns an iterator pointing to the first element in the set.

Implements Sundance::CellSetBase.

Definition at line 63 of file SundanceExplicitCellSet.cpp.

References Sundance::CellIterator::Begin, and cells_.

Returns a modifiable reference to the set of cells

Definition at line 79 of file SundanceExplicitCellSet.hpp.

References cells_.

Referenced by Sundance::SubsetCellFilter::internalGetCells(), Sundance::CellSet::setDifference(), Sundance::CellSet::setIntersection(), and Sundance::CellSet::setUnion().

CellIterator ExplicitCellSet::end ( ) const [virtual]

Returns a past-the-end iterator

Implements Sundance::CellSetBase.

Definition at line 68 of file SundanceExplicitCellSet.cpp.

References cells_, and Sundance::CellIterator::End.

bool ExplicitCellSet::internalLessThan ( const CellSetBase other) const [virtual]

Implements Sundance::CellSetBase.

Definition at line 78 of file SundanceExplicitCellSet.cpp.

References cells_.

void ExplicitCellSet::print ( std::ostream &  os) const [virtual]

Print to a stream

Implements Playa::Printable.

Definition at line 73 of file SundanceExplicitCellSet.cpp.

References cells_.


Member Data Documentation

The set of cell LIDs

Definition at line 96 of file SundanceExplicitCellSet.hpp.

Referenced by begin(), cells(), end(), internalLessThan(), and print().

Site Contact