dune-grid 2.8.0
Loading...
Searching...
No Matches
volumeiterators.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3
4#ifndef DUNE_GRID_IO_FILE_VTK_VOLUMEITERATORS_HH
5#define DUNE_GRID_IO_FILE_VTK_VOLUMEITERATORS_HH
6
8
13
14namespace Dune {
17
18 namespace VTK {
19
20 template<typename GV>
22 const GV& gv;
23
24 typedef typename GV::IndexSet IndexSet;
25 const IndexSet& indexSet() const { return gv.indexSet(); }
28
29 public:
30 static const unsigned dimCell = GV::dimension;
31
32 typedef typename GV::template Codim<0>::Entity Cell;
33 typedef typename GV::template Codim<0>::
34 template Partition<InteriorBorder_Partition>::Iterator CellIterator;
35
38
41 typename GV::IndexSet> PointIterator;
42
45 typedef typename GV::CollectiveCommunication CollectiveCommunication;
46
47 explicit ConformingVolumeIteratorFactory(const GV& gv_)
48 : gv(gv_)
49 { }
50
52 return gv.template begin<0, InteriorBorder_Partition>();
53 }
55 return gv.template end<0, InteriorBorder_Partition>();
56 }
57
60 }
62 return CornerIterator(endCells());
63 }
64
66 return PointIterator(beginCells(), endCells(), gv.indexSet());
67 }
69 return PointIterator(endCells());
70 }
71
73 return ConnectivityWriter(*this);
74 }
76 return gv.comm();
77 }
78 };
79
80 template<typename GV>
82 const GV& gv;
83
84 public:
85 static const unsigned dimCell = GV::dimension;
86
87 typedef typename GV::template Codim<0>::Entity Cell;
88 typedef typename GV::template Codim<0>::
89 template Partition<InteriorBorder_Partition>::Iterator CellIterator;
90
93
94 typedef Corner Point;
96
98 typedef typename GV::CollectiveCommunication CollectiveCommunication;
99
101 : gv(gv_)
102 { }
103
105 return gv.template begin<0, InteriorBorder_Partition>();
106 }
108 return gv.template end<0, InteriorBorder_Partition>();
109 }
110
113 }
115 return CornerIterator(endCells());
116 }
117
119 PointIterator endPoints() const { return endCorners(); }
120
122 return ConnectivityWriter();
123 }
125 return gv.comm();
126 }
127 };
128
129 } // namespace VTK
130
132
133} // namespace Dune
134
135#endif // DUNE_GRID_IO_FILE_VTK_VOLUMEITERATORS_HH
Include standard header files.
Definition: agrid.hh:58
simple class representing a corner of a cell
Definition: corner.hh:23
iterate over the corners of some cell range
Definition: corneriterator.hh:37
writer for the connectivity array in conforming mode
Definition: functionwriter.hh:193
writer for the connectivity array in nonconforming mode
Definition: functionwriter.hh:259
iterate over the points of some corner range
Definition: pointiterator.hh:56
Definition: volumeiterators.hh:21
CornerIterator endCorners() const
Definition: volumeiterators.hh:61
const CollectiveCommunication & comm() const
Definition: volumeiterators.hh:75
VTK::CornerIterator< CellIterator > CornerIterator
Definition: volumeiterators.hh:37
VTK::Corner< Cell > Corner
Definition: volumeiterators.hh:36
CellIterator endCells() const
Definition: volumeiterators.hh:54
VTK::PointIterator< CellIterator, typename GV::IndexSet > PointIterator
Definition: volumeiterators.hh:41
ConformingConnectivityWriter< ConformingVolumeIteratorFactory< GV > > ConnectivityWriter
Definition: volumeiterators.hh:44
CornerIterator beginCorners() const
Definition: volumeiterators.hh:58
static const unsigned dimCell
Definition: volumeiterators.hh:30
PointIterator endPoints() const
Definition: volumeiterators.hh:68
ConformingVolumeIteratorFactory(const GV &gv_)
Definition: volumeiterators.hh:47
VTK::Corner< Cell > Point
Definition: volumeiterators.hh:39
GV::CollectiveCommunication CollectiveCommunication
Definition: volumeiterators.hh:45
ConnectivityWriter makeConnectivity() const
Definition: volumeiterators.hh:72
CellIterator beginCells() const
Definition: volumeiterators.hh:51
GV::template Codim< 0 >::Entity Cell
Definition: volumeiterators.hh:32
PointIterator beginPoints() const
Definition: volumeiterators.hh:65
GV::template Codim< 0 >::template Partition< InteriorBorder_Partition >::Iterator CellIterator
Definition: volumeiterators.hh:34
Definition: volumeiterators.hh:81
const CollectiveCommunication & comm() const
Definition: volumeiterators.hh:124
GV::CollectiveCommunication CollectiveCommunication
Definition: volumeiterators.hh:98
PointIterator beginPoints() const
Definition: volumeiterators.hh:118
CellIterator beginCells() const
Definition: volumeiterators.hh:104
GV::template Codim< 0 >::Entity Cell
Definition: volumeiterators.hh:87
NonConformingVolumeIteratorFactory(const GV &gv_)
Definition: volumeiterators.hh:100
ConnectivityWriter makeConnectivity() const
Definition: volumeiterators.hh:121
NonConformingConnectivityWriter< Cell > ConnectivityWriter
Definition: volumeiterators.hh:97
static const unsigned dimCell
Definition: volumeiterators.hh:85
CellIterator endCells() const
Definition: volumeiterators.hh:107
CornerIterator endCorners() const
Definition: volumeiterators.hh:114
VTK::CornerIterator< CellIterator > CornerIterator
Definition: volumeiterators.hh:92
VTK::Corner< Cell > Corner
Definition: volumeiterators.hh:91
CornerIterator PointIterator
Definition: volumeiterators.hh:95
GV::template Codim< 0 >::template Partition< InteriorBorder_Partition >::Iterator CellIterator
Definition: volumeiterators.hh:89
PointIterator endPoints() const
Definition: volumeiterators.hh:119
Corner Point
Definition: volumeiterators.hh:94
CornerIterator beginCorners() const
Definition: volumeiterators.hh:111