PSR
CHIVE
Ask a Question
Search
PSR
CHIVE:
powered by
FreeFind
Home
Install
Use
Develop
Support
News
Credits
hosted by
More
General
Pulsar
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
16
namespace
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
Pulsar::Container
Data storage implementations.
Definition:
Container.h:24
Pulsar::Transformation::operator()
void operator()(Container *container)
Functor interface.
Definition:
Transformation.h:37
Pulsar
Defines the PSRCHIVE library.
Definition:
CalSource.h:17
Pulsar::Transformation::transform
virtual void transform(Container *)=0
Defined by derived classes.
Generated using
doxygen
1.8.17