Jet
v1.3.3
jet
array_accessor.h
Go to the documentation of this file.
1
// Copyright (c) 2018 Doyub Kim
2
//
3
// I am making my contributions/submissions to this project solely in my
4
// personal capacity and am not conveying any rights to any intellectual
5
// property of any third parties.
6
7
#ifndef INCLUDE_JET_ARRAY_ACCESSOR_H_
8
#define INCLUDE_JET_ARRAY_ACCESSOR_H_
9
10
#include <cstddef>
11
12
namespace
jet
{
13
28
template
<
typename
T,
size_t
N>
29
class
ArrayAccessor
final {
30
public
:
31
static_assert(
32
N < 1 || N > 3,
"Not implemented - N should be either 1, 2 or 3."
);
33
};
34
46
template
<
typename
T,
size_t
N>
47
class
ConstArrayAccessor
final {
48
public
:
49
static_assert(
50
N < 1 || N > 3,
"Not implemented - N should be either 1, 2 or 3."
);
51
};
52
53
}
// namespace jet
54
55
#endif // INCLUDE_JET_ARRAY_ACCESSOR_H_
jet
Definition:
advection_solver2.h:18
jet::ConstArrayAccessor
Generic N-dimensional read-only array accessor class interface.
Definition:
array_accessor.h:47
jet::ArrayAccessor
Generic N-dimensional array accessor class interface.
Definition:
array_accessor.h:29
Generated by
1.8.18