Sierra Toolkit Version of the Day
stk::mesh::Selector Class Reference

This is a class for selecting buckets based on a set of meshparts and set logic. More...

#include <Selector.hpp>

Collaboration diagram for stk::mesh::Selector:

List of all members.

Public Member Functions

 ~Selector ()
 
 Selector ()
 A default Selector selects nothing.
 Selector (const Selector &selector)
 Copy constructor.
Selectoroperator= (const Selector &B)
 Operator equality copy constructor.
 Selector (const Part &part)
 A part that is required.
Selectoroperator&= (const Selector &selector)
 Intersection: this = this INTERSECT ( expression )
Selectoroperator|= (const Selector &selector)
 Union: this = this UNION ( expression )
Selectorcomplement ()
 Complement: this = !(this) Postcondition: this is a compound expression.
Selector operator! () const
 Complement: return !(this)
bool operator() (const Bucket &candidate) const
 Is this bucket a subset of the set defined by thePerceptMesh* mesh_data selector expression.
bool operator() (const Bucket *candidate) const
 Is this bucket a subset of the set defined by thePerceptMesh* mesh_data selector expression.
bool operator() (const Entity &candidate) const
 Is this entity a member of the set defined by the selector expression.

Friends

class std::vector< OpType >
 
std::ostream & operator<< (std::ostream &out, const Selector &selector)
 Pretty print the set-expression with part names.

Related Functions

(Note that these are not member functions.)

Selector operator& (const Part &A, const Part &B)
 
Selector operator& (const Part &A, const Selector &B)
 
Selector operator& (const Selector &A, const Part &B)
 
Selector operator& (const Selector &A, const Selector &B)
 
Selector operator| (const Part &A, const Part &B)
 
Selector operator| (const Part &A, const Selector &B)
 
Selector operator| (const Selector &A, const Part &B)
 
Selector operator| (const Selector &A, const Selector &B)
 
Selector operator! (const Part &A)
 
Selector selectUnion (const PartVector &union_part_vector)
 
Selector selectIntersection (const PartVector &intersection_part_vector)
 
Selector selectField (const FieldBase &field)
 Return a selector for the union of the parts where field exists.

Detailed Description

This is a class for selecting buckets based on a set of meshparts and set logic.

The selector allows complements, unions and intersections. All of this logic is converted to NAND, meaning nots and AND logic. Each operation is placed on a stack of operands where each operand is either a left parenthesis with a number of operands included in the compound object, or an actual meshpart. All operands have a unary bit used to complement the operand.

Please see the unit testing for additional documentation.

Definition at line 37 of file Selector.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends