blitz  Version 1.0.2
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 
6 namespace blitz {
7 
8 // helper class ConstPointerStack
9 template<typename P_numtype, int N_rank>
11 public:
12  typedef P_numtype T_numtype;
13 
15  {
16  for (int i=0; i<N_rank; ++i)
17  stack_[i] = rhs.stack_[i];
18  }
19 
20  const T_numtype*& operator[](int position)
21  {
22  return stack_[position];
23  }
24 
25 private:
26  const T_numtype * stack_[N_rank];
27 };
28 
29 }
30 
31 #endif
_bz_global blitz::IndexPlaceholder< 0 > i
Definition: indexexpr.h:256
Definition: array-impl.h:66
P_numtype T_numtype
Definition: constpointerstack.h:12
const T_numtype *& operator[](int position)
Definition: constpointerstack.h:20
const T_numtype * stack_[N_rank]
Definition: constpointerstack.h:26
Definition: constpointerstack.h:10
void operator=(const ConstPointerStack< P_numtype, N_rank > &rhs)
Definition: constpointerstack.h:14