1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-17 07:17:06 +01:00

All functionalities ready.

Todo: add all the fermion action modules
This commit is contained in:
Guido Cossu
2017-01-20 12:56:20 +00:00
parent 851f2ad8ef
commit f96fac0aee
18 changed files with 504 additions and 64 deletions

View File

@ -105,7 +105,7 @@ namespace Grid {
public:
Reader(void);
virtual ~Reader(void) = default;
void push(const std::string &s);
bool push(const std::string &s);
void pop(void);
template <typename U>
typename std::enable_if<std::is_base_of<Serializable, U>::value, void>::type
@ -160,15 +160,15 @@ namespace Grid {
// Generic reader interface
template <typename T>
inline void push(Reader<T> &r, const std::string &s)
inline bool push(Reader<T> &r, const std::string &s)
{
r.push(s);
return r.push(s);
}
template <typename T>
inline void push(Reader<T> &r, const char *s)
inline bool push(Reader<T> &r, const char *s)
{
r.push(std::string(s));
return r.push(std::string(s));
}
template <typename T>
@ -236,9 +236,9 @@ namespace Grid {
}
template <typename T>
void Reader<T>::push(const std::string &s)
bool Reader<T>::push(const std::string &s)
{
upcast->push(s);
return upcast->push(s);
}
template <typename T>