rheolef  6.6
geo_header.h
Go to the documentation of this file.
1 #ifndef _RHEOLEF_GEO_HEADER_H
2 #define _RHEOLEF_GEO_HEADER_H
3 // i/o for geo header file format version 3
4 #include "rheolef/diststream.h"
5 #include "rheolef/reference_element.h"
6 #include "rheolef/space_constant.h"
7 
8 namespace rheolef {
9 
10 struct geo_header {
11  typedef size_t size_type;
13  geo_header();
14  bool need_upgrade() const;
15  size_type dimension;
16  size_type map_dimension;
17  coordinate_type sys_coord;
18  size_type order;
20  size_type dis_size_by_dimension [4];
21 };
22 inline
24  : dimension(0),
25  sys_coord(space_constant::cartesian),
26  order(1)
27 {
29  std::fill (dis_size_by_dimension, dis_size_by_dimension + 4, 0);
30 }
33 
34 } // namespace rheolef {
35 #endif // _RHEOLEF_GEO_HEADER_H
define_sequential_odiststream_macro(char) define_sequential_odiststream_macro(int) define_sequential_odiststream_macro(unsigned int) define_sequential_odiststream_macro(long int) define_sequential_odiststream_macro(long unsigned int) define_sequential_odiststream_macro(float) define_sequential_odiststream_macro(double) define_sequential_odiststream_macro(long double) define_sequential_odiststream_macro(char *const ) define_sequential_odiststream_macro(st idiststream)()
Definition: diststream.h:228
static const variant_type max_variant
size_type dimension
Definition: geo_header.h:15
idiststream, odiststream - distributed interface for large data streams
Definition: diststream.h:68
irheostream, orheostream - large data streams
Definition: compiler.h:7
coordinate_type sys_coord
Definition: geo_header.h:17
bool need_upgrade() const
Definition: geo_header.cc:57
size_type dis_size_by_dimension[4]
Definition: geo_header.h:20
size_type map_dimension
Definition: geo_header.h:16
space_constant::coordinate_type coordinate_type
Definition: geo_header.h:12
std::istream & operator>>(std::istream &is, const catchmark &m)
Definition: catchmark.h:48
size_type dis_size_by_variant[reference_element::max_variant]
Definition: geo_header.h:19
std::ostream & operator<<(std::ostream &os, const catchmark &m)
Definition: catchmark.h:59