Go to the documentation of this file.
6 #ifndef OutputTecplot_hh
7 #define OutputTecplot_hh
33 void header(std::ostream& os, std::string name, uint cnt = 0);
36 std::ostream&
info(std::ostream& os)
const {
58 void header(std::ostream& os, std::string name, uint cnt = 0);
61 std::ostream&
info(std::ostream& os)
const {
62 return os << OutputTecplot<F>(std::real(
val_)) <<
" "
66 const std::complex<F>&
val_;
71 (std::ostream& os, std::string name, uint cnt) {
72 os << name << cnt <<
"r, " << name << cnt <<
"i";
85 void header(std::ostream& os, std::string name, uint cnt = 0);
88 std::ostream&
info(std::ostream& os)
const {
89 for(uint i = 0; i <
val_.size(); ++i)
99 (std::ostream& os, std::string name, uint cnt) {
101 for(uint i = 0; i < val_.size(); ) {
102 o.
header(os, name, cnt+i);
103 if (++i < val_.size()) os <<
", ";
110 template<
typename F,
int dim>
118 void header(std::ostream& os, std::string name, uint cnt = 0);
121 std::ostream&
info(std::ostream& os)
const {
122 for(uint i = 0; i < dim; ++i)
130 template<
typename F,
int dim>
132 (std::ostream& os, std::string name, uint cnt) {
137 for(uint i = 0; i < dim; ) {
138 o.
header(os, name, cnt+i);
139 if (++i < dim) os <<
", ";
146 #endif // OutputTecplot_hh
Basic class for a Point or a vector.
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
OutputTecplot(const Point< F, dim > &val)
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
const std::complex< F > & val_
Class for output of objects to tecplot.
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
OutputTecplot(const F &val)
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
const Point< F, dim > & val_
OutputTecplot(const Array< F > &val)
OutputTecplot(const std::complex< F > &val)
Class providing an output operator.
void header(std::ostream &os, std::string name, uint cnt=0)
Output of a header.
Basic namespace for Concepts-2.