35 template<
class Form,
class Cmpt, Foam::direction Ncmpts>
54 template<
class Form,
class Cmpt, Foam::direction Ncmpts>
60 std::ostringstream buf;
62 buf <<
'(' << vs.
v_[0];
66 buf <<
',' << vs.
v_[i];
77 template<
class Form,
class Cmpt, Foam::direction Ncmpts>
81 VectorSpace<Form, Cmpt, Ncmpts>& vs
91 is.readEnd(
"VectorSpace");
99 template<
class Form,
class Cmpt, Foam::direction Ncmpts>
103 const VectorSpace<Form, Cmpt, Ncmpts>& vs
106 os << token::BEGIN_LIST << vs.
v_[0];
110 os << token::SPACE << vs.
v_[i];
113 os << token::END_LIST;
virtual bool check(const char *operation) const
Check IOstream status for given operation.
bool readBegin(const char *funcName)
Begin read of data chunk, starts with '('.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
VectorSpace()=default
Default construct.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
OBJstream os(runTime.globalPath()/outputName)
Cmpt v_[Ncmpts]
The components of this vector space.