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