Bridge++
Ver. 1.1.x
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
projection.h
Go to the documentation of this file.
1
15
#ifndef PROJECTION_INCLUDED
16
#define PROJECTION_INCLUDED
17
18
#include "
defs.h
"
19
#include "
parameters.h
"
20
#include "
commonParameters.h
"
21
#include "
field_G.h
"
22
23
#ifdef USE_FACTORY
24
#include "
factory.h
"
25
#endif
26
28
33
class
Projection
34
{
35
protected
:
36
Bridge::VerboseLevel
m_vl
;
37
38
public
:
39
Projection
()
40
:
m_vl
(
CommonParameters
::Vlevel()) {}
41
42
virtual
~Projection
() {}
43
45
virtual
void
project
(
Field_G
& v,
46
double
alpha,
47
const
Field_G
& C,
const
Field_G
& U) = 0;
48
50
virtual
void
force_recursive
(
Field_G
& Xi,
Field_G
& iTheta,
51
double
alpha,
const
Field_G
& Sigmap,
52
const
Field_G
& C,
const
Field_G
& U) = 0;
53
54
virtual
void
set_parameters
(
const
Parameters
& param) = 0;
55
56
void
set_parameter_verboselevel
(
const
Bridge::VerboseLevel
vl
) {
m_vl
=
vl
; }
57
58
59
#ifdef USE_FACTORY
60
public
:
61
typedef
Projection
*(*ProductCreator)();
62
typedef
FactoryTemplate<Projection, ProductCreator>
Factory;
63
64
static
Projection
*New(
const
IdentifierType
& subtype)
65
{
66
ProductCreator p = Factory::Find(subtype);
67
68
return
p ? (*p)() : 0;
69
}
70
#endif
71
};
72
#endif
src
Smear
projection.h
Generated on Tue Jul 23 2013 10:48:49 for Bridge++ by
1.8.3.1