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

allow shifting

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: 1816
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 765cbd91
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: README.changelog,v 1.56 2005-07-05 13:11:59 tforb Exp $
* $Id: README.changelog,v 1.57 2005-07-05 15:18:36 tforb Exp $
*
* Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt)
*
......@@ -21,7 +21,7 @@
/*! \page page_changelog ChangeLog (AFF)
$Id: README.changelog,v 1.56 2005-07-05 13:11:59 tforb Exp $
$Id: README.changelog,v 1.57 2005-07-05 15:18:36 tforb Exp $
\sa \ref page_project_status
......@@ -30,6 +30,7 @@
- \b 05/07/2005 (thof)
- track down design decision for const container data modification
(04/07/2005) to operators
- provide index shifting in LinearShape
- \b 04/07/2005 (thof)
- \b !! removed lib/range.h, since the was no kind of array container.
......@@ -232,7 +233,7 @@
/*! \page page_project_status Project status (AFF)
$Id: README.changelog,v 1.56 2005-07-05 13:11:59 tforb Exp $
$Id: README.changelog,v 1.57 2005-07-05 15:18:36 tforb Exp $
\sa \ref page_changelog
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: linearshape.h,v 1.4 2005-07-04 15:27:30 tforb Exp $
* $Id: linearshape.h,v 1.5 2005-07-05 15:18:37 tforb Exp $
* \author Thomas Forbriger
* \date 23/12/2003
*
......@@ -18,6 +18,7 @@
* - now provide Mmax_dimen
* - renamed reshaping functions to match the class
* Strided
* - 05/07/2005 V1.3 provide index shifting
*
* ============================================================================
*/
......@@ -28,7 +29,7 @@
#define AFF_LINEARSHAPE_H_VERSION \
"AFF_LINEARSHAPE_H V1.2 "
#define AFF_LINEARSHAPE_H_CVSID \
"$Id: linearshape.h,v 1.4 2005-07-04 15:27:30 tforb Exp $"
"$Id: linearshape.h,v 1.5 2005-07-05 15:18:37 tforb Exp $"
namespace aff {
......@@ -122,6 +123,13 @@ namespace aff {
"ERROR (LinearShape::setlastindex): index value out of range");
Mlast=last;
}
//! shift effective index range by \p i
void shift(const Tsubscript& i)
{
Mfirst+=i;
Mlast+=i;
Mbase+=i;
}
private:
Tsubscript Mfirst; //!< first valid index
Tsubscript Mlast; //!< last valid index
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: series.h,v 1.19 2005-07-05 13:12:00 tforb Exp $
* $Id: series.h,v 1.20 2005-07-05 15:18:36 tforb Exp $
* \author Thomas Forbriger
* \date 17/12/2002
*
......@@ -62,7 +62,7 @@
#define AFF_SERIES_H_VERSION \
"AFF_SERIES_H V1.10"
#define AFF_SERIES_H_CVSID \
"$Id: series.h,v 1.19 2005-07-05 13:12:00 tforb Exp $"
"$Id: series.h,v 1.20 2005-07-05 15:18:36 tforb Exp $"
#include <aff/lib/sharedheap.h>
#include <aff/lib/linearshape.h>
......@@ -190,6 +190,7 @@ namespace aff {
using Tshape::setfirstindex;
using Tshape::setlastindex;
using Tshape::setindexrange;
using Tshape::shift;
//@}
/*! \brief create an identical copy (deep copy) of this array
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: seriestest.cc,v 1.5 2003-12-19 14:40:32 tforb Exp $
* $Id: seriestest.cc,v 1.6 2005-07-05 15:18:37 tforb Exp $
* \author Thomas Forbriger
* \date 17/12/2002
*
......@@ -23,7 +23,7 @@
#define AFF_SERIESTEST_CC_VERSION \
"AFF_SERIESTEST_CC V1.2"
#define AFF_SERIESTEST_CC_CVSID \
"$Id: seriestest.cc,v 1.5 2003-12-19 14:40:32 tforb Exp $"
"$Id: seriestest.cc,v 1.6 2005-07-05 15:18:37 tforb Exp $"
#include <aff/series.h>
#include <aff/dump.h>
......@@ -76,6 +76,8 @@ int main()
#ifdef ILLEGAL1
CODE( D(6)=10 );
#endif
CODE( D.shift(300) );
DUMP( D );
}
/* ----- END OF seriestest.cc ----- */
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