33 template<
class Form,
class Cmpt, Foam::direction Ncmpts>
40 is.
readBegin(
"VectorSpace<Form, Cmpt, Ncmpts>");
48 is.
readEnd(
"VectorSpace<Form, Cmpt, Ncmpts>");
51 is.
check(
"VectorSpace<Form, Cmpt, Ncmpts>::VectorSpace(Istream&)");
55 template<
class Form,
class Cmpt, Foam::direction Ncmpts>
61 std::ostringstream buf;
63 buf <<
'(' << vs.
v_[0];
67 buf <<
',' << vs.
v_[i];
78 template<
class Form,
class Cmpt, Foam::direction Ncmpts>
86 is.
readBegin(
"VectorSpace<Form, Cmpt, Ncmpts>");
94 is.readEnd(
"VectorSpace<Form, Cmpt, Ncmpts>");
97 is.check(
"operator>>(Istream&, VectorSpace<Form, Cmpt, Ncmpts>&)");
103 template<
class Form,
class Cmpt, Foam::direction Ncmpts>
110 os << token::BEGIN_LIST << vs.
v_[0];
114 os << token::SPACE << vs.
v_[i];
117 os << token::END_LIST;
120 os.check(
"operator<<(Ostream&, const VectorSpace<Form, Cmpt, Ncmpts>&)");
Istream & readBegin(const char *funcName)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
VectorSpace()
Construct null.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Istream & readEnd(const char *funcName)
A class for handling words, derived from string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
word name(const complex &)
Return a string representation of a complex.
Cmpt v_[Ncmpts]
The components of this vector space.