ENH: distinguish between cell/face/point topoSetSource (#1060)

- add intermediate classes topoSetCellSource, topoSetFaceSource,
  topoSetPointSource and corresponding New() factories
This commit is contained in:
Mark Olesen
2018-10-30 12:01:36 +00:00
parent 9a87a043d6
commit 9b638f9a71
97 changed files with 1756 additions and 741 deletions

View File

@ -25,7 +25,7 @@ Class
Foam::labelToCell
Description
A topoSetSource to select cells based on explicitly given labels.
A topoSetCellSource to select cells based on explicitly given labels.
\heading Dictionary parameters
\table
@ -41,7 +41,7 @@ SourceFiles
#ifndef labelToCell_H
#define labelToCell_H
#include "topoSetSource.H"
#include "topoSetCellSource.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -54,7 +54,7 @@ namespace Foam
class labelToCell
:
public topoSetSource
public topoSetCellSource
{
// Private data
@ -73,12 +73,11 @@ public:
// Constructors
//- Construct from components
labelToCell
(
const polyMesh& mesh,
const labelList& labels
);
//- Construct from components, copying labels
labelToCell(const polyMesh& mesh, const labelList& labels);
//- Construct from components, moving labels
labelToCell(const polyMesh& mesh, labelList&& labels);
//- Construct from dictionary
labelToCell(const polyMesh& mesh, const dictionary& dict);
@ -93,11 +92,6 @@ public:
// Member Functions
virtual sourceType setType() const
{
return CELLSETSOURCE;
}
virtual void applyToSet
(
const topoSetSource::setAction action,