Bridge++  Ver. 2.0.2
force_F.h
Go to the documentation of this file.
1 
14 #ifndef FORCE_F_INCLUDED
15 #define FORCE_F_INCLUDED
16 
17 #include "Field/field_G.h"
18 #include "Parameters/parameters.h"
19 
21 
31 class Force
32 {
33  public:
34  Force() : m_U(0) {}
35 
36  virtual ~Force() {}
37 
38  private:
39  // non-copyable
40  Force(const Force&);
41  Force& operator=(const Force&);
42 
43  public:
44  virtual void set_parameters(const Parameters&) = 0;
45 
46  virtual void get_parameters(Parameters&) const = 0;
47 
48  virtual void set_config(Field *) = 0;
49 
51  virtual void set_mode(const std::string& mode)
52  {
53  // do nothing if not defined in a subclass.
54  }
55 
56  virtual void force_core(Field&, const Field&);
57  virtual void force_core1(Field&, const Field&, const Field&);
58 
59  virtual void force_udiv(Field&, const Field&) {}
60  virtual void force_udiv1(Field&, const Field&, const Field&) {}
61 
62  private:
63  void mult_generator(Field_G&);
64 
65  protected:
67 };
68 #endif
field_G.h
Parameters
Class for parameters.
Definition: parameters.h:46
Force::mult_generator
void mult_generator(Field_G &)
Definition: force_F.cpp:51
Force::force_core1
virtual void force_core1(Field &, const Field &, const Field &)
Definition: force_F.cpp:34
Force::set_config
virtual void set_config(Field *)=0
Force::~Force
virtual ~Force()
Definition: force_F.h:36
Force::m_U
Field_G * m_U
Definition: force_F.h:66
Force::set_mode
virtual void set_mode(const std::string &mode)
in Force, setting the mode is optional when H is nonhermitian.
Definition: force_F.h:51
Force::force_core
virtual void force_core(Field &, const Field &)
Definition: force_F.cpp:18
parameters.h
Force::operator=
Force & operator=(const Force &)
Force::Force
Force()
Definition: force_F.h:34
Force::force_udiv
virtual void force_udiv(Field &, const Field &)
Definition: force_F.h:59
Force::force_udiv1
virtual void force_udiv1(Field &, const Field &, const Field &)
Definition: force_F.h:60
Force::get_parameters
virtual void get_parameters(Parameters &) const =0
Field
Container of Field-type object.
Definition: field.h:46
Field_G
SU(N) gauge field.
Definition: field_G.h:38
Force
Base class of fermion force calculation.
Definition: force_F.h:31
Force::set_parameters
virtual void set_parameters(const Parameters &)=0