1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-14 17:55:38 +00:00
Grid/extras/Hadrons/Modules/templates/Module.hpp.template

41 lines
1.2 KiB
Plaintext
Raw Normal View History

#ifndef Hadrons____FILEBASENAME____hpp_
#define Hadrons____FILEBASENAME____hpp_
2016-12-05 04:53:31 +00:00
#include <Grid/Hadrons/Global.hpp>
#include <Grid/Hadrons/Module.hpp>
#include <Grid/Hadrons/ModuleFactory.hpp>
BEGIN_HADRONS_NAMESPACE
/******************************************************************************
* ___FILEBASENAME___ *
******************************************************************************/
2016-05-12 18:33:08 +01:00
class ___FILEBASENAME___Par: Serializable
{
public:
2016-05-12 18:33:08 +01:00
GRID_SERIALIZABLE_CLASS_MEMBERS(___FILEBASENAME___Par,
unsigned int, i);
};
2016-12-14 18:19:46 +00:00
class T___FILEBASENAME___: public Module<___FILEBASENAME___Par>
2016-05-12 18:33:08 +01:00
{
public:
// constructor
2016-12-14 18:19:46 +00:00
T___FILEBASENAME___(const std::string name);
// destructor
2016-12-14 18:19:46 +00:00
virtual ~T___FILEBASENAME___(void) = default;
// dependency relation
virtual std::vector<std::string> getInput(void);
virtual std::vector<std::string> getOutput(void);
// setup
virtual void setup(void);
// execution
virtual void execute(void);
};
2016-12-14 18:19:46 +00:00
MODULE_REGISTER(___FILEBASENAME___, T___FILEBASENAME___);
END_HADRONS_NAMESPACE
#endif // Hadrons____FILEBASENAME____hpp_