blitz
Version 1.0.2
Toggle main menu visibility
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
6
namespace
blitz
{
7
8
// helper class ConstPointerStack
9
template
<
typename
P_numtype,
int
N_rank>
10
class
ConstPointerStack
{
11
public
:
12
typedef
P_numtype
T_numtype
;
13
14
void
operator=
(
const
ConstPointerStack<P_numtype,N_rank>
& rhs)
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
blitz.h
blitz::ConstPointerStack
Definition
constpointerstack.h:10
blitz::ConstPointerStack::operator=
void operator=(const ConstPointerStack< P_numtype, N_rank > &rhs)
Definition
constpointerstack.h:14
blitz::ConstPointerStack::stack_
const T_numtype * stack_[N_rank]
Definition
constpointerstack.h:26
blitz::ConstPointerStack::T_numtype
P_numtype T_numtype
Definition
constpointerstack.h:12
blitz::ConstPointerStack::operator[]
const T_numtype *& operator[](int position)
Definition
constpointerstack.h:20
blitz
Definition
array-impl.h:66
blitz
constpointerstack.h
Generated by
1.17.0