Virtual Testbed
Ship dynamics simulator for extreme conditions
assumptions.hh
1 #ifndef VTESTBED_CORE_ASSUMPTIONS_HH
2 #define VTESTBED_CORE_ASSUMPTIONS_HH
3 
4 namespace vtb {
5 
6  namespace core {
7 
8  class Assumptions {
9 
10  private:
11  bool _largeamplitude = true;
12 
13  public:
14 
15  inline void
16  large_amplitude(bool rhs) noexcept {
17  this->_largeamplitude = rhs;
18  }
19 
20  inline void
21  small_amplitude(bool rhs) noexcept {
22  this->_largeamplitude = !rhs;
23  }
24 
25  inline bool
26  large_amplitude() const noexcept {
27  return this->_largeamplitude;
28  }
29 
30  inline bool
31  small_amplitude() const noexcept {
32  return !this->_largeamplitude;
33  }
34 
35  };
36 
37  }
38 
39 }
40 
41 #endif // vim:filetype=cpp
Main namespace.
Definition: convert.hh:9