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 48 of file SundanceLabelCellPredicate.hpp.


Constructor & Destructor Documentation

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.


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 38 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 63 of file SundanceLabelCellPredicate.cpp.

References labelIndices_, and Sundance::Set< Key, Compare >::toString().


Member Data Documentation

Definition at line 83 of file SundanceLabelCellPredicate.hpp.

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

Site Contact