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

eine große große Baustelle...

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: 1469
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 1fa2a553
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: tsxx.h,v 1.2 2003-12-22 09:08:58 tforb Exp $
* $Id: tsxx.h,v 1.3 2004-02-02 09:42:31 tforb Exp $
* \author Thomas Forbriger
* \date 19/12/2003
*
......@@ -23,7 +23,7 @@
#define TF_TSXX_H_VERSION \
"TF_TSXX_H V1.0 "
#define TF_TSXX_H_CVSID \
"$Id: tsxx.h,v 1.2 2003-12-22 09:08:58 tforb Exp $"
"$Id: tsxx.h,v 1.3 2004-02-02 09:42:31 tforb Exp $"
#include<aff/series.h>
......@@ -37,8 +37,8 @@ namespace ts {
Header(const double& d): Mt0(0.), Mdt(d) { }
private:
double t0;
double dt;
double Mt0;
double Mdt;
}; // class Header
/*! \brief A structure to conatin a time series
......@@ -47,11 +47,11 @@ namespace ts {
* \param C series container type (usually aff::Series)
*/
template<class T, class H, class C=aff::Series<T> >
class ConstWaveform:
class ConstWaveform
{
public:
typedef C Tseries;
typedef typename Tseries.Tcoc Tconst_series;
typedef typename Tseries::Tcoc Tconst_series;
public:
ConstWaveform(const H& h, const C& c):
Mheader(h), Mseries(c) { }
......@@ -66,7 +66,7 @@ namespace ts {
* \param T type of sample value (int, double, etc.)
* \param C series container type (usually aff::Series)
*/
template<class T>
template<class T, class H, class C>
class Waveform:
public ConstWaveform<T, H, C>
{
......@@ -75,14 +75,14 @@ namespace ts {
using Tbase::first;
using Tbase::last;
using Tbase::operator();
TimeSeries() { t0=0.; dt=1.; }
TimeSeries(const int& n, const double& d=1.):
Tbase(n) { t0=0.; dt=1.; }
TimeSeries(const Tbase& s, const double& d=1.):
Tbase(s) { t0=0.; dt=1.; }
Waveform() { Mt0=0.; Mdt=1.; }
Waveform(const int& n, const double& d=1.):
Tbase(n) { Mt0=0.; Mdt=1.; }
Waveform(const Tbase& s, const double& d=1.):
Tbase(s) { Mt0=0.; Mdt=1.; }
operator aff::ConstSeries<T>() const { return(*this); }
double t0;
double dt;
double Mt0;
double Mdt;
}; // template class Waveform
} // namespace ts
......
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