| 49 | \*---------------------------------------------------------------------------*/ |
| 50 | |
| 51 | class pointPatchDist |
| 52 | : |
| 53 | public pointScalarField |
| 54 | { |
| 55 | |
| 56 | private: |
| 57 | |
| 58 | // Private Member Data |
| 59 | |
| 60 | //- Reference to pointField |
| 61 | const pointField& points_; |
| 62 | |
| 63 | //- Set of patch IDs |
| 64 | const labelHashSet patchIDs_; |
| 65 | |
| 66 | //- Number of unset points |
| 67 | label nUnset_; |
| 68 | |
| 69 | |
| 70 | // Private Member Functions |
| 71 | |
| 72 | //- Disallow default bitwise copy construct |
| 73 | pointPatchDist(const pointPatchDist&); |
| 74 | |
| 75 | //- Disallow default bitwise assignment |
| 76 | void operator=(const pointPatchDist&); |
| 77 | |
| 78 | |
| 79 | public: |
| 80 | |
| 81 | // Constructors |
| 82 | |
| 83 | //- Construct from mesh and set of patches |
| 84 | pointPatchDist |
| 85 | ( |
| 86 | const pointMesh& pMesh, |
| 87 | const labelHashSet& patchIDs, |
| 88 | const pointField& points |
| 89 | ); |
| 90 | |
| 91 | |
| 92 | //- Destructor |
| 93 | virtual ~pointPatchDist(); |
| 94 | |
| 95 | |
| 96 | // Member Functions |
| 97 | |
| 98 | const pointScalarField& y() const |
| 99 | { |
| 100 | return *this; |
| 101 | } |
| 102 | |
| 103 | label nUnset() const |
| 104 | { |
| 105 | return nUnset_; |
| 106 | } |
| 107 | |
| 108 | //- Correct for mesh geom/topo changes |