Go to the documentation of this file.
41 #ifndef topoSetSource_H
42 #define topoSetSource_H
282 const word sourceTypeName(is);
322 const word& topoSetSourceType,
330 const word& topoSetSourceType,
autoPtr< topoSetSource > operator()(Istream &is) const
static HashTable< string > * usageTablePtr_
A table of usage strings.
sourceType
Enumeration defining the types of sources.
Add elements to current set.
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 const string & usage(const word &name)
Class with constructor to add usage string to table.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const =0
Apply specified action to the topoSet.
static bool isFace(const sourceType t) noexcept
True if "face" geometric type.
setAction
Enumeration defining the valid actions.
static bool isCell(const sourceType t) noexcept
True if "cell" geometric type.
static const string illegalSource_
bool verbose() const noexcept
Get output verbosity.
Create a new set and ADD elements to it.
static bool isSetSource(const sourceType t) noexcept
True if a "set" source.
Mesh consisting of general polyhedral cells.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
A source based on mesh zone.
bool verbose_
Output verbosity (default: true)
Geometric type is "face".
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
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.
Union of elements with current 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 current set.
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))
Print contents of the set.
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 (cell/face/point combined with set/zone)
Remove the set (from the file system)
const polyMesh & mesh() const noexcept
Reference to the mesh.
virtual ~topoSetSource()=default
Destructor.
Invert the elements in the current set.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
addToUsageTable(const word &name, const string &msg)
static bool isPoint(const sourceType t) noexcept
True if "point" geometric type.
static bool isZoneSource(const sourceType t) noexcept
True if a "zone" source.
const polyMesh & mesh_
Reference to the mesh.
Geometric type is "point".
A source based on topoSet.
Class used for the read-construction of.
static const Enum< setAction > actionNames
The setActions text representations.