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