FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTlifespans.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 FMTLIF_H_INCLUDED
9#define FMTLIF_H_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
23class FMTEXPORT FMTlifespans : public FMTlist<int>
24 {
25 // DocString: FMTlifespans::serialize
29 friend class boost::serialization::access;
30 template<class Archive>
31 void serialize(Archive& ar, const unsigned int version)
32 {
33 ar & boost::serialization::make_nvp("data", boost::serialization::base_object<FMTlist<int>>(*this));
34 }
35 public:
36 // DocString: swap
40 void swap(FMTlifespans& rhs);
41 // DocString: FMTlifespans()
46 // DocString: ~FMTlifespans()
50 ~FMTlifespans()=default;
51 // DocString: FMTlifespans(const FMTlifespans&)
56 // DocString: FMTlifespans::operator=
60 FMTlifespans& operator = (const FMTlifespans& rhs);
61 // DocString: FMTlifespans::operator==
65 bool operator == (const FMTlifespans& rhs) const;
66 // DocString: FMTlifespans::operator!=
70 bool operator != (const FMTlifespans& rhs) const;
71 // DocString: FMTlifespans::operator std::string
75 operator std::string() const;
76 // DocString: FMTlifespans::update
81 void update() override;
82 // DocString: FMTlifespans::presolve
88 const std::vector<FMTtheme>& originalthemes,
89 std::vector<FMTtheme>& newthemes,bool compressdata=false) const;
90 };
91
92}
93BOOST_CLASS_EXPORT_KEY(Core::FMTlifespans)
94
95#endif // FMTLIF_H_INCLUDED
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTlifespans.hpp:24
FMTlifespans(const FMTlifespans &rhs)
FMTlifespans presolve(const FMTmaskfilter &filter, const std::vector< FMTtheme > &originalthemes, std::vector< FMTtheme > &newthemes, bool compressdata=false) const
void update() override
~FMTlifespans()=default
void swap(FMTlifespans &rhs)
Definition: FMTlist.hpp:46
Definition: FMTmaskfilter.hpp:27
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTaction.hpp:31