Planetary Orbital Evolution due to Tides
Orbital evolution of two objects experiencing tides
AllowedGridGrowth.h
Go to the documentation of this file.
1 
13 #ifndef __ALLOWED_GRID_GROWTH_H
14 #define __ALLOWED_GRID_GROWTH_H
15 
16 #include "../Core/SharedLibraryExportMacros.h"
17 
18 namespace StellarEvolution {
19 
23  class LIB_LOCAL AllowedGridGrowth {
24  private:
25  bool
27  __lighter,
28 
30  __heavier,
31 
33  __poorer,
34 
36  __richer;
37 
38  public:
40  __lighter(true), __heavier(true), __poorer(true), __richer(true)
41  {}
42 
44  bool lighter() const {return __lighter;}
45 
47  bool heavier() const {return __heavier;}
48 
50  bool poorer() const {return __poorer;}
51 
53  bool richer() const {return __richer;}
54 
56  AllowedGridGrowth &block_lighter() {__lighter = false; return *this;}
57 
59  AllowedGridGrowth &block_heavier() {__heavier = false; return *this;}
60 
62  AllowedGridGrowth &block_poorer() {__poorer = false; return *this;}
63 
65  AllowedGridGrowth &block_richer() {__richer = false; return *this;}
66 
68  operator bool() const
69  {return __lighter || __heavier || __poorer || __richer;}
70  }; //End AllowedGridGrowth class declaration.
71 
72 } //End StellarEvolution namespace.
73 
74 #endif
75 
bool poorer() const
Can grow toward lower [Fe/H]?
AllowedGridGrowth & block_heavier()
Disable growth to higher masses.
AllowedGridGrowth & block_richer()
Disable growth to higher [Fe/H].
bool lighter() const
Can grow toward lower masses?
AllowedGridGrowth & block_lighter()
Disable growth to lower masses.
bool heavier() const
Can grow toward higher masses?
bool richer() const
Can grow toward higher [Fe/H]?
bool __richer
Can grow toward higher [Fe/H]?
AllowedGridGrowth & block_poorer()
Disable growth to lower [Fe/H].