Microflow 3D  v1.0
DirectionsD3Q19.h
Go to the documentation of this file.
1 // ==============================================================================================
2 // Microflow 3D, http://www.microflow.pwr.edu.pl/
3 // Created by Roman Szafran on 01.05.19.
4 // Copyright (c) 2019 Wroclaw University of Science and Technology.
5 // Distributed under the Apache License, Version 2.0. You may obtain a copy of the License at
6 // http://www.apache.org/licenses/LICENSE-2.0 or see accompanying file license.txt.
7 // Redistributions of source code must retain the above copyright and license notice.
8 // ==============================================================================================
9 
10 #pragma once
11 
12 #include <cstdint>
13 
14 namespace MF::GU {
15 
18  public:
19  // Coding/decoding structure
20  union {
21  struct {
22  uint32_t f0 :1;
23  uint32_t f1 :1;
24  uint32_t f2 :1;
25  uint32_t f3 :1;
26  uint32_t f4 :1;
27  uint32_t f5 :1;
28  uint32_t f6 :1;
29  uint32_t f7 :1;
30  uint32_t f8 :1;
31  uint32_t f9 :1;
32  uint32_t f10 :1;
33  uint32_t f11 :1;
34  uint32_t f12 :1;
35  uint32_t f13 :1;
36  uint32_t f14 :1;
37  uint32_t f15 :1;
38  uint32_t f16 :1;
39  uint32_t f17 :1;
40  uint32_t f18 :1;
41  uint32_t f19 :1;
42  uint32_t f20 :1;
43  uint32_t f21 :1;
44  uint32_t f22 :1;
45  uint32_t f23 :1;
46  uint32_t f24 :1;
47  uint32_t f25 :1;
48  uint32_t f26 :1;
49  uint32_t f27 :1;
50  uint32_t f28 :1;
51  uint32_t f29 :1;
52  uint32_t f30 :1;
53  uint32_t f31 :1;
54  } ff;
55  uint32_t FF;
56  } node_t {};
57 
59  node_t.FF = 0;
60  }
61 
62  ~DirectionsD3Q19() = default;
63  };
64 
65  } /* End of namespace MF */
66 
struct MF::GU::DirectionsD3Q19::@2::@3 ff
A structure that allows to code/decode in unsigned int number (32bit) the propagation directions of t...
union MF::GU::DirectionsD3Q19::@2 node_t