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

◆ dump() [4/5]

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

Dump heap contents.

Definition at line 74 of file dump_sharedheap.h.

References dump_layout(), and aff::ConstSharedHeap< T >::size().

76 {
77  os << "dump of SharedHeap object:" << endl;
78  dump_layout(sharedheap, os);
79  os << " element values:" << endl;
80  int i=0;
81  for (aff::Tsize k=0; k<sharedheap.size(); k++)
82  {
83  if (!i) { os << " "; }
84  os.width(8);
85  os << sharedheap[k] << " ";
86  if (++i>7) { i=0; os << endl; }
87  }
88  os << endl;
89 }
const Tsize & size() const
Definition: sharedheap.h:179
void dump_layout(const aff::ConstSharedHeap< T > &sharedheap, std::ostream &os=std::cout)
Dump heap layout.
size_t Tsize
Type to hold the size of an array dimension.
Definition: types.h:51
Here is the call graph for this function: