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>
91 VectorSpace<Form, Cmpt, Ncmpts>& vs
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>
116 const VectorSpace<Form, Cmpt, Ncmpts>& vs
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>&)");
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)....
Istream & readEnd(const char *funcName)
Istream & readBegin(const char *funcName)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
VectorSpace()
Construct null.
Cmpt v_[Ncmpts]
The components of this vector space.
A class for handling words, derived from string.
word name(const bool)
Return a word representation of a bool.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)