43 #ifndef Foam_keyType_H 44 #define Foam_keyType_H 58 Istream&
operator>>(Istream& is, keyType& val);
127 inline keyType(
const string& str);
140 inline keyType(
const char* str,
option opt = option::LITERAL);
152 inline static bool valid(
const char c);
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 keywords in dictionaries.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds an item read from Istream.
void uncompile() noexcept
Mark as literal string.
bool match(const std::string &text, bool literal=false) const
Smart match as regular expression or as a string.
Recursive search (eg, in dictionary)
class FOAM_DEPRECATED_FOR(2017-05, "Foam::Enum") NamedEnum
bool compile() noexcept
Mark as regular expression.
void setType(option opt, bool adjust=false)
Change the representation, optionally stripping invalid word characters when changing to a literal...
bool assign(const token &tok)
Assign from word or string token.
A class for handling words, derived from Foam::string.
Istream & operator>>(Istream &, directionInfo &)
bool isPattern() const noexcept
The keyType is treated as a pattern, not as literal string.
keyType()
Default construct, empty literal.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool isLiteral() const noexcept
The keyType is treated as literal, not as pattern.
OBJstream os(runTime.globalPath()/outputName)
Hashing functor for string and derived string classes.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
const dimensionedScalar c
Speed of light in a vacuum.
option
Enumeration for the data type and search/match modes (bitmask)
static bool valid(const char c)
Test for valid keyType character?
void swap(keyType &rhs)
Swap contents. Self-swapping is a no-op.
Includes some standard C++ headers, defines global macros and templates used in multiple places by Op...
static const keyType null
An empty keyType.
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.