#include <stdlib.h>#include "types.h"#include "data-visitor.h"#include "coordinates.h"#include "array-meta.h"#include "type-names.h"


Go to the source code of this file.
Classes | |
| class | Array< D, T > |
| multi dimensional arrays More... | |
Defines | |
| #define | GETFIELD(NR) |
Functions | |
| GETFIELD (2) | |
| GETFIELD (3) | |
| GETFIELD (4) | |
| GETFIELD (5) | |
| GETFIELD (6) | |
| GETFIELD (7) | |
| GETFIELD (8) | |
| #define GETFIELD | ( | NR | ) |
Value:
template <int D, class T> \ Data Array<D,T>::getField##NR(int idx) \ {\ assert(D==NR);\ assert(D>1);\ Position<D> p;\ p[0]=idx;\ From<D> f(p);\ Select<NR-1> s;\ for(int i = 0 ; i < D-1;i++)\ s[i]=i+1;\ Array<NR-1,T> result((*this)(f),s);\ return result;\ }
| GETFIELD | ( | 8 | ) |
| GETFIELD | ( | 7 | ) |
| GETFIELD | ( | 6 | ) |
| GETFIELD | ( | 5 | ) |
| GETFIELD | ( | 4 | ) |
| GETFIELD | ( | 3 | ) |
| GETFIELD | ( | 2 | ) |
1.5.9