LabelCellPredicate tests whether a cell's label is equal to a reference label. More...
Public Member Functions | |
| LabelCellPredicate (int label) | |
| Construct with a label std::string. | |
| virtual | ~LabelCellPredicate () |
| virtual dtor | |
| virtual void | testBatch (const Array< int > &cellLID, Array< int > &results) const |
| Test the predicate on a batch of cells. | |
| virtual XMLObject | toXML () const |
| Write to XML. | |
| virtual bool | lessThan (const CellPredicateBase *other) const |
| comparison | |
| virtual std::string | description () const |
| int | label () const |
Private Attributes | |
Handleable interface | |
| int | labelIndex_ |
LabelCellPredicate tests whether a cell's label is equal to a reference label.
Definition at line 46 of file SundanceLabelCellPredicate.hpp.
| Sundance::LabelCellPredicate::LabelCellPredicate | ( | int | label | ) | [inline] |
Construct with a label std::string.
Definition at line 50 of file SundanceLabelCellPredicate.hpp.
| virtual Sundance::LabelCellPredicate::~LabelCellPredicate | ( | ) | [inline, virtual] |
virtual dtor
Definition at line 54 of file SundanceLabelCellPredicate.hpp.
| virtual std::string Sundance::LabelCellPredicate::description | ( | ) | const [inline, virtual] |
Implements Sundance::CellPredicateBase.
Definition at line 67 of file SundanceLabelCellPredicate.hpp.
References labelIndex_, and Sundance::toString().
| int Sundance::LabelCellPredicate::label | ( | ) | const [inline] |
Definition at line 71 of file SundanceLabelCellPredicate.hpp.
References labelIndex_.
| bool LabelCellPredicate::lessThan | ( | const CellPredicateBase * | other | ) | const [virtual] |
comparison
Implements Sundance::CellPredicateBase.
Definition at line 38 of file SundanceLabelCellPredicate.cpp.
References labelIndex_, and Sundance::CellPredicateBase::toXML().
| void LabelCellPredicate::testBatch | ( | const Array< int > & | cellLID, |
| Array< int > & | results | ||
| ) | const [virtual] |
Test the predicate on a batch of cells.
Implements Sundance::CellPredicateBase.
Definition at line 49 of file SundanceLabelCellPredicate.cpp.
References Sundance::CellPredicateBase::cellDim(), Sundance::Mesh::getLabels(), labelIndex_, and Sundance::CellPredicateBase::mesh().
| XMLObject LabelCellPredicate::toXML | ( | ) | const [virtual] |
Write to XML.
Implements Sundance::CellPredicateBase.
Definition at line 59 of file SundanceLabelCellPredicate.cpp.
References labelIndex_, and Teuchos::toString().
int Sundance::LabelCellPredicate::labelIndex_ [private] |
Definition at line 78 of file SundanceLabelCellPredicate.hpp.
Referenced by description(), label(), lessThan(), testBatch(), and toXML().