Public Member Functions
Sundance::LabelCellPredicate Class Reference

LabelCellPredicate tests whether a cell's label is equal to a reference label. More...

Inheritance diagram for Sundance::LabelCellPredicate:
Sundance::CellPredicateBase Sundance::Handleable< CellPredicateBase > Sundance::Noncopyable Sundance::ObjectWithClassVerbosity< CellPredicateBase > Sundance::DefaultObjectWithVerbosity Sundance::ObjectWithVerbosityBase

List of all members.

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_

Detailed Description

LabelCellPredicate tests whether a cell's label is equal to a reference label.

Definition at line 46 of file SundanceLabelCellPredicate.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]
XMLObject LabelCellPredicate::toXML ( ) const [virtual]

Write to XML.

Implements Sundance::CellPredicateBase.

Definition at line 59 of file SundanceLabelCellPredicate.cpp.

References labelIndex_, and Teuchos::toString().


Member Data Documentation

Definition at line 78 of file SundanceLabelCellPredicate.hpp.

Referenced by description(), label(), lessThan(), testBatch(), and toXML().

Site Contact