Go to the documentation of this file.
34 template<
class Form,
class Cmpt,
int nCmpt>
41 is.readBegin(
"VectorSpace<Form, Cmpt, nCmpt>");
43 for (
int i=0; i<nCmpt; i++)
49 is.readEnd(
"VectorSpace<Form, Cmpt, nCmpt>");
52 is.check(
"VectorSpace<Form, Cmpt, nCmpt>::VectorSpace(Istream&)");
57 template<
class Form,
class Cmpt,
int nCmpt>
61 const VectorSpace<Form, Cmpt, nCmpt>& vs
64 std::ostringstream buf;
68 for (
int i=0; i<nCmpt-1; i++)
70 buf << vs.v_[i] <<
',';
73 buf << vs.v_[nCmpt-1] <<
')';
81 template<
class Form,
class Cmpt,
int nCmpt>
85 VectorSpace<Form, Cmpt, nCmpt>& vs
89 is.
readBegin(
"VectorSpace<Form, Cmpt, nCmpt>");
91 for (
int i=0; i<nCmpt; i++)
97 is.
readEnd(
"VectorSpace<Form, Cmpt, nCmpt>");
100 is.
check(
"operator>>(Istream&, VectorSpace<Form, Cmpt, nCmpt>&)");
106 template<
class Form,
class Cmpt,
int nCmpt>
110 const VectorSpace<Form, Cmpt, nCmpt>& vs
113 os << token::BEGIN_LIST;
115 for (
int i=0; i<nCmpt-1; i++)
117 os << vs.v_[i] << token::SPACE;
120 os << vs.v_[nCmpt-1] << token::END_LIST;
123 os.
check(
"operator<<(Ostream&, const VectorSpace<Form, Cmpt, nCmpt>&)");
Istream & readEnd(const char *funcName)
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A class for handling words, derived from string.
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Istream & readBegin(const char *funcName)
word name(const complex &)
Return a string representation of a complex.