Go to the documentation of this file.
41 #ifndef topoSetSource_H
42 #define topoSetSource_H
277 const word sourceTypeName(is);
313 const word& topoSetSourceType,
321 const word& topoSetSourceType,
void verbose(bool on)
Set the current verbosity.
autoPtr< topoSetSource > operator()(Istream &is) const
static HashTable< string > * usageTablePtr_
A table of usage strings.
sourceType
Enumeration defining the types of sources.
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
Clear the set, possibly creating it.
A class for handling words, derived from Foam::string.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
static setAction toAction(const word &actionName)
Deprecated(2018-07) convert string to action.
Geometric type is "cell".
static bool isZoneSource(const sourceType t)
True if a "zone" source.
static const string & usage(const word &name)
Class with constructor to add usage string to table.
static bool isCell(const sourceType t)
True if "cell" geometric type.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const =0
Apply specified action to the topoSet.
setAction
Enumeration defining the valid actions.
static const string illegalSource_
Create a new set and ADD elements to it.
const polyMesh & mesh() const
Reference to the mesh.
Mesh consisting of general polyhedral cells.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Source based on mesh zone.
bool verbose_
Verbosity (default: true)
Geometric type is "face".
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
word name(const complex &c)
Return string representation of complex.
topoSetSource(const topoSetSource &)=delete
No copy construct.
TypeName("topoSetSource")
Runtime type information.
General set of labels of mesh quantity (points, cells, faces).
static bool check(labelList &list, const label maxLabel)
Detect and remove any values less than 0 or ge maxLabel.
void operator=(const topoSetSource &)=delete
No copy assignment.
Subset with elements in the set.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
autoPtr< topoSetSource > clone() const
Clone (disallowed)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Subtract elements from the set.
static bool isPoint(const sourceType t)
True if "point" geometric type.
static autoPtr< topoSetSource > New(const word &topoSetSourceType, const polyMesh &mesh, const dictionary &dict)
Return a reference to the selected topoSetSource.
Base class of a source for a topoSet.
iNew(const polyMesh &mesh)
A HashTable similar to std::unordered_map.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
declareRunTimeSelectionTable(autoPtr, topoSetSource, word,(const polyMesh &mesh, const dictionary &dict),(mesh, dict))
static bool isFace(const sourceType t)
True if "face" geometric type.
Print contents of the set.
bool verbose() const
Return the current verbosity.
Macros to ease declaration of run-time selection tables.
static Istream & checkIs(Istream &is)
Check state of stream.
virtual sourceType setType() const =0
The source category (set/zone, cell/face/point)
Remove the set (from the file system)
virtual ~topoSetSource()=default
Destructor.
Invert the elements in the set.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
static bool isSetSource(const sourceType t)
True if a "set" source.
addToUsageTable(const word &name, const string &msg)
const polyMesh & mesh_
Reference to the mesh.
Geometric type is "point".
Class used for the read-construction of.
static const Enum< setAction > actionNames
The setActions text representations.