Public Member Functions | |
PositionalCellPredicate (const RCP< CellPredicateFunctorBase > &func) | |
virtual | ~PositionalCellPredicate () |
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 | |
RCP< CellPredicateFunctorBase > | func_ |
Definition at line 100 of file SundancePositionalCellPredicate.hpp.
Sundance::PositionalCellPredicate::PositionalCellPredicate | ( | const RCP< CellPredicateFunctorBase > & | func | ) | [inline] |
Construct with a function of positions
Definition at line 105 of file SundancePositionalCellPredicate.hpp.
virtual Sundance::PositionalCellPredicate::~PositionalCellPredicate | ( | ) | [inline, virtual] |
virtual dtor
Definition at line 110 of file SundancePositionalCellPredicate.hpp.
virtual std::string Sundance::PositionalCellPredicate::description | ( | ) | const [inline, virtual] |
Implements Sundance::CellPredicateBase.
Definition at line 123 of file SundancePositionalCellPredicate.hpp.
References func_.
bool PositionalCellPredicate::lessThan | ( | const CellPredicateBase * | other | ) | const [virtual] |
comparison
Implements Sundance::CellPredicateBase.
Definition at line 38 of file SundancePositionalCellPredicate.cpp.
References func_, and Sundance::CellPredicateBase::toXML().
void PositionalCellPredicate::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 SundancePositionalCellPredicate.cpp.
References Sundance::CellPredicateBase::cellDim(), func_, Sundance::Mesh::getFacetLIDs(), Sundance::CellPredicateBase::mesh(), Sundance::Mesh::nodePosition(), and Sundance::Mesh::numFacets().
XMLObject PositionalCellPredicate::toXML | ( | ) | const [virtual] |
Write to XML
Implements Sundance::CellPredicateBase.
Definition at line 83 of file SundancePositionalCellPredicate.cpp.
RCP<CellPredicateFunctorBase> Sundance::PositionalCellPredicate::func_ [private] |
Definition at line 129 of file SundancePositionalCellPredicate.hpp.
Referenced by description(), lessThan(), and testBatch().