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

const qualifier

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: 1688
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 336ea2a6
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: valmap.h,v 1.3 2005-04-28 13:55:56 tforb Exp $
* $Id: valmap.h,v 1.4 2005-04-28 14:00:22 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.3 2005-04-28 13:55:56 tforb Exp $"
"$Id: valmap.h,v 1.4 2005-04-28 14:00:22 tforb Exp $"
#include<aff/lib/mapper.h>
#include<map>
......@@ -51,9 +51,9 @@ namespace aff {
//! initialize member data
Mapvalmap(const Tmap& m): Mmap(m) { }
//! map another value
Toutvalue operator() (Tinvalue v) { return(Mmap[v]); }
Toutvalue operator() (Tinvalue v) const { return(Mmap[v]); }
private:
Tmap Mmap;
mutable Tmap Mmap;
}; // class Mapvalmap
} // namespace util
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: mapper.h,v 1.3 2005-04-28 12:58:31 tforb Exp $
* $Id: mapper.h,v 1.4 2005-04-28 14:00:22 tforb Exp $
* \author Thomas Forbriger
* \date 20/03/2005
*
......@@ -23,7 +23,7 @@
#define AFF_MAPPER_H_VERSION \
"AFF_MAPPER_H V1.0 "
#define AFF_MAPPER_H_CVSID \
"$Id: mapper.h,v 1.3 2005-04-28 12:58:31 tforb Exp $"
"$Id: mapper.h,v 1.4 2005-04-28 14:00:22 tforb Exp $"
namespace aff {
......@@ -51,7 +51,7 @@ namespace aff {
template<template<class> class C, class F>
C<typename F::Toutvalue>
mapvalues(const typename C<typename F::Tinvalue>::Tcoc& c,
F exfun)
const F& exfun)
{
typedef typename C<typename F::Tinvalue>::Tcoc Tin;
typedef C<typename F::Toutvalue> Tout;
......
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