54 { setAction::ADD,
"add" },
55 { setAction::SUBTRACT,
"subtract" },
56 { setAction::NEW,
"new" },
57 { setAction::SUBSET,
"subset" },
58 { setAction::INVERT,
"invert" },
59 { setAction::CLEAR,
"clear" },
60 { setAction::REMOVE,
"remove" },
61 { setAction::LIST,
"list" },
62 { setAction::IGNORE,
"ignore" },
63 { setAction::SUBTRACT,
"delete" },
73 { setAction::NEW,
"use" },
74 { setAction::ADD,
"add" },
75 { setAction::SUBTRACT,
"subtract" },
76 { setAction::SUBSET,
"subset" },
77 { setAction::INVERT,
"invert" },
78 { setAction::IGNORE,
"ignore" },
84 "Illegal topoSetSource name"
92 const label len = list.
size();
96 for (label i=0; i < len; ++i)
98 const label val = list[i];
100 if (val >= 0 && val < maxLabel)
110 const label nReject = (len - nGood);
127 const word& topoSetSourceType,
132 auto* ctorPtr = wordConstructorTable(topoSetSourceType);
141 *wordConstructorTablePtr_
151 const word& topoSetSourceType,
156 auto* ctorPtr = istreamConstructorTable(topoSetSourceType);
164 *istreamConstructorTablePtr_
231 for (
const label
id : labels)
238 for (
const label
id : labels)
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A HashTable similar to std::unordered_map.
bool good() const noexcept
True if next operation might succeed.
bool eof() const noexcept
True if end of input seen.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void resize(const label len)
Adjust allocated size of list.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
void size(const label n)
Older name for setAddressableSize.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Mesh consisting of general polyhedral cells.
A class for handling character strings derived from std::string.
Base class of a source for a topoSet.
static const string illegalSource_
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
static bool check(labelList &list, const label maxLabel)
Detect and remove any values less than 0 or ge maxLabel.
setAction
Enumeration defining various actions.
static HashTable< string > * usageTablePtr_
A table of usage strings.
bool verbose() const noexcept
Get output verbosity.
static Istream & checkIs(Istream &is)
Check state of stream.
static const Enum< setAction > actionNames
static const Enum< setAction > combineNames
General set of labels of mesh quantity (points, cells, faces).
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.