FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTLifespans.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 FMTLIF_Hm_included
9#define FMTLIF_Hm_included
10
11#include "FMTList.hpp"
12#include <boost/serialization/serialization.hpp>
13#include <boost/serialization/nvp.hpp>
14#include <boost/serialization/export.hpp>
15namespace Core
16{
17// DocString: FMTLifespans
22class FMTEXPORT FMTLifespans : public FMTList<int>
23 {
24 // DocString: FMTLifespans::serialize
31 friend class boost::serialization::access;
32 template<class Archive>
33 void serialize(Archive& ar, const unsigned int version)
34 {
35 ar & boost::serialization::make_nvp("data", boost::serialization::base_object<FMTList<int>>(*this));
36 }
37 public:
38 // DocString: swap
43 void swap(FMTLifespans& rhs);
44 // DocString: FMTLifespans()
49 // DocString: ~FMTLifespans()
53 ~FMTLifespans()=default;
54 // DocString: FMTLifespans(const FMTLifespans&)
60 // DocString: FMTLifespans::operator=
66 FMTLifespans& operator = (const FMTLifespans& rhs);
67 // DocString: FMTLifespans::operator==
73 bool operator == (const FMTLifespans& rhs) const;
74 // DocString: FMTLifespans::operator!=
80 bool operator != (const FMTLifespans& rhs) const;
81 // DocString: FMTLifespans::operator std::string
86 operator std::string() const;
87 // DocString: FMTLifespans::update
91 void update() override;
92 // DocString: FMTLifespans::preSolve
102 const std::vector<FMTTheme>& originalthemes,
103 std::vector<FMTTheme>& newthemes,bool compressdata=false) const;
104 };
105
106}
107BOOST_CLASS_EXPORT_KEY(Core::FMTLifespans)
108
109#endif // FMTLIF_Hm_included
#define FMTEXPORT
Definition: FMTutility.h:125
List holding the maximum age of aggregates of developments.
Definition: FMTLifespans.h:23
FMTLifespans()
Default constructor for FMTLifespans.
FMTLifespans preSolve(const FMTMaskFilter &filter, const std::vector< FMTTheme > &originalthemes, std::vector< FMTTheme > &newthemes, bool compressdata=false) const
Presolve the lifespans by eliminating list elements and presolving the masks.
void update() override
Override the FMTList update function, to be called after any change to the list.
FMTLifespans(const FMTLifespans &rhs)
Copy constructor for FMTLifespans.
void swap(FMTLifespans &rhs)
Swap this FMTLifespans with another.
~FMTLifespans()=default
Default destructor for FMTLifespans.
Definition: FMTAreaParser.h:32
Filter built from masks used to preSolve and postsolve FMTMask objects.
Definition: FMTMaskFilter.h:31
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTAction.h:34