14 #ifndef STAPLE_INCLUDED
15 #define STAPLE_INCLUDED
75 typedef Staple *(*ProductCreator)();
80 ProductCreator p = Factory::Find(subtype);
82 return p ? (*p)() : 0;
85 #ifdef USE_FACTORY_AUTOREGISTER
87 static bool init_factory();
Staple & operator=(const Staple &)
virtual void upper(Field_G &, const Field_G &, const int mu, const int nu)=0
constructs upper staple in mu-nu plane.
virtual void lower(Field_G &, const Field_G &, const int mu, const int nu)=0
constructs lower staple in mu-nu plane.
virtual void staple(Field_G &, const Field_G &, const int mu)=0
constructs staple in mu-direction (summing up nu-direction).
virtual double plaquette(const Field_G &)=0
calculates plaquette value.
void set_parameter_verboselevel(const Bridge::VerboseLevel vl)
Bridge::VerboseLevel m_vl
Common parameter class: provides parameters as singleton.
virtual double plaq_t(const Field_G &)=0
calculates temporal plaquette value.
virtual double plaq_s(const Field_G &)=0
calculates spatial plaquette value.
std::string IdentifierType
Factory template class.
Base class for Staple construction.
virtual void set_parameters(const Parameters ¶ms)=0
setting parameters.