|
Schnek
|
#include <grid.hpp>


Public Types | |
| enum | { Rank = rank } |
| typedef T | value_type |
| typedef Array< int, rank > | IndexType |
| typedef Range< int, rank > | RangeType |
| typedef Grid< T, rank, CheckingPolicy, StoragePolicy > | GridType |
| typedef GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > | BaseType |
Public Types inherited from schnek::GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > | |
| enum | |
| typedef T | value_type |
| typedef CheckingPolicy< rank > | CheckingPolicyType |
| typedef StoragePolicy< T, rank > | StoragePolicyType |
| typedef CheckingPolicy< rank > ::IndexType | IndexType |
| typedef GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > | GridBaseType |
Public Member Functions | |
| Grid () | |
| Grid (const IndexType &size) | |
| Grid (const IndexType &low, const IndexType &high) | |
| Grid (const RangeType &range) | |
| Grid (const Grid< T, rank, CheckingPolicy, StoragePolicy > &) | |
| GridType & | operator= (const T &val) |
| GridType & | operator= (const GridType &grid) |
| template<typename T2 , class CheckingPolicy2 , class StoragePolicy2 > | |
| GridType & | operator= (const GridBase< T2, rank, CheckingPolicy2, StoragePolicy2 > &grid) |
Public Member Functions inherited from schnek::GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > | |
| GridBase (const Array< int, rank, ArrayCheckingPolicy > &size) | |
| GridBase (const Array< int, rank, ArrayCheckingPolicy > &low, const Array< int, rank, ArrayCheckingPolicy > &high) | |
| T & | operator[] (const Array< int, rank, ArrayCheckingPolicy > &pos) |
| T | operator[] (const Array< int, rank, ArrayCheckingPolicy > &pos) const |
| T & | operator[] (const ArrayExpression< Operator, Length > &pos) |
| T | operator[] (const ArrayExpression< Operator, Length > &pos) const |
| T & | operator[] (int i) |
| T | operator[] (int i) const |
| T & | operator() (int i) |
| T | operator() (int i) const |
| T & | operator() (int i, int j) |
| T | operator() (int i, int j) const |
| T & | operator() (int i, int j, int k) |
| T | operator() (int i, int j, int k) const |
| T & | operator() (int i, int j, int k, int l) |
| T | operator() (int i, int j, int k, int l) const |
| T & | operator() (int i, int j, int k, int l, int m) |
| T | operator() (int i, int j, int k, int l, int m) const |
| T & | operator() (int i, int j, int k, int l, int m, int o) |
| T | operator() (int i, int j, int k, int l, int m, int o) const |
| T & | operator() (int i, int j, int k, int l, int m, int o, int p) |
| T | operator() (int i, int j, int k, int l, int m, int o, int p) const |
| T & | operator() (int i, int j, int k, int l, int m, int o, int p, int q) |
| T | operator() (int i, int j, int k, int l, int m, int o, int p, int q) const |
| T & | operator() (int i, int j, int k, int l, int m, int o, int p, int q, int r) |
| T | operator() (int i, int j, int k, int l, int m, int o, int p, int q, int r) const |
| T & | operator() (int i, int j, int k, int l, int m, int o, int p, int q, int r, int s) |
| T | operator() (int i, int j, int k, int l, int m, int o, int p, int q, int r, int s) const |
| GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > & | operator= (const GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > &) |
| GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > & | operator= (const GridBase< T2, rank, CheckingPolicy2, StoragePolicy2 > &) |
| GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > & | operator= (const T &val) |
| GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > & | operator-= (GridBase< T2, rank, CheckingPolicy2, StoragePolicy< T, rank > > &) |
| GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > & | operator-= (GridBase< T2, rank, CheckingPolicy2, StoragePolicy2 > &) |
| GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > & | operator+= (GridBase< T2, rank, CheckingPolicy2, StoragePolicy< T, rank > > &) |
| GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > & | operator+= (GridBase< T2, rank, CheckingPolicy2, StoragePolicy2 > &) |
| void | resize (const IndexType &size) |
| void | resize (const IndexType &low, const IndexType &high) |
| void | resize (const GridBase< T2, rank, CheckingPolicy2, StoragePolicy2 > &grid) |
Additional Inherited Members | |
Protected Member Functions inherited from schnek::GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > | |
| void | copyFromGrid (const GridBase< T2, rank, CheckingPolicy2, StoragePolicy< T, rank > > &grid) |
An elementary grid class
The reason we inherit from GridBase, is for ease of specifying template arguments.
| schnek::Grid< T, rank, CheckingPolicy, StoragePolicy >::Grid | ( | ) |
default constructor creates an empty grid
| schnek::Grid< T, rank, CheckingPolicy, StoragePolicy >::Grid | ( | const IndexType & | size | ) |
constructor, which builds Grid of size size[0] x ... x size[rank-1]
Example: {verbatim} Grid<double,2>::IndexType size=(512,512); Grid<double,2> m(size); {verbatim}
The ranges then extend from 0 to size[i]-1
| schnek::Grid< T, rank, CheckingPolicy, StoragePolicy >::Grid | ( | const IndexType & | low, |
| const IndexType & | high | ||
| ) |
constructor, which builds Grid with lower indices low[0],...,low[rank-1] and upper indices high[0],...,high[rank-1]
Example: {verbatim} Grid<double,2>::IndexType low(-5,-10); Grid<double,2>::IndexType high(15,36); Grid<double,2> m(l,h); {verbatim}
The ranges then extend from low[i] to high[i]
| schnek::Grid< T, rank, CheckingPolicy, StoragePolicy >::Grid | ( | const RangeType & | range | ) |
constructor, which builds Grid with range given by range
Example: {verbatim} Grid<double,2>::IndexType low(-5,-10); Grid<double,2>::IndexType high(15,36); Grid<double,2>::RangeType range(low, high); Grid<double,2> m(range); {verbatim}
The ranges then extend from low[i] to high[i]
| schnek::Grid< T, rank, CheckingPolicy, StoragePolicy >::Grid | ( | const Grid< T, rank, CheckingPolicy, StoragePolicy > & | ) |
copy constructor
|
inline |
assign another grid
|
inline |
assign another grid
|
inline |
assign another grid