ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
ntb_iter.h
Go to the documentation of this file.
1
2
// //
3
// Copyright (c) 2003-2013 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
6
// //
7
// Primary Business: Brisbane, Queensland, Australia //
8
// Licensed under the Open Software License version 3.0 //
9
// http://www.opensource.org/licenses/osl-3.0.php //
10
// //
12
13
#ifndef __NTB_BLOCK_H
14
#define __NTB_BLOCK_H
15
16
//--- project includes ---
17
#include "
ntable/src/ntable.h
"
18
19
//---system includes---
20
#include <cstddef>
21
22
//--- STL includes ---
23
#include <valarray>
24
#include <vector>
25
#include <list>
26
27
using
std::slice;
28
using
std::vector;
29
using
std::list;
30
31
//--- forward decls ---
32
template
<
typename
T>
33
class
NTBlock_iter
;
34
35
template
<
typename
T>
bool
operator==
(
const
NTBlock_iter<T>
&,
const
NTBlock_iter<T>
&);
36
template
<
typename
T>
bool
operator!=
(
const
NTBlock_iter<T>
&,
const
NTBlock_iter<T>
&);
37
38
template
<
typename
T>
39
class
NTBlock
;
40
45
template
<
typename
T>
46
class
NTBlock_iter
47
{
48
private
:
49
NTBlock<T>
*
m_block
;
50
int
m_ix
,
m_iy
,
m_iz
,
m_ig
;
51
52
public
:
53
NTBlock_iter
(
NTBlock<T>
*,
int
,
int
,
int
,
int
);
54
56
NTBlock_iter
&
operator++
();
57
NTBlock_iter
operator++
(
int
);
58
60
T*
operator->
();
61
T&
operator*
();
62
63
//comparison
64
friend
bool
operator== <>(
const
NTBlock_iter
&,
const
NTBlock_iter
&);
65
friend
bool
operator!= <>(
const
NTBlock_iter
&,
const
NTBlock_iter
&);
66
};
67
68
#include "
ntable/src/ntb_iter.hpp
"
69
70
#endif //__NTB_ITER_H
71
ntable
src
ntb_iter.h
Generated on Mon May 6 2013 23:26:30 for ESyS-Particle by
1.8.3.1