FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTforest.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 FMTFOREST_H_INCLUDED
9#define FMTFOREST_H_INCLUDED
10
11
12#include "FMTlayer.hpp"
13#include "FMTdevelopment.hpp"
14#include <iterator>
15#include <numeric>
16
17namespace Core {
18 class FMTtheme;
19 class FMTactualdevelopment;
20 class FMTfuturdevelopment;
21}
22
23
24namespace Spatial
25 {
26 class FMTEXPORT FMTforest: public FMTlayer<Core::FMTdevelopment>
27 {
28 friend class boost::serialization::access;
29 template<class Archive>
30 void serialize(Archive& ar, const unsigned int version)
31 {
32 ar & boost::serialization::make_nvp("layer", boost::serialization::base_object<FMTlayer<Core::FMTdevelopment>>(*this));
33 }
34 public:
36 FMTforest(const FMTforest& rhs);
38 FMTforest& operator = (const FMTforest& rhs);
39 std::vector<Core::FMTactualdevelopment>getarea() const;
40 FMTforest getcopy(bool copydata = true) const;
41 FMTforest grow() const;
42 std::vector<FMTlayer<std::string>> getthemes(const std::vector<Core::FMTtheme>& themes) const;
45 void setperiod(int period);
46 FMTforest presolve(const Core::FMTmaskfilter& filter, const std::vector<Core::FMTtheme>&presolvedthemes) const;
47 FMTforest postsolve(const Core::FMTmaskfilter& filter, const std::vector<Core::FMTtheme>&originalbasethemes) const;
48 };
49 }
50#endif // FMTFOREST_H_INCLUDED
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTmaskfilter.hpp:27
Definition: FMTforest.hpp:27
FMTforest postsolve(const Core::FMTmaskfilter &filter, const std::vector< Core::FMTtheme > &originalbasethemes) const
std::vector< Core::FMTactualdevelopment > getarea() const
FMTlayer< std::string > getlock() const
void setperiod(int period)
std::vector< FMTlayer< std::string > > getthemes(const std::vector< Core::FMTtheme > &themes) const
FMTforest grow() const
FMTlayer< int > getage() const
FMTforest(const FMTforest &rhs)
FMTforest getcopy(bool copydata=true) const
FMTforest(const FMTlayer< Core::FMTdevelopment > &rhs)
FMTforest presolve(const Core::FMTmaskfilter &filter, const std::vector< Core::FMTtheme > &presolvedthemes) const
Definition: FMTlayer.hpp:29
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTaction.hpp:31
The spatial namespace provides classes for spatialy explicit simulation/optimization based on raster ...
Definition: FMTareaparser.hpp:36