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_ |
Definition at line 48 of file SundanceLabelCellPredicate.hpp.
Sundance::LabelCellPredicate::LabelCellPredicate | ( | int | label | ) | [inline] |
Construct with an integer label
Definition at line 52 of file SundanceLabelCellPredicate.hpp.
Sundance::LabelCellPredicate::LabelCellPredicate | ( | const Array< int > & | labels | ) | [inline] |
Construct with an array of labels
Definition at line 55 of file SundanceLabelCellPredicate.hpp.
Sundance::LabelCellPredicate::LabelCellPredicate | ( | const Set< int > & | labels | ) | [inline] |
Construct with a set of labels
Definition at line 58 of file SundanceLabelCellPredicate.hpp.
virtual Sundance::LabelCellPredicate::~LabelCellPredicate | ( | ) | [inline, virtual] |
virtual dtor
Definition at line 62 of file SundanceLabelCellPredicate.hpp.
virtual std::string Sundance::LabelCellPredicate::description | ( | ) | const [inline, virtual] |
Implements Sundance::CellPredicateBase.
Definition at line 75 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 38 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 52 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 63 of file SundanceLabelCellPredicate.cpp.
References labelIndices_, and Sundance::Set< Key, Compare >::toString().
Set<int> Sundance::LabelCellPredicate::labelIndices_ [private] |
Definition at line 83 of file SundanceLabelCellPredicate.hpp.
Referenced by description(), lessThan(), testBatch(), and toXML().