mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
planner: turn diveplan into a C++ structure
No more memory management woes. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
6c8f158569
commit
8704a8b6f9
6 changed files with 372 additions and 450 deletions
|
|
@ -130,10 +130,10 @@ private:
|
|||
void updateDiveProfile(); // Creates a temporary plan and updates the dive profile with it.
|
||||
void createTemporaryPlan();
|
||||
struct diveplan diveplan;
|
||||
struct divedatapoint *cloneDiveplan(struct diveplan *plan_src, struct diveplan *plan_copy);
|
||||
void cloneDiveplan(const struct diveplan &plan_src, struct diveplan &plan_copy);
|
||||
void computeVariationsDone(QString text);
|
||||
void computeVariations(struct diveplan *diveplan, const struct deco_state *ds);
|
||||
void computeVariationsFreeDeco(struct diveplan *diveplan, std::unique_ptr<struct deco_state> ds);
|
||||
void computeVariations(std::unique_ptr<struct diveplan> plan, const struct deco_state *ds);
|
||||
void computeVariationsFreeDeco(std::unique_ptr<struct diveplan> plan, std::unique_ptr<struct deco_state> ds);
|
||||
int analyzeVariations(struct decostop *min, struct decostop *mid, struct decostop *max, const char *unit);
|
||||
struct dive *d;
|
||||
int dcNr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue