Go to the documentation of this file.
53 { setAction::ADD,
"add" },
54 { setAction::SUBTRACT,
"subtract" },
55 { setAction::SUBSET,
"subset" },
56 { setAction::INVERT,
"invert" },
57 { setAction::CLEAR,
"clear" },
58 { setAction::NEW,
"new" },
59 { setAction::REMOVE,
"remove" },
60 { setAction::LIST,
"list" },
61 { setAction::SUBTRACT,
"delete" },
67 "Illegal topoSetSource name"
75 const label len = list.size();
79 for (label i=0; i < len; ++i)
81 const label val = list[i];
83 if (val >= 0 && val < maxLabel)
93 const label nReject = (len - nGood);
110 const word& topoSetSourceType,
115 auto cstrIter = wordConstructorTablePtr_->cfind(topoSetSourceType);
117 if (!cstrIter.found())
124 *wordConstructorTablePtr_
134 const word& topoSetSourceType,
139 auto cstrIter = istreamConstructorTablePtr_->cfind(topoSetSourceType);
141 if (!cstrIter.found())
147 *istreamConstructorTablePtr_
214 for (
const label
id : labels)
221 for (
const label
id : labels)
static HashTable< string > * usageTablePtr_
A table of usage strings.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
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...
bool eof() const
Return true if end of input seen.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
setAction
Enumeration defining the valid actions.
static const string illegalSource_
A class for handling character strings derived from std::string.
Mesh consisting of general polyhedral cells.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual bool set(const label id)
Set an index.
topoSetSource(const topoSetSource &)=delete
No copy construct.
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 resize(const label newSize)
Adjust allocated size of list.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
static autoPtr< topoSetSource > New(const word &topoSetSourceType, const polyMesh &mesh, const dictionary &dict)
Return a reference to the selected topoSetSource.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static Istream & checkIs(Istream &is)
Check state of stream.
virtual bool unset(const label id)
Unset an index.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
bool good() const
Return true if next operation might succeed.
defineTypeNameAndDebug(combustionModel, 0)
static const Enum< setAction > actionNames
The setActions text representations.