96 inline word(
const string&
s,
bool doStrip=
true);
99 inline word(
string&&
s,
bool doStrip=
true);
102 inline word(
const std::string&
s,
bool doStrip=
true);
105 inline word(std::string&&
s,
bool doStrip=
true);
108 inline word(
const char*
s,
bool doStrip=
true);
122 template<
class PrimitiveType>
126 const PrimitiveType& val
132 template<
class PrimitiveType>
135 const std::string& fmt,
136 const PrimitiveType& val
140 inline static bool valid(
char c);
145 static word validate(
const std::string&
s,
const bool prefix=
false);
154 const bool prefix=
false
248 return (a.name() <
b.
name());
265 return (a.type() <
b.type());
graph_traits< Graph >::vertices_size_type size_type
const word & name() const noexcept
Return the object name.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A class for handling character strings derived from std::string.
bool removeExt()
Remove extension, returning true if string changed.
bool hasExt() const
Return true if it has an extension or simply ends with a '.'.
A class for handling words, derived from Foam::string.
static word validate(const std::string &s, const bool prefix=false)
Construct validated word (no invalid characters).
static word printf(const char *fmt, const PrimitiveType &val)
Use a printf-style formatter for a primitive.
static const word null
An empty word.
word(const word &)=default
Copy construct.
word(word &&w)=default
Move construct.
word()=default
Default construct.
static bool valid(char c)
Is this character valid for a word?
word ext() const
Return file name extension (part after last .)
word & operator=(const word &s)
Copy assignment, no character validation required.
static int debug
Debugging.
void stripInvalid()
Strip invalid characters from this word.
word lessExt() const
Return word without extension (part before last .)
static word printf(const std::string &fmt, const PrimitiveType &val)
Use a printf-style formatter for a primitive.
static const char *const typeName
The typeName.
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))
tmp< GeometricField< Type, fvPatchField, volMesh > > operator&(const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Istream & operator>>(Istream &, directionInfo &)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
Extract name (as a word) from an object, typically using its name() method.
word operator()(const T &obj) const
bool operator()(const T &a, const T &b) const
Less-compare two objects by their name() method - for sorting.
Hashing functor for string and derived string classes.
Extract type (as a word) from an object, typically using its type() method.
word operator()(const T &obj) const
bool operator()(const T &a, const T &b) const
Less-compare two objects by their type() method - for sorting.