Go to the documentation of this file.
14 #ifndef SOURCE_INCLUDED
15 #define SOURCE_INCLUDED
53 virtual void set(
Field&,
const int) = 0;
54 virtual void set(
Field&,
const int,
const int) = 0;
60 typedef Source *(*ProductCreator)();
68 ProductCreator p = Factory::Find(subtype);
69 return p ? (*p)() : 0;
74 ProductCreator_params p = Factory_params::Find(subtype);
75 return p ? (*p)(params) : 0;
78 #ifdef USE_FACTORY_AUTOREGISTER
80 static bool init_factory();
virtual void set_parameters(const Parameters &)=0
virtual void set(Field &, const int)=0
virtual void get_parameters(Parameters &) const =0
Base class of source for a linear solver.
virtual void set_all_color_spin(Field &)=0
virtual void set_all_color(Field &, const int)=0
Source & operator=(const Source &)
Container of Field-type object.
std::string IdentifierType