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

corrections

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: 1692
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 50ac8fc7
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: array_dec.h,v 1.23 2003-01-03 22:20:21 forbrig Exp $
* $Id: array_dec.h,v 1.24 2005-04-28 15:01:46 tforb Exp $
* \author Thomas Forbriger
* \since 08/12/2002
*
......@@ -71,7 +71,7 @@
#define AFF_ARRAY_DEC_H_VERSION \
"AFF_ARRAY_DEC_H V1.10"
#define AFF_ARRAY_DEC_H_CVSID \
"$Id: array_dec.h,v 1.23 2003-01-03 22:20:21 forbrig Exp $"
"$Id: array_dec.h,v 1.24 2005-04-28 15:01:46 tforb Exp $"
#include <aff/lib/sharedheap.h>
#include <aff/lib/strided.h>
......@@ -249,8 +249,7 @@ namespace prebuilt {
//@}
//! provide access to const shape
const Tshape& shape() const
{ return(*this); }
const Tshape& shape() const { return(*this); }
//! provide restricted access representation
const Trepresentation& representation() const
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: valmap.h,v 1.4 2005-04-28 14:00:22 tforb Exp $
* $Id: valmap.h,v 1.5 2005-04-28 15:01:47 tforb Exp $
* \author Thomas Forbriger
* \date 20/03/2005
*
......@@ -23,7 +23,7 @@
#define AFF_VALMAP_H_VERSION \
"AFF_VALMAP_H V1.0 "
#define AFF_VALMAP_H_CVSID \
"$Id: valmap.h,v 1.4 2005-04-28 14:00:22 tforb Exp $"
"$Id: valmap.h,v 1.5 2005-04-28 15:01:47 tforb Exp $"
#include<aff/lib/mapper.h>
#include<map>
......@@ -72,14 +72,15 @@ namespace aff {
* \sa aff::func::util::mapvaues, aff::func::util::Mapvalmap
*/
template<template <class> class C, class M>
C<typename M::mapped_type> valmap(const C<typename M::key_type>& c,
C<typename M::mapped_type>
valmap(const typename C<typename M::key_type>::Tcoc& c,
const M& m)
{
typedef typename M::key_type Tinvalue;
typedef typename M::mapped_type Toutvalue;
return(aff::func::util::mapvalues<C,
util::Mapvalmap<Tinvalue,Toutvalue> >(c,m));
} // rms()
} // valmap()
} // namespace func
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: mapper.h,v 1.4 2005-04-28 14:00:22 tforb Exp $
* $Id: mapper.h,v 1.5 2005-04-28 15:01:47 tforb Exp $
* \author Thomas Forbriger
* \date 20/03/2005
*
......@@ -23,8 +23,9 @@
#define AFF_MAPPER_H_VERSION \
"AFF_MAPPER_H V1.0 "
#define AFF_MAPPER_H_CVSID \
"$Id: mapper.h,v 1.4 2005-04-28 14:00:22 tforb Exp $"
"$Id: mapper.h,v 1.5 2005-04-28 15:01:47 tforb Exp $"
#include<aff/iterator.h>
namespace aff {
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: functionstest.cc,v 1.7 2005-04-28 13:55:56 tforb Exp $
* $Id: functionstest.cc,v 1.8 2005-04-28 15:01:47 tforb Exp $
* \author Thomas Forbriger
* \date 20/03/2005
*
......@@ -19,7 +19,7 @@
#define FUNCTIONSTEST_VERSION \
"FUNCTIONSTEST V1.0 test function templates"
#define FUNCTIONSTEST_CVSID \
"$Id: functionstest.cc,v 1.7 2005-04-28 13:55:56 tforb Exp $"
"$Id: functionstest.cc,v 1.8 2005-04-28 15:01:47 tforb Exp $"
#include <iostream>
#include <aff/dump.h>
......@@ -64,7 +64,8 @@ int main(int iargc, char* argv[])
CODE( avalmap[1.]=2 );
CODE( avalmap[2.]=3 );
CODE( avalmap[5.]=4 );
CODE( aff::Array<Tvalmap::mapped_type> B=aff::func::valmap(A, avalmap) );
CODE( aff::Array<Tvalmap::mapped_type> B=
aff::func::valmap<aff::Array>(A, avalmap) );
CODE( dump_array(B) );
}
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: helpertest.cc,v 1.4 2002-12-29 23:02:16 forbrig Exp $
* $Id: helpertest.cc,v 1.5 2005-04-28 15:01:47 tforb Exp $
* \author Thomas Forbriger
* \date 23/12/2002
*
......@@ -28,7 +28,7 @@
#define AFF_HELPERTEST_CC_VERSION \
"AFF_HELPERTEST_CC V1.2"
#define AFF_HELPERTEST_CC_CVSID \
"$Id: helpertest.cc,v 1.4 2002-12-29 23:02:16 forbrig Exp $"
"$Id: helpertest.cc,v 1.5 2005-04-28 15:01:47 tforb Exp $"
/*! \example tests/helpertest.cc
*
......@@ -99,7 +99,7 @@ int main()
section("Tests for class Iterator", '=');
{
CODE(int i=1);
CODE(int i=0);
CODE(for( Iterator<Array<int> > I(A); I.valid(); ++I)
{ *I=i; i++; });
CODE( dump_array(A) );
......
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