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