X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/385a5a6cbcab9001633efd700b2ffdeaf1aaaf6d..b57bffe30e8f531f21f0d50e4dc5f58275d8522e:/neigh.h?ds=inline diff --git a/neigh.h b/neigh.h index 73ffe62..9112c53 100644 --- a/neigh.h +++ b/neigh.h @@ -1,17 +1,21 @@ #ifndef NEIGH_H #define NEIGH_H +#include + class neigh { private: + int *len; int *nfield; + int dirstep(int dir); static int ipow(const int& x, const int& p){ if (p == 0) return 1; if (p == 1) return x; return x * ipow(x, p-1); } public: - neigh(const int& length, const int& dimension); + neigh(const int& dimension, ...); int& operator[] (int i) {return nfield[i];} };