20 #ifndef DOXYGEN_SHOULD_SKIP_THIS 31 RangeFrom(
int start ) : start_( start ) {}
33 int start()
const {
return start_; }
35 template <
int Dim,
typename View>
36 int end(
const View& view )
const {
37 return view.shape(
Dim );
40 template <
typename View>
41 int end(
const View& view,
int i )
const {
42 return view.shape( i );
53 RangeTo(
int end ) : end_( end ) {}
55 int start()
const {
return 0; }
57 int end()
const {
return end_; }
67 int start()
const {
return 0; }
69 template <
int Dim,
typename View>
70 int end(
const View& view )
const {
71 return view.shape(
Dim );
74 template <
typename View>
75 int end(
const View& view,
int i )
const {
76 return view.shape( i );
97 static From from(
int start ) {
return From( start ); }
98 static To to(
int end ) {
return To( end ); }
99 static All all() {
return All(); }
103 template <
typename Start,
typename End>
104 Range( Start start, End end ) : start_( static_cast<int>( start ) ), end_( static_cast<int>( end ) ) {}
105 int start()
const {
return start_; }
106 int end()
const {
return end_; }
Contains all atlas classes and methods.
Definition: atlas-grids.cc:33
Definition: ArrayViewDefs.h:20