Go to the documentation of this file.
38 #ifndef topoSetSource_H
39 #define topoSetSource_H
210 word topoSetSourceType(is);
228 return usageTable[
name];
255 const word& topoSetSourceType,
263 const word& topoSetSourceType,
autoPtr< topoSetSource > operator()(Istream &is) const
virtual ~topoSetSource()
Destructor.
static HashTable< string > * usageTablePtr_
A table of usage strings.
sourceType
Enumeration defining the types of sources.
A class for handling words, derived from string.
static setAction toAction(const word &actionName)
Convert string to action.
static const string & usage(const word &name)
Class with constructor to add usage string to table.
topoSetSource(const topoSetSource &)
Disallow default bitwise copy construct.
setAction
Enumeration defining the valid actions.
static const string illegalSource_
const polyMesh & mesh() const
Mesh consisting of general polyhedral cells.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void applyToSet(const setAction action, topoSet &) const =0
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
TypeName("topoSetSource")
Runtime type information.
void operator=(const topoSetSource &)
Disallow default bitwise assignment.
General set of labels of mesh quantity (points, cells, faces).
A list of keyword definitions, which are a keyword followed by any number of values (e....
autoPtr< topoSetSource > clone() const
Clone.
bool found(const Key &) const
Return true if hashedEntry is found in table.
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)
static const NamedEnum< setAction, 8 > actionNames_
An STL-conforming hash table.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
declareRunTimeSelectionTable(autoPtr, topoSetSource, word,(const polyMesh &mesh, const dictionary &dict),(mesh, dict))
Macros to ease declaration of run-time selection tables.
static Istream & checkIs(Istream &is)
Check state of stream.
virtual sourceType setType() const =0
addToUsageTable(const word &name, const string &msg)
word name(const complex &)
Return a string representation of a complex.
void addOrDelete(topoSet &set, const label cellI, const bool) const
Add (if bool) cellI to set or delete cellI from set.
Class used for the read-construction of.