QDP++
qdp_map.h
Go to the documentation of this file.
1// -*- C++ -*-
2
8
9#ifndef QDP_MAP_H
10#define QDP_MAP_H
11
12namespace QDP {
13
14// Helpful for communications
15#define FORWARD 1
16#define BACKWARD -1
17
18
28
30
32{
33public:
35 virtual ~MapFunc() {}
37
38 virtual multi1d<int> operator() (const multi1d<int>& coordinate, int sign) const = 0;
39};
40
41
43
45{
46public:
48 virtual ~ArrayMapFunc() {}
49
51
52 virtual multi1d<int> operator() (const multi1d<int>& coordinate, int sign, int dir) const = 0;
53
55 virtual int numArray() const = 0;
56};
57 // end of group map
59
60} // namespace QDP
61
62#endif
ArrayMapFunc.
Definition qdp_map.h:45
virtual int numArray() const =0
Returns the array size - the number of directions which are to be used.
virtual ~ArrayMapFunc()
Virtual destructor - no cleanup needed.
Definition qdp_map.h:48
virtual multi1d< int > operator()(const multi1d< int > &coordinate, int sign, int dir) const =0
Maps a lattice coordinate under a map to a new lattice coordinate.
MapFunc.
Definition qdp_map.h:32
virtual ~MapFunc()
Virtual destructor - no cleanup needed.
Definition qdp_map.h:35
virtual multi1d< int > operator()(const multi1d< int > &coordinate, int sign) const =0
Maps a lattice coordinate under a map to a new lattice coordinate.
Container for a multi-dimensional 1D array.
Definition qdp_multi.h:25
Yet another random number generator.