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
gaugeFixing.h
Go to the documentation of this file.
1
14
#ifndef GAUGEFIXING_INCLUDED
15
#define GAUGEFIXING_INCLUDED
16
17
#include "
defs.h
"
18
#include "
parameters.h
"
19
#include "
commonParameters.h
"
20
#include "
bridgeIO.h
"
21
#include "
field_G.h
"
22
23
#ifdef USE_FACTORY
24
#include "
factory.h
"
25
#endif
26
28
29
/*
30
This class fixes the gauge of configuration.
31
[10 Oct 2012 Y.Namekawa]
32
*/
33
34
class
GaugeFixing
35
{
36
public
:
37
GaugeFixing
()
38
:
m_vl
(
CommonParameters
::Vlevel()) {}
39
40
virtual
~GaugeFixing
() {}
41
42
virtual
void
set_parameters
(
const
Parameters
& params) = 0;
43
44
void
set_parameter_verboselevel
(
const
Bridge::VerboseLevel
vl
) {
m_vl
=
vl
; }
45
46
virtual
void
fix
(
Field_G
& Ufix,
const
Field_G
& Uorg) = 0;
47
48
protected
:
49
Bridge::VerboseLevel
m_vl
;
50
51
52
#ifdef USE_FACTORY
53
public
:
54
typedef
GaugeFixing
*(*ProductCreator)(
RandomNumbers
*);
55
typedef
FactoryTemplate<GaugeFixing, ProductCreator>
Factory;
56
57
static
GaugeFixing
*New(
const
IdentifierType
& subtype,
RandomNumbers
*rand)
58
{
59
ProductCreator p = Factory::Find(subtype);
60
61
return
p ? (*p)(rand) : 0;
62
}
63
#endif
64
};
65
#endif
src
Measurements
Gauge
gaugeFixing.h
Generated on Tue Jul 23 2013 10:48:49 for Bridge++ by
1.8.3.1