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