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