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>
87 template<
class Form,
class Cmpt, Foam::direction Ncmpts>
95 is.
readBegin(
"VectorSpace<Form, Cmpt, Ncmpts>");
103 is.readEnd(
"VectorSpace<Form, Cmpt, Ncmpts>");
106 is.check(
"operator>>(Istream&, VectorSpace<Form, Cmpt, Ncmpts>&)");
112 template<
class Form,
class Cmpt, Foam::direction Ncmpts>
119 os << token::BEGIN_LIST << vs.
v_[0];
123 os << token::SPACE << vs.
v_[i];
126 os << token::END_LIST;
129 os.check(
"operator<<(Ostream&, const VectorSpace<Form, Cmpt, Ncmpts>&)");
Istream & readBegin(const char *funcName)
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)...
VectorSpace()
Construct null.
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...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.
Cmpt v_[Ncmpts]
The components of this vector space.