Public Member Functions
Sundance::LabelCellPredicate Class Reference
Inheritance diagram for Sundance::LabelCellPredicate:
Sundance::CellPredicateBase Playa::Handleable< CellPredicateBase > Sundance::Noncopyable Sundance::ObjectWithClassVerbosity< CellPredicateBase > Playa::ObjectWithVerbosity

List of all members.

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_

Detailed Description

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

Definition at line 59 of file SundanceLabelCellPredicate.hpp.


Constructor & Destructor Documentation

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 dtor

Definition at line 73 of file SundanceLabelCellPredicate.hpp.


Member Function Documentation

virtual std::string Sundance::LabelCellPredicate::description ( ) const [inline, virtual]
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]
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().


Member Data Documentation

Definition at line 94 of file SundanceLabelCellPredicate.hpp.

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

Site Contact