Public Types | Public Member Functions
Sundance::BinaryCellFilter Class Reference

BinaryCellFilter implements cell filters that do binary logical operations on cell sets. More...

Inheritance diagram for Sundance::BinaryCellFilter:
Sundance::CellFilterBase

List of all members.

Public Types

enum  CellFilterOpType { Union, Intersection, Difference }

Public Member Functions

 BinaryCellFilter (const CellFilter &left, const CellFilter &right, const CellFilterOpType &op)
 Empty ctor.
virtual ~BinaryCellFilter ()
 virtual dtor
virtual int dimension (const Mesh &mesh) const
 Return the dimension of the cells that will be identified by this filter when acting on the given mesh.
virtual XMLObject toXML () const
 Write to XML.
virtual bool lessThan (const CellFilterStub *other) const
 Ordering.
virtual std::string typeName () const
 Return the name of the type.

Handleable interface

CellFilterOpType op_
 The operation I perform.
CellFilter left_
 My left operand.
CellFilter right_
 My right operand.
virtual CellSet internalGetCells (const Mesh &mesh) const
 Get my cells for the given mesh.
std::string opName () const

Detailed Description

BinaryCellFilter implements cell filters that do binary logical operations on cell sets.

Definition at line 46 of file SundanceBinaryCellFilter.hpp.


Member Enumeration Documentation

Enumerator:
Union 
Intersection 
Difference 

Definition at line 51 of file SundanceBinaryCellFilter.hpp.


Constructor & Destructor Documentation

BinaryCellFilter::BinaryCellFilter ( const CellFilter left,
const CellFilter right,
const CellFilterOpType op 
)
virtual Sundance::BinaryCellFilter::~BinaryCellFilter ( ) [inline, virtual]

virtual dtor

Definition at line 58 of file SundanceBinaryCellFilter.hpp.


Member Function Documentation

int BinaryCellFilter::dimension ( const Mesh mesh) const [virtual]

Return the dimension of the cells that will be identified by this filter when acting on the given mesh.

Implements Sundance::CellFilterBase.

Definition at line 63 of file SundanceBinaryCellFilter.cpp.

References Sundance::CellFilter::dimension(), left_, and right_.

CellSet BinaryCellFilter::internalGetCells ( const Mesh mesh) const [protected, virtual]
bool BinaryCellFilter::lessThan ( const CellFilterStub *  other) const [virtual]

Ordering.

Definition at line 129 of file SundanceBinaryCellFilter.cpp.

References left_, op_, and right_.

string BinaryCellFilter::opName ( ) const [private]

Definition at line 105 of file SundanceBinaryCellFilter.cpp.

References Difference, Intersection, op_, and Union.

Referenced by toXML().

XMLObject BinaryCellFilter::toXML ( ) const [virtual]

Write to XML.

Definition at line 121 of file SundanceBinaryCellFilter.cpp.

References left_, opName(), right_, and Sundance::CellFilter::toXML().

Referenced by internalGetCells().

virtual std::string Sundance::BinaryCellFilter::typeName ( ) const [inline, virtual]

Return the name of the type.

Used in ordering.

Definition at line 71 of file SundanceBinaryCellFilter.hpp.


Member Data Documentation

My left operand.

Definition at line 88 of file SundanceBinaryCellFilter.hpp.

Referenced by dimension(), internalGetCells(), lessThan(), and toXML().

The operation I perform.

Definition at line 85 of file SundanceBinaryCellFilter.hpp.

Referenced by internalGetCells(), lessThan(), and opName().

My right operand.

Definition at line 91 of file SundanceBinaryCellFilter.hpp.

Referenced by dimension(), internalGetCells(), lessThan(), and toXML().

Site Contact