Public Member Functions | |
| CellPredicateBase () | |
| virtual | ~CellPredicateBase () |
| virtual void | testBatch (const Array< int > &cellLID, Array< int > &results) const =0 |
| virtual void | setMesh (const Mesh &mesh, int cellDim) const |
| virtual XMLObject | toXML () const =0 |
| virtual bool | lessThan (const CellPredicateBase *other) const =0 |
| virtual std::string | description () const =0 |
| virtual std::string | typeName () const |
Protected Member Functions | |
| const Mesh & | mesh () const |
| int | cellDim () const |
Private Attributes | |
| Mesh | mesh_ |
| int | cellDim_ |
CellPredicateBase is the base class for predicate objects that test cells against some condition. A simulation developer needing some specialized method for identifying cells might implement a custom cell predicate by extending this function. However, the most common cases, selection by cell label or cell position, have already been implemented in LabelCellPredicate and PositionalCellPredicate.
Definition at line 70 of file SundanceCellPredicateBase.hpp.
Empty ctor
Definition at line 49 of file SundanceCellPredicateBase.cpp.
| CellPredicateBase::~CellPredicateBase | ( | ) | [virtual] |
virtual dtor
Definition at line 54 of file SundanceCellPredicateBase.cpp.
| int Sundance::CellPredicateBase::cellDim | ( | ) | const [inline, protected] |
Definition at line 110 of file SundanceCellPredicateBase.hpp.
References cellDim_.
Referenced by setMesh(), Sundance::BoundaryCellPredicate::testBatch(), Sundance::CellCurvePredicate::testBatch(), Sundance::LabelCellPredicate::testBatch(), and Sundance::PositionalCellPredicate::testBatch().
| virtual std::string Sundance::CellPredicateBase::description | ( | ) | const [pure virtual] |
| virtual bool Sundance::CellPredicateBase::lessThan | ( | const CellPredicateBase * | other | ) | const [pure virtual] |
| const Mesh& Sundance::CellPredicateBase::mesh | ( | ) | const [inline, protected] |
Definition at line 106 of file SundanceCellPredicateBase.hpp.
References mesh_.
Referenced by setMesh(), Sundance::GIDCellPredicate::testBatch(), Sundance::BoundaryCellPredicate::testBatch(), Sundance::CellCurvePredicate::testBatch(), Sundance::LabelCellPredicate::testBatch(), and Sundance::PositionalCellPredicate::testBatch().
| virtual void Sundance::CellPredicateBase::setMesh | ( | const Mesh & | mesh, |
| int | cellDim | ||
| ) | const [inline, virtual] |
| virtual void Sundance::CellPredicateBase::testBatch | ( | const Array< int > & | cellLID, |
| Array< int > & | results | ||
| ) | const [pure virtual] |
Test the predicate on a batch of cells
Implemented in Sundance::PositionalCellPredicate, Sundance::LabelCellPredicate, Sundance::CellCurvePredicate, Sundance::BoundaryCellPredicate, and Sundance::GIDCellPredicate.
Referenced by Sundance::SubsetCellFilter::internalGetCells().
| virtual XMLObject Sundance::CellPredicateBase::toXML | ( | ) | const [pure virtual] |
Write to XML
Implemented in Sundance::PositionalCellPredicate, Sundance::LabelCellPredicate, Sundance::CellCurvePredicate, Sundance::BoundaryCellPredicate, and Sundance::GIDCellPredicate.
Referenced by Sundance::GIDCellPredicate::lessThan(), Sundance::BoundaryCellPredicate::lessThan(), Sundance::CellCurvePredicate::lessThan(), Sundance::LabelCellPredicate::lessThan(), and Sundance::PositionalCellPredicate::lessThan().
| virtual std::string Sundance::CellPredicateBase::typeName | ( | ) | const [inline, virtual] |
Definition at line 102 of file SundanceCellPredicateBase.hpp.
int Sundance::CellPredicateBase::cellDim_ [mutable, private] |
Reimplemented in Sundance::GIDCellPredicate.
Definition at line 115 of file SundanceCellPredicateBase.hpp.
Mesh Sundance::CellPredicateBase::mesh_ [mutable, private] |
Definition at line 113 of file SundanceCellPredicateBase.hpp.