Public Member Functions | |
GIDCellPredicate (int cellDim, const Set< int > &gids) | |
virtual | ~GIDCellPredicate () |
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 | |
int | cellDim_ |
Set< int > | gids_ |
Definition at line 46 of file SundanceGIDCellPredicate.hpp.
Sundance::GIDCellPredicate::GIDCellPredicate | ( | int | cellDim, | |
const Set< int > & | gids | |||
) | [inline] |
Construct with a GID set
Definition at line 50 of file SundanceGIDCellPredicate.hpp.
virtual Sundance::GIDCellPredicate::~GIDCellPredicate | ( | ) | [inline, virtual] |
virtual dtor
Definition at line 54 of file SundanceGIDCellPredicate.hpp.
virtual std::string Sundance::GIDCellPredicate::description | ( | ) | const [inline, virtual] |
Implements Sundance::CellPredicateBase.
Definition at line 67 of file SundanceGIDCellPredicate.hpp.
References gids_, and Sundance::Set< Key, Compare >::toString().
bool GIDCellPredicate::lessThan | ( | const CellPredicateBase * | other | ) | const [virtual] |
comparison
Implements Sundance::CellPredicateBase.
Definition at line 37 of file SundanceGIDCellPredicate.cpp.
References gids_, and Sundance::CellPredicateBase::toXML().
void GIDCellPredicate::testBatch | ( | const Array< int > & | cellLID, | |
Array< int > & | results | |||
) | const [virtual] |
Test the predicate on a batch of cells
Implements Sundance::CellPredicateBase.
Definition at line 48 of file SundanceGIDCellPredicate.cpp.
References cellDim_, Sundance::Set< Key, Compare >::contains(), gids_, Sundance::Mesh::mapLIDToGID(), and Sundance::CellPredicateBase::mesh().
XMLObject GIDCellPredicate::toXML | ( | ) | const [virtual] |
Write to XML
Implements Sundance::CellPredicateBase.
Definition at line 58 of file SundanceGIDCellPredicate.cpp.
References gids_, and Sundance::Set< Key, Compare >::toString().
int Sundance::GIDCellPredicate::cellDim_ [private] |
Reimplemented from Sundance::CellPredicateBase.
Definition at line 74 of file SundanceGIDCellPredicate.hpp.
Referenced by testBatch().
Set<int> Sundance::GIDCellPredicate::gids_ [private] |
Definition at line 75 of file SundanceGIDCellPredicate.hpp.
Referenced by description(), lessThan(), testBatch(), and toXML().