42class ARCANE_CARTESIANMESH_EXPORT CartesianMeshPatchListView
44 friend CartesianMeshImpl;
45 friend CartesianPatchGroup;
56 friend CartesianMeshPatchListView;
60 typedef std::forward_iterator_tag iterator_category;
62 typedef Int32 size_type;
71 Iterator& operator++()
76 friend bool operator==(
const Iterator& a,
const Iterator& b)
78 return (a.m_patches.data() + a.m_index) == (b.m_patches.data() + b.m_index);
80 friend bool operator!=(
const Iterator& a,
const Iterator& b)
82 return !(operator==(a, b));
84 friend bool operator==(
const Iterator& a,
const Sentinel&)
86 return a.m_patches.size() != a.m_index;
88 friend bool operator!=(
const Iterator& a,
const Sentinel& b)
90 return !(operator==(a, b));
108 CartesianMeshPatchListView() =
default;
119 Iterator begin()
const {
return Iterator(m_patches, 0); }
120 Sentinel end()
const {
return {}; }
121 Iterator endIterator()
const {
return Iterator(m_patches, m_patches.size()); }
122 Int32 size()
const {
return m_patches.size(); }
126 ConstArrayView<ICartesianMeshPatch*> m_patches;