| 172 | //- Class used for the read-construction of |
| 173 | // PtrLists of sampledSet |
| 174 | class iNew |
| 175 | { |
| 176 | const polyMesh& mesh_; |
| 177 | const meshSearch& searchEngine_; |
| 178 | |
| 179 | public: |
| 180 | |
| 181 | iNew(const polyMesh& mesh, const meshSearch& searchEngine) |
| 182 | : |
| 183 | mesh_(mesh), |
| 184 | searchEngine_(searchEngine) |
| 185 | {} |
| 186 | |
| 187 | autoPtr<sampledSet> operator()(Istream& is) const |
| 188 | { |
| 189 | word name(is); |
| 190 | dictionary dict(is); |
| 191 | return sampledSet::New(name, mesh_, searchEngine_, dict); |
| 192 | } |
| 193 | }; |
| 194 | |
| 195 | |
| 196 | // Constructors |