ViennaGrid for Python
 All Classes Files Functions Variables
linear.hpp
Go to the documentation of this file.
1 
6 #ifndef ACCESSORS_LINEAR_HPP
7 #define ACCESSORS_LINEAR_HPP
8 
9 #include "types.hpp"
10 
11 #include "../vertices/linear.hpp"
12 #include "../cells/linear.hpp"
13 
14 /********************
15  * VERTEX ACCESSORS *
16  ********************/
17 
27  AccessorContainer_t container;
28 
33  LinearCartesian1D_Vertex_Accessor_t *accessor;
34 public:
37 
46  double get_value(LinearCartesian1D_Vertex &vertex);
47 
56  void set_value(LinearCartesian1D_Vertex &vertex, double new_value);
57 
58  LinearCartesian1D_Vertex_Accessor_t & get_accessor();
59 };
60 
70  AccessorContainer_t container;
71 
76  LinearCartesian2D_Vertex_Accessor_t *accessor;
77 public:
80 
89  double get_value(LinearCartesian2D_Vertex &vertex);
90 
99  void set_value(LinearCartesian2D_Vertex &vertex, double new_value);
100 
101  LinearCartesian2D_Vertex_Accessor_t & get_accessor();
102 };
103 
113  AccessorContainer_t container;
114 
119  LinearCartesian3D_Vertex_Accessor_t *accessor;
120 public:
123 
132  double get_value(LinearCartesian3D_Vertex &vertex);
133 
142  void set_value(LinearCartesian3D_Vertex &vertex, double new_value);
143 
144  LinearCartesian3D_Vertex_Accessor_t & get_accessor();
145 };
146 
156  AccessorContainer_t container;
157 
162  LinearCylindrical3D_Vertex_Accessor_t *accessor;
163 public:
166 
175  double get_value(LinearCylindrical3D_Vertex &vertex);
176 
185  void set_value(LinearCylindrical3D_Vertex &vertex, double new_value);
186 
187  LinearCylindrical3D_Vertex_Accessor_t & get_accessor();
188 };
189 
199  AccessorContainer_t container;
200 
205  LinearPolar2D_Vertex_Accessor_t *accessor;
206 public:
209 
218  double get_value(LinearPolar2D_Vertex &vertex);
219 
228  void set_value(LinearPolar2D_Vertex &vertex, double new_value);
229 
230  LinearPolar2D_Vertex_Accessor_t & get_accessor();
231 };
232 
242  AccessorContainer_t container;
243 
248  LinearSpherical3D_Vertex_Accessor_t *accessor;
249 public:
252 
261  double get_value(LinearSpherical3D_Vertex &vertex);
262 
271  void set_value(LinearSpherical3D_Vertex &vertex, double new_value);
272 
273  LinearSpherical3D_Vertex_Accessor_t & get_accessor();
274 };
275 
276 /******************
277  * CELL ACCESSORS *
278  ******************/
279 
289  AccessorContainer_t container;
290 
295  LinearCartesian1D_Cell_Accessor_t *accessor;
296 public:
299 
308  double get_value(LinearCartesian1D_Cell &cell);
309 
318  void set_value(LinearCartesian1D_Cell &cell, double new_value);
319 
320  LinearCartesian1D_Cell_Accessor_t & get_accessor();
321 };
322 
332  AccessorContainer_t container;
333 
338  LinearCartesian2D_Cell_Accessor_t *accessor;
339 public:
342 
351  double get_value(LinearCartesian2D_Cell &cell);
352 
361  void set_value(LinearCartesian2D_Cell &cell, double new_value);
362 
363  LinearCartesian2D_Cell_Accessor_t & get_accessor();
364 };
365 
375  AccessorContainer_t container;
376 
381  LinearCartesian3D_Cell_Accessor_t *accessor;
382 public:
385 
394  double get_value(LinearCartesian3D_Cell &cell);
395 
404  void set_value(LinearCartesian3D_Cell &cell, double new_value);
405 
406  LinearCartesian3D_Cell_Accessor_t & get_accessor();
407 };
408 
418  AccessorContainer_t container;
419 
424  LinearCylindrical3D_Cell_Accessor_t *accessor;
425 public:
428 
437  double get_value(LinearCylindrical3D_Cell &cell);
438 
447  void set_value(LinearCylindrical3D_Cell &cell, double new_value);
448 
449  LinearCylindrical3D_Cell_Accessor_t & get_accessor();
450 };
451 
461  AccessorContainer_t container;
462 
467  LinearPolar2D_Cell_Accessor_t *accessor;
468 public:
471 
480  double get_value(LinearPolar2D_Cell &cell);
481 
490  void set_value(LinearPolar2D_Cell &cell, double new_value);
491 
492  LinearPolar2D_Cell_Accessor_t & get_accessor();
493 };
494 
504  AccessorContainer_t container;
505 
510  LinearSpherical3D_Cell_Accessor_t *accessor;
511 public:
514 
523  double get_value(LinearSpherical3D_Cell &cell);
524 
533  void set_value(LinearSpherical3D_Cell &cell, double new_value);
534 
535  LinearSpherical3D_Cell_Accessor_t & get_accessor();
536 };
537 
538 #endif /* end of include guard: ACCESSORS_LINEAR_HPP */