Go to the documentation of this file.
71 enum option :
unsigned char
96 void operator=(
const std::string&) =
delete;
149 inline static bool valid(
char c);
171 inline void uncompile(
bool adjust =
false);
187 bool match(
const std::string& text,
bool literal=
false)
const;
194 inline bool operator()(
const std::string& text)
const;
199 inline void operator=(
const keyType&
s);
206 inline void operator=(
const word&
s);
209 inline void operator=(
const string&
s);
212 inline void operator=(
const char*
s);
230 Istream&
operator>>(Istream& is, keyType& val);
233 Ostream&
operator<<(Ostream& os,
const keyType& val);
static bool valid(char c)
Is this character valid for a keyType?
A class for handling words, derived from Foam::string.
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 swap(keyType &s)
Swap contents. Self-swapping is a no-op.
void clear()
Clear string and set as literal.
bool isPattern() const
The keyType is treated as a pattern, not as literal string.
bool operator()(const std::string &text) const
Perform smart match on text, as per match()
Istream & operator>>(Istream &, directionInfo &)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
A class for handling keywords in dictionaries.
Recursive search (eg, in dictionary)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void setType(option opt, bool adjust=false)
Change the representation.
bool compile()
Mark as regular expression.
void uncompile(bool adjust=false)
Mark as literal, instead of a regular expression.
class FOAM_DEPRECATED_FOR(2017-05, "Foam::Enum") NamedEnum
const dimensionedScalar c
Speed of light in a vacuum.
bool isLiteral() const
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.