rheolef  6.3
band.h
Go to the documentation of this file.
1 #ifndef _RHEOLEF_BAND_H
2 #define _RHEOLEF_BAND_H
3 #include "rheolef/field.h"
4 #include "rheolef/level_set.h"
5 
6 namespace rheolef {
7 
44 template <class T, class M = rheo_default_memory_model>
45 class band_basic {
46 public:
47 
49 
50 
51  band_basic();
52  band_basic(const field_basic<T,M>& fh,
54 
56 
57  const geo_basic<T,M>& band() const { return _band; }
58  const geo_basic<T,M>& level_set() const { return _gamma; }
59  size_type sid_ie2bnd_ie (size_type sid_ie) const { return _sid_ie2bnd_ie [sid_ie]; }
60  size_type n_connected_component() const { return _ncc; }
61 
62 protected:
65  array<size_type,M> _sid_ie2bnd_ie;
67 };
69 @endcode
70 
71 template<class T, class M>
72 inline
74  : _gamma(),
75  _band(),
76  _sid_ie2bnd_ie(),
77  _ncc(0)
78 {
79 }
80 
81 } // namespace
82 #endif // _RHEOLEF_BAND_H
83