Go to the documentation of this file.
41 { fieldFormat::SHORT,
"short" },
42 { fieldFormat::LONG,
"long" },
43 { fieldFormat::FREE,
"free" },
53 { loadFormat::PLOAD2,
"PLOAD2" },
54 { loadFormat::PLOAD4,
"PLOAD4" },
62 const auto signPos = str.find_last_of(
"+-");
66 signPos == std::string::npos
68 || str[signPos-1] ==
'E' || str[signPos-1] ==
'e'
73 return readScalar(str);
85 readScalar(str.substr(0, signPos), value)
86 &&
readInt(str.substr(signPos), exponent)
91 value *=
::pow(10, exponent);
108 const std::string& str,
113 const auto beg =
pos;
114 const auto end = str.find(
',',
pos);
116 if (
end == std::string::npos)
126 return str.substr(beg, len);
139 os.setf(ios_base::uppercase);
141 const label offset = 7;
143 label prec = 16 - offset;
146 case fieldFormat::SHORT :
152 case fieldFormat::LONG :
153 case fieldFormat::FREE :
171 os.setf(ios_base::left);
175 case fieldFormat::SHORT :
181 case fieldFormat::LONG :
187 case fieldFormat::FREE :
194 os.unsetf(ios_base::left);
213 auto offsetIter = decompOffsets.begin();
216 for (
const face&
f : faces)
218 const label
n =
f.size();
220 if (
n != 3 &&
n != 4)
223 f.triangles(
points, decompFaces);
227 *(++offsetIter) = decompFaces.size();
230 return decompFaces.size();
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A class for handling words, derived from Foam::string.
void resize(const label len)
Adjust allocated size of list.
bool isspace(char c) noexcept
Test for whitespace (C-locale)
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void clear() noexcept
Clear the addressed list, i.e. set the size to zero.
word format(conversionProperties.get< word >("format"))
Istream and Ostream manipulators taking arguments.
graph_traits< Graph >::vertices_size_type size_type
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const Foam::Enum< errorType > errorNames
Strings corresponding to the errorType.
OBJstream os(runTime.globalPath()/outputName)
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
Omanip< int > setw(const int i)
IOstream & scientific(IOstream &io)
errorManipArg< error, int > exit(error &err, const int errNo=1)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A face is a list of labels corresponding to mesh vertices.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
int readInt(Istream &is)
Read int from stream.
void size(const label n)
Older name for setAddressableSize.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
dimensionedScalar pos(const dimensionedScalar &ds)