|
Schnek
|


Public Types | |
| enum | { Rank = BaseGrid::Rank } |
| typedef BaseGrid::value_type | value_type |
| typedef Array< int, Rank > | IndexType |
| typedef Range< int, Rank > | RangeType |
| typedef BaseGrid | BaseGridType |
Public Types inherited from schnek::internal::GridBase< BaseGrid::value_type, BaseGrid::Rank, CheckingPolicy< BaseGrid::Rank >, SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > > | |
| enum | |
| typedef BaseGrid::value_type | value_type |
| typedef CheckingPolicy< BaseGrid::Rank > | CheckingPolicyType |
| typedef SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > | StoragePolicyType |
| typedef CheckingPolicy< BaseGrid::Rank > ::IndexType | IndexType |
| typedef SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > ::RangeType | RangeType |
| typedef GridBase< BaseGrid::value_type, rank, CheckingPolicy< BaseGrid::Rank >, SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > > | GridBaseType |
Public Types inherited from schnek::SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > | |
| typedef Array< int, rank > | IndexType |
| typedef BaseGrid | BaseGridType |
| typedef Range< int, rank > | DomainType |
Public Member Functions | |
| SubGrid () | |
| SubGrid (const IndexType &size, BaseGridType &baseGrid_) | |
| SubGrid (const IndexType &low, const IndexType &high, BaseGridType &baseGrid_) | |
| SubGrid (const RangeType &range, BaseGridType &baseGrid_) | |
Public Member Functions inherited from schnek::internal::GridBase< BaseGrid::value_type, BaseGrid::Rank, CheckingPolicy< BaseGrid::Rank >, SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > > | |
| GridBase () | |
| Default constructor. | |
| GridBase (const GridBase &)=default | |
| Copy constructor. | |
| GridBase (const Array< int, rank, ArrayCheckingPolicy > &size) | |
| GridBase (const Array< int, rank, ArrayCheckingPolicy > &low, const Array< int, rank, ArrayCheckingPolicy > &high) | |
| GridBase (const Range< int, rank, ArrayCheckingPolicy > &range) | |
| SCHNEK_INLINE BaseGrid::value_type & | operator[] (const Array< int, rank, ArrayCheckingPolicy > &pos) |
| SCHNEK_INLINE BaseGrid::value_type | operator[] (const Array< int, rank, ArrayCheckingPolicy > &pos) const |
| SCHNEK_INLINE BaseGrid::value_type & | operator[] (const ArrayExpression< Operator, Length > &pos) |
| SCHNEK_INLINE BaseGrid::value_type | operator[] (const ArrayExpression< Operator, Length > &pos) const |
| SCHNEK_INLINE BaseGrid::value_type & | operator[] (int i) |
| SCHNEK_INLINE BaseGrid::value_type | operator[] (int i) const |
| SCHNEK_INLINE BaseGrid::value_type & | operator() (int i) |
| SCHNEK_INLINE BaseGrid::value_type | operator() (int i) const |
| SCHNEK_INLINE BaseGrid::value_type & | operator() (int i, int j) |
| SCHNEK_INLINE BaseGrid::value_type | operator() (int i, int j) const |
| SCHNEK_INLINE BaseGrid::value_type & | operator() (int i, int j, int k) |
| SCHNEK_INLINE BaseGrid::value_type | operator() (int i, int j, int k) const |
| SCHNEK_INLINE BaseGrid::value_type & | operator() (int i, int j, int k, int l) |
| SCHNEK_INLINE BaseGrid::value_type | operator() (int i, int j, int k, int l) const |
| SCHNEK_INLINE BaseGrid::value_type & | operator() (int i, int j, int k, int l, int m) |
| SCHNEK_INLINE BaseGrid::value_type | operator() (int i, int j, int k, int l, int m) const |
| SCHNEK_INLINE BaseGrid::value_type & | operator() (int i, int j, int k, int l, int m, int o) |
| SCHNEK_INLINE BaseGrid::value_type | operator() (int i, int j, int k, int l, int m, int o) const |
| SCHNEK_INLINE BaseGrid::value_type & | operator() (int i, int j, int k, int l, int m, int o, int p) |
| SCHNEK_INLINE BaseGrid::value_type | operator() (int i, int j, int k, int l, int m, int o, int p) const |
| SCHNEK_INLINE BaseGrid::value_type & | operator() (int i, int j, int k, int l, int m, int o, int p, int q) |
| SCHNEK_INLINE BaseGrid::value_type | operator() (int i, int j, int k, int l, int m, int o, int p, int q) const |
| SCHNEK_INLINE BaseGrid::value_type & | operator() (int i, int j, int k, int l, int m, int o, int p, int q, int r) |
| SCHNEK_INLINE BaseGrid::value_type | operator() (int i, int j, int k, int l, int m, int o, int p, int q, int r) const |
| SCHNEK_INLINE BaseGrid::value_type & | operator() (int i, int j, int k, int l, int m, int o, int p, int q, int r, int s) |
| SCHNEK_INLINE BaseGrid::value_type | operator() (int i, int j, int k, int l, int m, int o, int p, int q, int r, int s) const |
| SCHNEK_INLINE GridBase< BaseGrid::value_type, rank, CheckingPolicy< BaseGrid::Rank >, SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > > & | operator= (const BaseGrid::value_type &val) |
| SCHNEK_INLINE GridBase< BaseGrid::value_type, rank, CheckingPolicy< BaseGrid::Rank >, SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > > & | operator= (const GridBase< BaseGrid::value_type, rank, CheckingPolicy< BaseGrid::Rank >, SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > > &val)=default |
| SCHNEK_INLINE GridBase< BaseGrid::value_type, rank, CheckingPolicy< BaseGrid::Rank >, SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > > & | operator-= (GridBase< T2, rank, CheckingPolicy2, SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > > &) |
| SCHNEK_INLINE GridBase< BaseGrid::value_type, rank, CheckingPolicy< BaseGrid::Rank >, SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > > & | operator-= (GridBase< T2, rank, CheckingPolicy2, StoragePolicy2 > &) |
| SCHNEK_INLINE GridBase< BaseGrid::value_type, rank, CheckingPolicy< BaseGrid::Rank >, SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > > & | operator+= (GridBase< T2, rank, CheckingPolicy2, SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > > &) |
| SCHNEK_INLINE GridBase< BaseGrid::value_type, rank, CheckingPolicy< BaseGrid::Rank >, SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > > & | operator+= (GridBase< T2, rank, CheckingPolicy2, StoragePolicy2 > &) |
| void | resize (const IndexType &size) |
| Resize to size[0] x ... x size[rank-1]. More... | |
| void | resize (const IndexType &low, const IndexType &high) |
| Resize to lower indices low[0],...,low[rank-1] and upper indices high[0],...,high[rank-1]. More... | |
| void | resize (const RangeType &range) |
| Resize to lower indices range.getLo(0),...,range.getLo(rank-1) and upper indices range.getHi(0),...,range.getHi(rank-1) More... | |
| void | resize (const GridBase< T2, rank, CheckingPolicy2, StoragePolicy2 > &grid) |
Public Member Functions inherited from schnek::SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > | |
| SubGridStorage (const IndexType &low_, const IndexType &high_) | |
| void | resize (const IndexType &low_, const IndexType &high_) |
| SCHNEK_INLINE BaseGrid::value_type & | get (const IndexType &index) |
| SCHNEK_INLINE const BaseGrid::value_type & | get (const IndexType &index) const |
| const IndexType & | getLo () const |
| int | getLo (int k) const |
| const IndexType & | getHi () const |
| int | getHi (int k) const |
| const IndexType & | getDims () const |
| int | getDims (int k) const |
| storage_iterator | begin () |
| storage_iterator | end () |
| const_storage_iterator | cbegin () const |
| const_storage_iterator | cend () const |
| void | setBaseGrid (BaseGridType &baseGrid_) |
Additional Inherited Members | |
Protected Attributes inherited from schnek::SubGridStorage< BaseGrid::value_type, BaseGrid::Rank, BaseGrid > | |
| BaseGridType * | baseGrid |
| DomainType | domain |
| IndexType | dims |
| schnek::SubGrid< BaseGrid, CheckingPolicy >::SubGrid | ( | ) |
default constructor creates an empty grid
| schnek::SubGrid< BaseGrid, CheckingPolicy >::SubGrid | ( | const IndexType & | size, |
| BaseGridType & | baseGrid_ | ||
| ) |
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::SubGrid< BaseGrid, CheckingPolicy >::SubGrid | ( | const IndexType & | low, |
| const IndexType & | high, | ||
| BaseGridType & | baseGrid_ | ||
| ) |
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(low,high); {verbatim}
The ranges then extend from low[i] to high[i]
| schnek::SubGrid< BaseGrid, CheckingPolicy >::SubGrid | ( | const RangeType & | range, |
| BaseGridType & | baseGrid_ | ||
| ) |
constructor, which builds Grid spanning the 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 extends from low[i] to high[i]