Go to the documentation of this file.
33 template<
class ListType>
34 inline void Foam::labelledTri::assignList(
const ListType& list)
36 const label len = list.size();
39 if (len < 3 || len > 4)
42 <<
"size " << len <<
" != (3 or 4)"
46 auto iter = list.begin();
48 for (label i=0; i<3; ++i)
54 index_ = (len == 4) ? *iter : 0;
129 Detail::readContiguous<labelledTri>
132 reinterpret_cast<char*
>(&t),
154 reinterpret_cast<const char*
>(&t),
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
streamFormat format() const noexcept
Get the current stream format.
Istream & operator>>(Istream &, directionInfo &)
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
virtual Ostream & write(const char c)
Write character.
bool readBegin(const char *funcName)
Begin read of data chunk, starts with '('.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
label index() const noexcept
Return the index (eg, the region)
labelledTri()
Default construct, with invalid point labels and region (-1).
virtual bool check(const char *operation) const
Check IOstream status for given operation.
OBJstream os(runTime.globalPath()/outputName)
errorManip< error > abort(error &err)
label & operator[](const label i)
Return element of FixedList.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A triangular face using a FixedList of labels corresponding to mesh vertices.
A triFace with additional (region) index.
const dimensionedScalar c
Speed of light in a vacuum.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Begin list [isseparator].