Public Member Functions | |
| LabelCellPredicate (int label) | |
| LabelCellPredicate (const Array< int > &labels) | |
| LabelCellPredicate (const Set< int > &labels) | |
| virtual | ~LabelCellPredicate () |
| virtual void | testBatch (const Array< int > &cellLID, Array< int > &results) const |
| virtual XMLObject | toXML () const |
| virtual bool | lessThan (const CellPredicateBase *other) const |
| virtual std::string | description () const |
Private Attributes | |
Handleable interface | |
| Set< int > | labelIndices_ |
LabelCellPredicate tests whether a cell's label is equal to a reference label.
Definition at line 59 of file SundanceLabelCellPredicate.hpp.
| Sundance::LabelCellPredicate::LabelCellPredicate | ( | int | label | ) | [inline] |
Construct with an integer label
Definition at line 63 of file SundanceLabelCellPredicate.hpp.
| Sundance::LabelCellPredicate::LabelCellPredicate | ( | const Array< int > & | labels | ) | [inline] |
Construct with an array of labels
Definition at line 66 of file SundanceLabelCellPredicate.hpp.
| Sundance::LabelCellPredicate::LabelCellPredicate | ( | const Set< int > & | labels | ) | [inline] |
Construct with a set of labels
Definition at line 69 of file SundanceLabelCellPredicate.hpp.
| virtual Sundance::LabelCellPredicate::~LabelCellPredicate | ( | ) | [inline, virtual] |
virtual dtor
Definition at line 73 of file SundanceLabelCellPredicate.hpp.
| virtual std::string Sundance::LabelCellPredicate::description | ( | ) | const [inline, virtual] |
Implements Sundance::CellPredicateBase.
Definition at line 86 of file SundanceLabelCellPredicate.hpp.
References labelIndices_, and Sundance::Set< Key, Compare >::toString().
| bool LabelCellPredicate::lessThan | ( | const CellPredicateBase * | other | ) | const [virtual] |
comparison
Implements Sundance::CellPredicateBase.
Definition at line 49 of file SundanceLabelCellPredicate.cpp.
References labelIndices_, 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 63 of file SundanceLabelCellPredicate.cpp.
References Sundance::CellPredicateBase::cellDim(), Sundance::Set< Key, Compare >::contains(), Sundance::Mesh::getLabels(), labelIndices_, and Sundance::CellPredicateBase::mesh().
| XMLObject LabelCellPredicate::toXML | ( | ) | const [virtual] |
Write to XML
Implements Sundance::CellPredicateBase.
Definition at line 74 of file SundanceLabelCellPredicate.cpp.
References labelIndices_, and Sundance::Set< Key, Compare >::toString().
Set<int> Sundance::LabelCellPredicate::labelIndices_ [private] |
Definition at line 94 of file SundanceLabelCellPredicate.hpp.
Referenced by description(), lessThan(), testBatch(), and toXML().