Emdee
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
range.h
Go to the documentation of this file.
1 #ifndef RANGE_H
2 #define RANGE_H
3 
4 #include <iostream>
5 
6 class Range
7 {
8 public:
9  Range();
10  Range(int rank, int nDecomposedElements, int nElementsTotal);
11 
12  int firstElement() {
13  return m_firstElement;
14  }
15  int lastElement() {
16  return m_lastElement;
17  }
18  int nElements() {
19  return m_nElements;
20  }
21 
22  friend std::ostream& operator<<(std::ostream& os, const Range& dt);
23 
24 private:
25  int m_firstElement;
26  int m_lastElement;
27  int m_nElements;
28 };
29 
30 #endif // RANGE_H