FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTactualdevelopment.hpp
Go to the documentation of this file.
1/*
2Copyright (c) 2019 Gouvernement du Québec
3
4SPDX-License-Identifier: LiLiQ-R-1.1
5License-Filename: LICENSES/EN/LiLiQ-R11unicode.txt
6*/
7
8#ifndef FMTactualdevelopment_H_INCLUDED
9#define FMTactualdevelopment_H_INCLUDED
10
11#include "FMTdevelopment.hpp"
12#include <boost/serialization/serialization.hpp>
13#include <boost/serialization/nvp.hpp>
14#include <boost/serialization/export.hpp>
15
16namespace Core
17{
18class FMTlifespans;
19// DocString: FMTactualdevelopment
25 {
26 // DocString: FMTactualdevelopment::serialize
30 friend class boost::serialization::access;
31 template<class Archive>
32 void serialize(Archive& ar, const unsigned int version)
33 {
34 try {
35
36 ar & boost::serialization::make_nvp("development", boost::serialization::base_object<FMTdevelopment>(*this));
37 ar & BOOST_SERIALIZATION_NVP(area);
38 }catch (...)
39 {
40 _exhandler->printexceptions("", "FMTactualdevelopment::serialize", __LINE__, __FILE__);
41 }
42 }
43 // DocString: FMTactualdevelopment::area
45 double area;
46 public:
47 // DocString: FMTactualdevelopment()
52 // DocString: ~FMTactualdevelopment()
57 // DocString: FMTactualdevelopment(const FMTactualdevelopment&)
62 // DocString: FMTactualdevelopment(const FMTmask&,const int&,const int&,const int&,const double&)
66 FMTactualdevelopment(const FMTmask& mask, const int& age, const int& lock, const double& area);
67 // DocString: FMTactualdevelopment(const FMTdevelopment&,double)
71 FMTactualdevelopment(const FMTdevelopment& rhs, double larea);
72 // DocString: FMTactualdevelopment::operator=
77 // DocString: FMTactualdevelopment::operator==
81 bool operator == (const FMTactualdevelopment& rhs) const;
82 // DocString: FMTactualdevelopment::operator!=
86 bool operator != (const FMTactualdevelopment& rhs) const;
87 // DocString: FMTactualdevelopment::operator<
91 bool operator < (const FMTactualdevelopment& rhs) const;
92 // DocString: FMTactualdevelopment::operator std::string
96 operator std::string() const override;
97 // DocString: FMTactualdevelopment::getarea
101 double getarea() const override;
102 // DocString: FMTactualdevelopment::setarea
106 void setarea(const double& newarea);
107 // DocString: FMTactualdevelopment::clone
111 std::unique_ptr<FMTdevelopment> Clone() const override;
112 // DocString: FMTactualdevelopment::presolve
116 FMTactualdevelopment presolve(const FMTmaskfilter& filter, const std::vector<FMTtheme>&presolvedthemes) const;
117 // DocString: FMTactualdevelopment::reducelocktodeath
124 };
125
126// DocString: FMTactualdevelopmentcomparator
131 {
132 // DocString: FMTactioncomparator::basedev
134 const FMTdevelopment* basedev;
135 public:
136 // DocString: FMTactualdevelopmentcomparator(const FMTdevelopment*)
141 // DocString: FMTactualdevelopmentcomparator::operator()(const FMTactualdevelopment&)
145 bool operator()(const FMTactualdevelopment& actualdev) const;
146
147 };
148
149}
150
151BOOST_CLASS_EXPORT_KEY(Core::FMTactualdevelopment)
152#endif
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTactualdevelopment.hpp:25
FMTactualdevelopment(const FMTactualdevelopment &rhs)
double getarea() const override
std::unique_ptr< FMTdevelopment > Clone() const override
void setarea(const double &newarea)
FMTactualdevelopment reducelocktodeath(const FMTlifespans &lifespans) const
FMTactualdevelopment(const FMTmask &mask, const int &age, const int &lock, const double &area)
FMTactualdevelopment(const FMTdevelopment &rhs, double larea)
FMTactualdevelopment presolve(const FMTmaskfilter &filter, const std::vector< FMTtheme > &presolvedthemes) const
Definition: FMTactualdevelopment.hpp:131
FMTactualdevelopmentcomparator(const FMTdevelopment *base)
bool operator()(const FMTactualdevelopment &actualdev) const
Definition: FMTdevelopment.hpp:44
Definition: FMTlifespans.hpp:24
Definition: FMTmask.hpp:96
Definition: FMTmaskfilter.hpp:27
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTaction.hpp:31