Commit af0c10c5 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

improved section titles

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 1268
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent e88a7bb9
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: dump_array.h,v 1.3 2002-12-29 00:09:06 forbrig Exp $
* $Id: dump_array.h,v 1.4 2003-01-03 20:44:00 forbrig Exp $
* \author Thomas Forbriger
* \date 19/12/2002
*
......@@ -18,6 +18,9 @@
* - 28/12/2002 V1.1 (thof)
* - functions now take ConstArray class reference
* arguments
* - 03/01/2003 V1.2 (thof)
* - value dump looked like dump of SharedHeap
* introduced section title
*
* ============================================================================
*/
......@@ -26,12 +29,13 @@
#ifndef AFF_DUMP_ARRAY_H_VERSION
#define AFF_DUMP_ARRAY_H_VERSION \
"AFF_DUMP_ARRAY_H V1.1"
"AFF_DUMP_ARRAY_H V1.2"
#define AFF_DUMP_ARRAY_H_CVSID \
"$Id: dump_array.h,v 1.3 2002-12-29 00:09:06 forbrig Exp $"
"$Id: dump_array.h,v 1.4 2003-01-03 20:44:00 forbrig Exp $"
#include<iostream>
#include<aff/array.h>
#include<aff/lib/dump_sharedheap.h>
namespace aff {
......@@ -124,7 +128,7 @@ void dump_array(const ConstArray<T>& array,
AFF_assert((i<Strided::Mmax_dimen),
"ERROR (dump_map): illegal dimensionality");
dump(array);
os << " elements through " << i+1 << " dimensional access:" << endl;
os << "Array elements through " << i+1 << " dimensional access:" << endl;
Strided::TIndexVec index(array.first());
dump_array_helper(array, i, i, index, os);
}
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: dump_sharedheap.h,v 1.2 2002-12-29 00:09:06 forbrig Exp $
* $Id: dump_sharedheap.h,v 1.3 2003-01-03 20:44:00 forbrig Exp $
* \author Thomas Forbriger
* \date 19/12/2002
*
......@@ -18,6 +18,8 @@
* - 28/12/2002 V1.1 (thof)
* - functions now take ConstSharedHeap class reference
* arguments
* - 03/01/2003 V1.2 (thof)
* - distinguish more clearly between size and values
*
* ============================================================================
*/
......@@ -26,9 +28,9 @@
#ifndef AFF_DUMP_SHAREDHEAP_H_VERSION
#define AFF_DUMP_SHAREDHEAP_H_VERSION \
"AFF_DUMP_SHAREDHEAP_H V1.1"
"AFF_DUMP_SHAREDHEAP_H V1.2"
#define AFF_DUMP_SHAREDHEAP_H_CVSID \
"$Id: dump_sharedheap.h,v 1.2 2002-12-29 00:09:06 forbrig Exp $"
"$Id: dump_sharedheap.h,v 1.3 2003-01-03 20:44:00 forbrig Exp $"
#include<iostream>
#include<aff/lib/sharedheap.h>
......@@ -45,8 +47,8 @@ template<typename T>
void dump_layout(const aff::ConstSharedHeap<T>& sharedheap,
std::ostream& os=std::cout)
{
os << "dump of a SharedHeap object:";
os << " size=" << sharedheap.size() << endl;
os << " SharedHeap object size: "
<< sharedheap.size() << " elements" << endl;
}
/*----------------------------------------------------------------------*/
......@@ -59,8 +61,9 @@ template<typename T>
void dump(const aff::ConstSharedHeap<T>& sharedheap,
std::ostream& os=std::cout)
{
os << "dump of SharedHeap object:" << endl;
dump_layout(sharedheap, os);
os << " elements:" << endl;
os << " element values:" << endl;
int i=0;
for (aff::Tsize k=0; k<sharedheap.size(); k++)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment