|
Sierra Toolkit Version of the Day
|
This is a class for selecting buckets based on a set of meshparts and set logic. More...
#include <Selector.hpp>
Public Member Functions | |
| ~Selector () | |
| | |
| Selector () | |
| A default Selector selects nothing. | |
| Selector (const Selector &selector) | |
| Copy constructor. | |
| Selector & | operator= (const Selector &B) |
| Operator equality copy constructor. | |
| Selector (const Part &part) | |
| A part that is required. | |
| Selector & | operator&= (const Selector &selector) |
| Intersection: this = this INTERSECT ( expression ) | |
| Selector & | operator|= (const Selector &selector) |
| Union: this = this UNION ( expression ) | |
| Selector & | complement () |
| 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 the 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) |
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.
| stk::mesh::Selector::~Selector | ( | ) |
Definition at line 30 of file Selector.cpp.
friend class std::vector< OpType > [friend] |
Definition at line 98 of file Selector.hpp.