Public Member Functions
Sundance::ExplicitCellSet Class Reference

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

Inheritance diagram for Sundance::ExplicitCellSet:
Sundance::CellSetBase Sundance::ObjectWithClassVerbosity< CellSetBase > Sundance::Printable Sundance::Noncopyable Sundance::Handleable< CellSetBase > Sundance::DefaultObjectWithVerbosity Sundance::ObjectWithVerbosityBase

List of all members.

Public Member Functions

 ExplicitCellSet (const Mesh &mesh, int cellDim, const CellType &cellType)
 Construct with a mesh, initializing to an empty set.
 ExplicitCellSet (const Mesh &mesh, int cellDim, const CellType &cellType, const Set< int > &cellLIDs)
 Construct with a set of cells.
virtual CellIterator begin () const
 Returns an iterator pointing to the first element in the set.
virtual CellIterator end () const
 Returns a past-the-end iterator.
Set< int > & cells ()
 Returns a modifiable reference to the set of cells.
bool internalLessThan (const CellSetBase *other) const
Printable interface
virtual void print (std::ostream &os) const
 Print to a stream.

Private Attributes

Handleable interface
Set< int > cells_
 The set of cell LIDs.

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 47 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 39 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 45 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 52 of file SundanceExplicitCellSet.cpp.

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

Set<int>& Sundance::ExplicitCellSet::cells ( ) [inline]

Returns a modifiable reference to the set of cells.

Definition at line 68 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 57 of file SundanceExplicitCellSet.cpp.

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

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

Implements Sundance::CellSetBase.

Definition at line 67 of file SundanceExplicitCellSet.cpp.

References cells_.

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

Print to a stream.

Implements Sundance::Printable.

Definition at line 62 of file SundanceExplicitCellSet.cpp.

References cells_.


Member Data Documentation

The set of cell LIDs.

Definition at line 85 of file SundanceExplicitCellSet.hpp.

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

Site Contact