79 enum option :
unsigned char
127 inline keyType(
const string& str);
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);
249Istream&
operator>>(Istream& is, keyType& val);
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A class for handling keywords in dictionaries.
bool assign(const token &tok)
Assign from word or string token.
option
Enumeration for the data type and search/match modes (bitmask)
@ REGEX
Regular expression.
@ RECURSIVE
Recursive search (eg, in dictionary)
keyType(const keyType &)=default
Copy construct.
bool isLiteral() const noexcept
The keyType is treated as literal, not as pattern.
static const keyType null
An empty keyType.
bool compile() noexcept
Mark as regular expression.
static bool valid(const char c)
Test for valid keyType character?
keyType(keyType &&)=default
Move construct.
void uncompile() noexcept
Mark as literal string.
keyType()
Default construct, empty literal.
void swap(keyType &rhs)
Swap contents. Self-swapping is a no-op.
bool isPattern() const noexcept
The keyType is treated as a pattern, not as literal string.
void setType(option opt, bool adjust=false)
void clear()
Clear string and set as literal.
bool match(const std::string &text, bool literal=false) const
Smart match as regular expression or as a string.
A token holds an item read from Istream.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
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))
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Istream & operator>>(Istream &, directionInfo &)
Includes some standard C++ headers, defines global macros and templates used in multiple places by Op...
#define FOAM_DEPRECATED_FOR(since, replacement)
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
Hashing functor for string and derived string classes.