Proto  3.2
Proto_MBDataIndex.H
Go to the documentation of this file.
1 #pragma once
2 #ifndef _PROTO_MB_DATA_INDEX_
3 #define _PROTO_MB_DATA_INDEX_
4 
5 namespace Proto
6 {
7  class MBDataIterator;
8  class MBDataIndex
9  {
10  public:
11 
12  MBDataIndex( const shared_ptr<MBPartition> a_partition, unsigned int a_index)
13  : m_partition(a_partition), m_index(a_index);
14 
15  inline bool operator==(const MBDataIndex& a_rhs);
16  inline bool operator!=(const MBDataIndex& a_rhs);
17  inline bool operator==(const MBDataIterator& a_rhs);
18  inline bool operator!=(const MBDataIterator& a_rhs);
19  inline unsigned int local() const;
20  inline unsigned int global() const;
21  inline operator int() const { return local(); }
22 
23  private:
24 
25  std::shared_ptr<MBPartition> m_partition;
26  unsigned int m_index;
27 
28  }
29 #include "implem/Proto_MBDataIndex.H"
30 } // end namespace Proto
31 #endif // end include guard
unsigned int global() const
Definition: Proto_MBDataIterator.H:10
std::shared_ptr< MBPartition > m_partition
Definition: Proto_MBDataIndex.H:25
unsigned int m_index
Definition: Proto_MBDataIndex.H:26
unsigned int local() const
Definition: Proto_Array.H:17
bool operator==(const MBDataIterator &a_rhs)
Definition: Proto_MBDataIndex.H:8
bool operator!=(const MBDataIndex &a_rhs)