Go to the documentation of this file.
58 Istream&
operator>>(Istream& is, keyType& val);
79 enum option :
unsigned char
127 inline keyType(
const string& str);
140 inline keyType(
const char* str,
option opt = option::LITERAL);
152 inline static bool valid(
const char c);
179 inline
bool compile() noexcept;
202 bool match(const std::
string& text,
bool literal=false) const;
209 inline
bool operator()(const std::
string& text) const;
212 void operator=(const std::
string&) = delete;
216 inline
void operator=(const
keyType& str);
220 inline
void operator=(
keyType&& str);
223 inline
void operator=(const
word& str);
226 inline
void operator=(const
string& str);
229 inline
void operator=(const
char* str);
249 Istream&
operator>>(Istream& is, keyType& val);
A class for handling words, derived from Foam::string.
bool isPattern() const noexcept
The keyType is treated as a pattern, not as literal string.
keyType()
Default construct, empty literal.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
void clear()
Clear string and set as literal.
static bool valid(const char c)
Test for valid keyType character?
Istream & operator>>(Istream &, directionInfo &)
A token holds an item read from Istream.
void swap(keyType &rhs)
Swap contents. Self-swapping is a no-op.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
A class for handling keywords in dictionaries.
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
Recursive search (eg, in dictionary)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool assign(const token &tok)
Assign from word or string token.
void uncompile() noexcept
Mark as literal string.
OBJstream os(runTime.globalPath()/outputName)
void setType(option opt, bool adjust=false)
bool compile() noexcept
Mark as regular expression.
Hashing functor for string and derived string classes.
class FOAM_DEPRECATED_FOR(2017-05, "Foam::Enum") NamedEnum
const dimensionedScalar c
Speed of light in a vacuum.
bool isLiteral() const noexcept
The keyType is treated as literal, not as pattern.
option
Enumeration for the data type and search/match modes (bitmask)
bool match(const std::string &text, bool literal=false) const
Smart match as regular expression or as a string.