Generative Fast Fourier Transforms (GFFT)
0.3
Main Page
Modules
Namespaces
Classes
Files
File List
trunk
src
finit.h
Go to the documentation of this file.
1
/***************************************************************************
2
* Copyright (C) 2007-2014 by Vladimir Mirnyy *
3
* *
4
* This program is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU General Public License as published by *
6
* the Free Software Foundation; either version 2 of the License, or *
7
* (at your option) any later version. *
8
* *
9
* This program is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12
* GNU General Public License for more details. *
13
***************************************************************************/
14
15
#ifndef __finit_h
16
#define __finit_h
17
22
#include "Typelist.h"
23
24
template
<
class
TList>
25
struct
FactoryInit;
26
28
32
template
<
class
H,
class
T>
33
struct
FactoryInit<Loki::Typelist<H,T> > {
34
template
<
class
Fact>
35
static
void
apply(Fact& f) {
36
f.Register(H::ID,H::Create);
37
FactoryInit<T>::apply(f);
38
}
39
};
40
41
template
<>
42
struct
FactoryInit<Loki::NullType> {
43
template
<
class
Fact>
44
static
void
apply(Fact&) { }
45
};
46
47
48
#endif
/*__finit_h*/
Generated on Mon Feb 10 2014 for Generative Fast Fourier Transforms (GFFT) by
DoxyGen
1.8.3.1