Commit 85e50569 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: 2137
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent dc2a22e7
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: README.changelog,v 1.59 2006-04-28 09:11:06 tforb Exp $
* $Id: README.changelog,v 1.60 2006-06-20 07:26:29 tforb Exp $
*
* Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt)
*
......@@ -21,12 +21,16 @@
/*! \page page_changelog ChangeLog (AFF)
$Id: README.changelog,v 1.59 2006-04-28 09:11:06 tforb Exp $
$Id: README.changelog,v 1.60 2006-06-20 07:26:29 tforb Exp $
\sa \ref page_project_status
Major changes in the interface of the library are marked by \b !!.
- \b 19/06/2006 (thof)
- \b !! aff::ConstArray as well as aff::ConstSeries now offer the typedefs
Tvalue, Tpointer, and Treference as non-const types
- \b 28/04/2006 (thof)
- classes with virtual functions (here exception classes) require the
explicit definition of a virtual destructor
......@@ -243,7 +247,7 @@
/*! \page page_project_status Project status (AFF)
$Id: README.changelog,v 1.59 2006-04-28 09:11:06 tforb Exp $
$Id: README.changelog,v 1.60 2006-06-20 07:26:29 tforb Exp $
\sa \ref page_changelog
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: array_dec.h,v 1.28 2006-03-28 16:03:01 tforb Exp $
* $Id: array_dec.h,v 1.29 2006-06-20 07:26:29 tforb Exp $
* \author Thomas Forbriger
* \since 08/12/2002
*
......@@ -81,6 +81,8 @@
* - provide data modification through const Array
* - 05/07/2005 V1.12 (thof)
* - expose const representation too if declared const
* - 19/06/2006 V1.13 (thof)
* - offer Tvalue and friends as non-const types
*
* ============================================================================
*/
......@@ -89,9 +91,9 @@
#ifndef AFF_ARRAY_DEC_H_VERSION
#define AFF_ARRAY_DEC_H_VERSION \
"AFF_ARRAY_DEC_H V1.12"
"AFF_ARRAY_DEC_H V1.13"
#define AFF_ARRAY_DEC_H_CVSID \
"$Id: array_dec.h,v 1.28 2006-03-28 16:03:01 tforb Exp $"
"$Id: array_dec.h,v 1.29 2006-06-20 07:26:29 tforb Exp $"
#include <aff/lib/sharedheap.h>
#include <aff/lib/strided.h>
......@@ -154,11 +156,11 @@ namespace prebuilt {
//! we use this for one of the access operators
typedef Tshape::TIndexVec TIndexVec;
//! Element type
typedef const T Tvalue;
typedef T Tvalue;
//! Type of pointer to element
typedef const T* Tpointer;
typedef T* Tpointer;
//! Type of reference to element
typedef const T& Treference;
typedef T& Treference;
//! const element type
typedef const T Tconst_value;
//! Type of pointer to const element
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: iterator.h,v 1.11 2006-03-28 16:03:02 tforb Exp $
* $Id: iterator.h,v 1.12 2006-06-20 07:26:29 tforb Exp $
* \author Thomas Forbriger
* \since 08/12/2002
*
......@@ -43,6 +43,8 @@
* const reference to a container.
* - 05/07/2005 V1.3 (thof)
* - promise constness of Iterator argument
* - 19/06/2006 V1.4 (thof)
* - Browser must use const value types
*
* ============================================================================
*/
......@@ -51,9 +53,9 @@
#ifndef AFF_ITERATOR_H_VERSION
#define AFF_ITERATOR_H_VERSION \
"AFF_ITERATOR_H V1.3"
"AFF_ITERATOR_H V1.4"
#define AFF_ITERATOR_H_CVSID \
"$Id: iterator.h,v 1.11 2006-03-28 16:03:02 tforb Exp $"
"$Id: iterator.h,v 1.12 2006-06-20 07:26:29 tforb Exp $"
#include<aff/lib/types.h>
......@@ -148,11 +150,11 @@ namespace aff {
//! stepper base class
typedef typename Tcontainer::Tshape::Tstepper Tstepper;
//! value type
typedef typename Tcontainer::Tvalue Tvalue;
typedef typename Tcontainer::Tconst_value Tvalue;
//! value type
typedef typename Tcontainer::Treference Treference;
typedef typename Tcontainer::Tconst_reference Treference;
//! value type
typedef typename Tcontainer::Tpointer Tpointer;
typedef typename Tcontainer::Tconst_pointer Tpointer;
//! only this constructor
Browser(const Tcontainer& c):
Mstepper(c.shape()), Mrepresentation(c.representation()) { }
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: operators.h,v 1.8 2006-03-28 16:03:08 tforb Exp $
* $Id: operators.h,v 1.9 2006-06-20 07:26:30 tforb Exp $
* \author Thomas Forbriger
* \date 10/02/2004
*
......@@ -39,6 +39,7 @@
#ifndef AFF_OPERATORS_CLASS
#error "never ever inlcude this from your code!"
#endif
#ifndef AFF_OPERATORS_CONSTCLASS
#error "definition of container of const is missing!"
#endif
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: series.h,v 1.22 2006-03-28 16:03:03 tforb Exp $
* $Id: series.h,v 1.23 2006-06-20 07:26:29 tforb Exp $
* \author Thomas Forbriger
* \date 17/12/2002
*
......@@ -73,6 +73,8 @@
* - copyout() used wrong index values in constructor
* - ConstSeries::copyout() must use a writeable
* intermediate container
* - 19/06/2006 V1.12 (thof)
* - offer Tvalue as a non-const type
*
* ============================================================================
*/
......@@ -81,9 +83,9 @@
#ifndef AFF_SERIES_H_VERSION
#define AFF_SERIES_H_VERSION \
"AFF_SERIES_H V1.11"
"AFF_SERIES_H V1.12"
#define AFF_SERIES_H_CVSID \
"$Id: series.h,v 1.22 2006-03-28 16:03:03 tforb Exp $"
"$Id: series.h,v 1.23 2006-06-20 07:26:29 tforb Exp $"
#include <aff/lib/sharedheap.h>
#include <aff/lib/linearshape.h>
......@@ -123,11 +125,11 @@ namespace aff {
//! Type of stepper
typedef Tshape::Tstepper Tstepper;
//! Element type
typedef const T Tvalue;
typedef T Tvalue;
//! Type of pointer to element
typedef const T* Tpointer;
typedef T* Tpointer;
//! Type of reference to element
typedef const T& Treference;
typedef T& Treference;
//! Element type
typedef const T Tconst_value;
//! Type of pointer to element
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: functionstest.cc,v 1.9 2006-03-28 16:03:11 tforb Exp $
* $Id: functionstest.cc,v 1.10 2006-06-20 07:26:30 tforb Exp $
* \author Thomas Forbriger
* \date 20/03/2005
*
......@@ -29,13 +29,14 @@
*
* REVISIONS and CHANGES
* - 20/03/2005 V1.0 Thomas Forbriger
* - 19/06/2006 V1.1 check functions with containers of const
*
* ============================================================================
*/
#define FUNCTIONSTEST_VERSION \
"FUNCTIONSTEST V1.0 test function templates"
"FUNCTIONSTEST V1.1 test function templates"
#define FUNCTIONSTEST_CVSID \
"$Id: functionstest.cc,v 1.9 2006-03-28 16:03:11 tforb Exp $"
"$Id: functionstest.cc,v 1.10 2006-06-20 07:26:30 tforb Exp $"
#include <iostream>
#include <aff/dump.h>
......@@ -62,6 +63,7 @@ int main(int iargc, char* argv[])
CODE( typedef aff::Array<double> Tarray );
CODE( Tarray A(3,4) );
CODE( A=5 );
CODE( Tarray::Tcoc AC=A );
CODE( subarray(A)(1,1)(2,4)=2. );
CODE( subarray(A)(2,3)(1,2)=1. );
CODE( subarray(A)(2,3)(3,4)=-4. );
......@@ -70,6 +72,7 @@ int main(int iargc, char* argv[])
CODE( cout << aff::func::rms(A) << endl );
CODE( cout << aff::func::max(A) << endl );
CODE( cout << aff::func::min(A) << endl );
CODE( cout << aff::func::min(AC) << endl );
CODE( typedef aff::func::util::Extracthisto<Tarray>::Tmap Tmap );
CODE( Tmap mymap=aff::func::histo(A) );
CODE( typedef Tmap::const_iterator Tmapit );
......
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