Go to the documentation of this file.
54 { setAction::ADD,
"add" },
55 { setAction::SUBTRACT,
"subtract" },
56 { setAction::SUBSET,
"subset" },
57 { setAction::INVERT,
"invert" },
58 { setAction::CLEAR,
"clear" },
59 { setAction::NEW,
"new" },
60 { setAction::REMOVE,
"remove" },
61 { setAction::LIST,
"list" },
62 { setAction::SUBTRACT,
"delete" },
68 "Illegal topoSetSource name"
76 const label len = list.size();
80 for (label i=0; i < len; ++i)
82 const label val = list[i];
84 if (val >= 0 && val < maxLabel)
94 const label nReject = (len - nGood);
111 const word& topoSetSourceType,
116 auto* ctorPtr = wordConstructorTable(topoSetSourceType);
125 *wordConstructorTablePtr_
135 const word& topoSetSourceType,
140 auto* ctorPtr = istreamConstructorTable(topoSetSourceType);
148 *istreamConstructorTablePtr_
215 for (
const label
id : labels)
222 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...
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
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...
void resize(const label len)
Adjust allocated size of list.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
setAction
Enumeration defining the valid actions.
static const string illegalSource_
A class for handling character strings derived from std::string.
bool verbose() const noexcept
Get output verbosity.
Mesh consisting of general polyhedral cells.
bool good() const noexcept
True if next operation might succeed.
#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)....
bool eof() const noexcept
True if end of input seen.
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.
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.
Base class of a source for a topoSet.
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.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
defineTypeNameAndDebug(combustionModel, 0)
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
static const Enum< setAction > actionNames
The setActions text representations.