Public Member Functions | |
CellSet () | |
CellSet (Handleable< CellSetBase > *rawPtr) | |
CellSet (const RefCountPtr< CellSetBase > &smartPtr) | |
CellSet (const Mesh &mesh, int cellDim, const CellType &cellType, const Set< int > &cellLIDs) | |
int | meshID () const |
const Mesh & | mesh () const |
bool | isNull () const |
int | dimension () const |
const CellType & | cellType () const |
CellIterator | begin () const |
CellIterator | end () const |
CellSet | setUnion (const CellSet &other) const |
CellSet | setIntersection (const CellSet &other) const |
CellSet | setDifference (const CellSet &other) const |
CellSet | subset (const RCP< CellPredicate > &test) const |
bool | areFacetsOf (const CellSet &other) const |
bool | operator< (const CellSet &other) const |
int | numCells () const |
Private Member Functions | |
void | checkCompatibility (const std::string &op, const CellSet &other) const |
Definition at line 51 of file SundanceCellSet.hpp.
Sundance::CellSet::CellSet | ( | ) | [inline] |
Empty ctor
Definition at line 55 of file SundanceCellSet.hpp.
Sundance::CellSet::CellSet | ( | Handleable< CellSetBase > * | rawPtr | ) | [inline] |
Construct a CellSet with a raw pointer to a CellSetBase
Definition at line 55 of file SundanceCellSet.hpp.
Sundance::CellSet::CellSet | ( | const RefCountPtr< CellSetBase > & | smartPtr | ) | [inline] |
Construct a CellSet with a smart pointer to a CellSetBase
Definition at line 55 of file SundanceCellSet.hpp.
CellSet::CellSet | ( | const Mesh & | mesh, | |
int | cellDim, | |||
const CellType & | cellType, | |||
const Set< int > & | cellLIDs | |||
) |
Construct from an explicit set of cells
Definition at line 46 of file SundanceCellSet.cpp.
bool CellSet::areFacetsOf | ( | const CellSet & | other | ) | const |
Determine whether all cells in this set are facets of cells in the other set
Definition at line 133 of file SundanceCellSet.cpp.
References begin(), cellType(), dimension(), end(), Sundance::Mesh::getCofacets(), mesh(), Sundance::Set< Key, Compare >::put(), and setIntersection().
Referenced by Sundance::DOFMapBuilder::reduceCellFilters().
CellIterator Sundance::CellSet::begin | ( | ) | const [inline] |
An iterator pointing to the beginning of the set
Definition at line 79 of file SundanceCellSet.hpp.
References Playa::Handle< CellSetBase >::ptr().
Referenced by areFacetsOf(), Sundance::AToCPointLocator::AToCPointLocator(), Sundance::cellSetToLIDArray(), Sundance::connectedNodeSet(), Sundance::InhomogeneousEdgeLocalizedDOFMap::getEdgeLIDs(), Sundance::InhomogeneousDOFMapHN::InhomogeneousDOFMapHN(), Sundance::InhomogeneousNodalDOFMap::InhomogeneousNodalDOFMap(), Sundance::PartialElementDOFMap::init(), Sundance::NodalDOFMapHN::init(), Sundance::NodalDOFMap::init(), Sundance::AToCDensitySampler::init(), Sundance::MixedDOFMapHN::initMap(), Sundance::MixedDOFMap::initMap(), Sundance::HomogeneousDOFMap::initMap(), Sundance::SubsetCellFilter::internalGetCells(), Sundance::CFMeshPair::isEmpty(), Sundance::CellFilter::isSubsetOf(), Sundance::DOFMapBuilder::markBCCols(), Sundance::DOFMapBuilder::markBCRows(), numCells(), Sundance::DOFMapBuilder::reduceCellFilters(), setDifference(), setIntersection(), setUnion(), and Sundance::SubmaximalNodalDOFMap::SubmaximalNodalDOFMap().
const CellType& Sundance::CellSet::cellType | ( | ) | const [inline] |
The type of the cells contained in this set
Definition at line 76 of file SundanceCellSet.hpp.
References Playa::Handle< CellSetBase >::ptr().
Referenced by areFacetsOf(), checkCompatibility(), setDifference(), setIntersection(), and setUnion().
void CellSet::checkCompatibility | ( | const std::string & | op, | |
const CellSet & | other | |||
) | const [private] |
Definition at line 104 of file SundanceCellSet.cpp.
References cellType(), dimension(), meshID(), SUNDANCE_OUT, and Playa::Handle< CellSetBase >::verb().
Referenced by setDifference(), setIntersection(), and setUnion().
int Sundance::CellSet::dimension | ( | ) | const [inline] |
The dimension of the cells contained in this set
Definition at line 73 of file SundanceCellSet.hpp.
References Playa::Handle< CellSetBase >::ptr().
Referenced by areFacetsOf(), checkCompatibility(), Sundance::connectedNodeSet(), setDifference(), setIntersection(), and setUnion().
CellIterator Sundance::CellSet::end | ( | ) | const [inline] |
An iterator pointing to the end of the set
Definition at line 82 of file SundanceCellSet.hpp.
References Playa::Handle< CellSetBase >::ptr().
Referenced by areFacetsOf(), Sundance::AToCPointLocator::AToCPointLocator(), Sundance::cellSetToLIDArray(), Sundance::connectedNodeSet(), Sundance::InhomogeneousEdgeLocalizedDOFMap::getEdgeLIDs(), Sundance::InhomogeneousDOFMapHN::InhomogeneousDOFMapHN(), Sundance::InhomogeneousNodalDOFMap::InhomogeneousNodalDOFMap(), Sundance::PartialElementDOFMap::init(), Sundance::NodalDOFMapHN::init(), Sundance::NodalDOFMap::init(), Sundance::AToCDensitySampler::init(), Sundance::MixedDOFMapHN::initMap(), Sundance::MixedDOFMap::initMap(), Sundance::HomogeneousDOFMap::initMap(), Sundance::SubsetCellFilter::internalGetCells(), Sundance::CFMeshPair::isEmpty(), Sundance::CellFilter::isSubsetOf(), Sundance::DOFMapBuilder::markBCCols(), Sundance::DOFMapBuilder::markBCRows(), numCells(), Sundance::DOFMapBuilder::reduceCellFilters(), setDifference(), setIntersection(), setUnion(), and Sundance::SubmaximalNodalDOFMap::SubmaximalNodalDOFMap().
bool Sundance::CellSet::isNull | ( | ) | const [inline] |
Indicate whether the cells in this set are null cells
Definition at line 70 of file SundanceCellSet.hpp.
References Playa::Handle< CellSetBase >::ptr().
Referenced by setDifference(), setIntersection(), and setUnion().
const Mesh& Sundance::CellSet::mesh | ( | ) | const [inline] |
The mesh in which these cells exist
Definition at line 67 of file SundanceCellSet.hpp.
References Playa::Handle< CellSetBase >::ptr().
Referenced by areFacetsOf(), setDifference(), setIntersection(), and setUnion().
int Sundance::CellSet::meshID | ( | ) | const [inline] |
The ID number of the mesh in which these cells exist
Definition at line 64 of file SundanceCellSet.hpp.
References Playa::Handle< CellSetBase >::ptr().
Referenced by checkCompatibility().
int CellSet::numCells | ( | ) | const |
Definition at line 168 of file SundanceCellSet.cpp.
References begin(), and end().
Referenced by Sundance::DOFMapBuilder::isWholeDomain(), and Sundance::SubmaximalNodalDOFMap::SubmaximalNodalDOFMap().
bool CellSet::operator< | ( | const CellSet & | other | ) | const |
Definition at line 160 of file SundanceCellSet.cpp.
References Playa::Handle< PointerType >::ptr(), and Playa::Handle< CellSetBase >::ptr().
Return a cell set that is the difference of this set and another set
Definition at line 86 of file SundanceCellSet.cpp.
References Sundance::Set< Key, Compare >::begin(), begin(), Sundance::ExplicitCellSet::cells(), cellType(), checkCompatibility(), dimension(), end(), isNull(), and mesh().
Referenced by Sundance::CellFilter::isSubsetOf(), Sundance::DOFMapBuilder::isWholeDomain(), and Sundance::DOFMapBuilder::reduceCellFilters().
Return a cell set that is the intersection of this set and another set
Definition at line 69 of file SundanceCellSet.cpp.
References Sundance::Set< Key, Compare >::begin(), begin(), Sundance::ExplicitCellSet::cells(), cellType(), checkCompatibility(), dimension(), end(), isNull(), and mesh().
Referenced by areFacetsOf(), and Sundance::CellFilter::isSubsetOf().
Return a cell set that is the union of this set and another set
Definition at line 52 of file SundanceCellSet.cpp.
References Sundance::Set< Key, Compare >::begin(), begin(), Sundance::ExplicitCellSet::cells(), cellType(), checkCompatibility(), dimension(), end(), isNull(), and mesh().
CellSet Sundance::CellSet::subset | ( | const RCP< CellPredicate > & | test | ) | const |