| 52 | \*---------------------------------------------------------------------------*/ |
| 53 | |
| 54 | class cellToFace |
| 55 | : |
| 56 | public topoSetSource |
| 57 | { |
| 58 | public: |
| 59 | //- Enumeration defining the valid options |
| 60 | enum cellAction |
| 61 | { |
| 62 | ALL, |
| 63 | BOTH |
| 64 | }; |
| 65 | |
| 66 | |
| 67 | private: |
| 68 | |
| 69 | //- Add usage string |
| 70 | static addToUsageTable usage_; |
| 71 | |
| 72 | static const NamedEnum<cellAction, 2> cellActionNames_; |
| 73 | |
| 74 | //- Name of set to use |
| 75 | word setName_; |
| 76 | |
| 77 | //- Option |
| 78 | cellAction option_; |
| 79 | |
| 80 | |
| 81 | // Private Member Functions |
| 82 | |
| 83 | //- Depending on face to cell option add to or delete from cellSet. |
| 84 | void combine(topoSet& set, const bool add) const; |
| 85 | |
| 86 | |
| 87 | public: |
| 88 | |
| 89 | //- Runtime type information |
| 90 | TypeName("cellToFace"); |
| 91 | |
| 92 | // Constructors |
| 93 | |
| 94 | //- Construct from components |
| 95 | cellToFace |
| 96 | ( |
| 97 | const polyMesh& mesh, |
| 98 | const word& setName, |
| 99 | const cellAction option |
| 100 | ); |
| 101 | |
| 102 | //- Construct from dictionary |
| 103 | cellToFace |
| 104 | ( |
| 105 | const polyMesh& mesh, |
| 106 | const dictionary& dict |
| 107 | ); |
| 108 | |
| 109 | //- Construct from Istream |
| 110 | cellToFace |
| 111 | ( |
no outgoing calls
no test coverage detected