ViennaGrid for Python
 All Classes Files Functions Variables
linear.hpp
Go to the documentation of this file.
1 
6 #ifndef SEGMENTS_LINEAR_HPP
7 #define SEGMENTS_LINEAR_HPP
8 
9 #include "types.hpp"
10 
11 #include "../domains/forward.hpp"
12 
13 #include "../points/cartesian.hpp"
14 #include "../points/cylindrical.hpp"
15 #include "../points/polar.hpp"
16 #include "../points/spherical.hpp"
17 
18 #include "../segmentations/forward.hpp"
19 #include "../cells/linear.hpp"
20 #include "../vertices/linear.hpp"
21 
22 #include <boost/python.hpp>
23 using namespace boost::python;
24 
31 {
36  LinearCartesian1D_Segment_t segment;
37 
42  LinearCartesian1D_Segmentation *segmentation;
43 public:
44  LinearCartesian1D_Segment(LinearCartesian1D_Segment_t &initial_segment, LinearCartesian1D_Segmentation &initial_segmentation);
45 
53  unsigned int num_cells();
54 
66 
74  list get_cells();
75 
82  LinearCartesian1D_Segment_t & get_segment();
83 };
84 
91 {
96  LinearCartesian2D_Segment_t segment;
97 
102  LinearCartesian2D_Segmentation *segmentation;
103 public:
104  LinearCartesian2D_Segment(LinearCartesian2D_Segment_t &initial_segment, LinearCartesian2D_Segmentation &initial_segmentation);
105 
113  unsigned int num_cells();
114 
126 
134  list get_cells();
135 
142  LinearCartesian2D_Segment_t & get_segment();
143 };
144 
151 {
156  LinearCartesian3D_Segment_t segment;
157 
162  LinearCartesian3D_Segmentation *segmentation;
163 public:
164  LinearCartesian3D_Segment(LinearCartesian3D_Segment_t &initial_segment, LinearCartesian3D_Segmentation &initial_segmentation);
165 
173  unsigned int num_cells();
174 
186 
194  list get_cells();
195 
202  LinearCartesian3D_Segment_t & get_segment();
203 };
204 
211 {
216  LinearCylindrical3D_Segment_t segment;
217 
222  LinearCylindrical3D_Segmentation *segmentation;
223 public:
224  LinearCylindrical3D_Segment(LinearCylindrical3D_Segment_t &initial_segment, LinearCylindrical3D_Segmentation &initial_segmentation);
225 
233  unsigned int num_cells();
234 
246 
254  list get_cells();
255 
262  LinearCylindrical3D_Segment_t & get_segment();
263 };
264 
271 {
276  LinearPolar2D_Segment_t segment;
277 
282  LinearPolar2D_Segmentation *segmentation;
283 public:
284  LinearPolar2D_Segment(LinearPolar2D_Segment_t &initial_segment, LinearPolar2D_Segmentation &initial_segmentation);
285 
293  unsigned int num_cells();
294 
306 
314  list get_cells();
315 
322  LinearPolar2D_Segment_t & get_segment();
323 };
324 
331 {
336  LinearSpherical3D_Segment_t segment;
337 
342  LinearSpherical3D_Segmentation *segmentation;
343 public:
344  LinearSpherical3D_Segment(LinearSpherical3D_Segment_t &initial_segment, LinearSpherical3D_Segmentation &initial_segmentation);
345 
353  unsigned int num_cells();
354 
366 
374  list get_cells();
375 
382  LinearSpherical3D_Segment_t & get_segment();
383 };
384 
385 #endif /* end of include guard: SEGMENTS_LINEAR_HPP */