Transformation.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2005 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/General/Pulsar/Transformation.h
10
11#ifndef __Pulsar_Transformation_h
12#define __Pulsar_Transformation_h
13
14#include "Pulsar/Algorithm.h"
15
16namespace Pulsar {
17
19 template<class Container> class Transformation : public Algorithm
20 {
21 public:
22
24 virtual void transform (Container*) = 0;
25
27 void operator () (Container* container) { transform (container); }
28
29 };
30
31}
32
33#endif
Data manipulation implementations.
Definition Algorithm.h:19
Data storage implementations.
Definition Container.h:19
Algorithms that modify data in the Container.
Definition Transformation.h:20
virtual void transform(Container *)=0
Defined by derived classes.
void operator()(Container *container)
Functor interface.
Definition Transformation.h:27
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0