AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ dump() [3/5]

template<typename T >
void aff::dump ( const aff::ConstSeries< T > &  series,
std::ostream &  os = std::cout 
)

Dump series contents.

Definition at line 58 of file dump_series.h.

References aff::ConstSeries< T >::f(), aff::ConstSeries< T >::l(), and aff::ConstSeries< T >::size().

60 {
61  os << "dump of a Series object:" << endl;
62  os << " size: " << series.size() << endl;
63  os << " index range: [" << series.f() << ":" << series.l() << "]" << endl;
64  os << " elements:" << endl;
65  int i=0;
66  for (aff::Tsubscript k=series.f(); k<=series.l(); k++)
67  {
68  if (!i) { os << " "; }
69  os.width(8);
70  os << series(k) << " ";
71  if (++i>7) { i=0; os << endl; }
72  }
73  os << endl;
74 }
const Tsubscript & l() const
(short for) last valid index
Definition: series.h:200
Tsize size() const
by size we mean the size defined by the shape
Definition: linearshape.h:113
ptrdiff_t Tsubscript
Type to hold an array&#39;s subscript value.
Definition: types.h:53
const Tsubscript & f() const
(short for) first valid index
Definition: series.h:197
Here is the call graph for this function: