blitz Version 1.0.2
Loading...
Searching...
No Matches
constpointerstack.h
Go to the documentation of this file.
1#ifndef BZ_POINTERSTACK_H
2#define BZ_POINTERSTACK_H
3
4#include <blitz/blitz.h>
5
6namespace blitz {
7
8// helper class ConstPointerStack
9template<typename P_numtype, int N_rank>
11public:
13
15 {
16 for (int i=0; i<N_rank; ++i)
17 stack_[i] = rhs.stack_[i];
18 }
19
21 {
22 return stack_[position];
23 }
24
25private:
27};
28
29}
30
31#endif
Definition constpointerstack.h:10
void operator=(const ConstPointerStack< P_numtype, N_rank > &rhs)
Definition constpointerstack.h:14
const T_numtype * stack_[N_rank]
Definition constpointerstack.h:26
P_numtype T_numtype
Definition constpointerstack.h:12
const T_numtype *& operator[](int position)
Definition constpointerstack.h:20
Definition memblock.h:307
Definition array-impl.h:66