FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTFuturDevelopment.h
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 FMTfuturdevelopment_Hm_included
9#define FMTfuturdevelopment_Hm_included
10
11#include "FMTDevelopment.h"
12#include <boost/serialization/serialization.hpp>
13#include <memory>
14#include <boost/serialization/export.hpp>
15
16namespace Core
17{
18 // DocString: FMTFuturDevelopment
23 {
24 public:
25 // DocString: FMTFuturDevelopment::(FMTFuturDevelopment&& rhs)
31 // DocString: FMTFuturDevelopment::operator=(FMTFuturDevelopment&& rhs)
38 // DocString: FMTFuturDevelopment()
43 // DocString: ~FMTFuturDevelopment()
48 // DocString: FMTFuturDevelopment(const FMTDevelopment&)
54 // DocString: FMTFuturDevelopment(const FMTFuturDevelopment&)
60 // DocString: FMTFuturDevelopment::operator==
66 bool operator == (const FMTFuturDevelopment& rhs) const;
67 // DocString: FMTFuturDevelopment::operator=
73 FMTFuturDevelopment& operator = (const FMTFuturDevelopment& rhs);
74 // DocString: FMTFuturDevelopment::operator=
79 std::unique_ptr<FMTDevelopment> clone() const override;
80 // DocString: FMTFuturDevelopment::getArea
85 double getArea() const override;
86 private:
87 // DocString: FMTFuturDevelopment::serialize
94 friend class boost::serialization::access;
95 template<class Archive>
96 void serialize(Archive& ar, const unsigned int version)
97 {
98 try {
99 ar& boost::serialization::make_nvp("development", boost::serialization::base_object<FMTDevelopment>(*this));
100 }
101 catch (...)
102 {
103 _exhandler->printExceptions("", "FMTFuturDevelopment::serialize", __LINE__, __FILE__);
104 }
105 }
106
107 };
108}
109
110BOOST_CLASS_EXPORT_KEY(Core::FMTFuturDevelopment)
111#endif // FMTDEV_Hm_included
#define FMTEXPORT
Definition: FMTutility.h:125
Base class of FMTActualDevelopment and FMTFuturDevelopment representing a forest stand.
Definition: FMTDevelopment.h:44
Child class of FMTDevelopment representing a future stand generated by growth or transition,...
Definition: FMTFuturDevelopment.h:23
std::unique_ptr< FMTDevelopment > clone() const override
Return a unique pointer of FMTDevelopment cloning the future development.
FMTFuturDevelopment(const FMTDevelopment &dev)
Construct a future development from a development.
FMTFuturDevelopment & operator=(FMTFuturDevelopment &&rhs)
Move assignment operator for FMTFuturDevelopment.
FMTFuturDevelopment(const FMTFuturDevelopment &rhs)
Copy constructor for FMTFuturDevelopment.
FMTFuturDevelopment()
Default constructor for FMTFuturDevelopment.
FMTFuturDevelopment(FMTFuturDevelopment &&rhs)
Move copy constructor.
double getArea() const override
Return the area of the future development, which is 0.
~FMTFuturDevelopment()=default
Default destructor for FMTFuturDevelopment.
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTAction.h:34