FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTmodelstats.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 FMTmodelstats_H_INCLUDED
9#define FMTmodelstats_H_INCLUDED
10
11#include <boost/serialization/serialization.hpp>
12#include <boost/serialization/nvp.hpp>
13#include <string>
14#include "FMTexception.hpp"
15
16namespace Models
17{
18 // DocString: FMTmodelstats
24 {
25 friend class boost::serialization::access;
26 // DocString: FMTmodelstats::serialize
30 template<class Archive>
31 void serialize(Archive& ar, const unsigned int version)
32 {
33 ar & BOOST_SERIALIZATION_NVP(themes);
34 ar & BOOST_SERIALIZATION_NVP(themesdata);
35 ar & BOOST_SERIALIZATION_NVP(actions);
36 ar & BOOST_SERIALIZATION_NVP(actionsdata);
37 ar & BOOST_SERIALIZATION_NVP(transitions);
38 ar & BOOST_SERIALIZATION_NVP(transitionsdata);
39 ar & BOOST_SERIALIZATION_NVP(yieldsdata);
40 ar & BOOST_SERIALIZATION_NVP(lifespansdata);
41 ar & BOOST_SERIALIZATION_NVP(outputs);
42 ar & BOOST_SERIALIZATION_NVP(outputsdata);
43 ar & BOOST_SERIALIZATION_NVP(constraints);
44 ar & BOOST_SERIALIZATION_NVP(constraintsdata);
45 }
46 public:
47 // DocString : FMTmodelstats::themes
49 int themes;
50 // DocString : FMTmodelstats::themesdata
53 // DocString : FMTmodelstats::actions
56 // DocString : FMTmodelstats::actionsdata
59 // DocString : FMTmodelstats::transitions
62 // DocString : FMTmodelstats::transitionsdata
65 // DocString : FMTmodelstats::yieldsdata
68 // DocString : FMTmodelstats::lifespansdata
71 // DocString : FMTmodelstats::outputs
74 // DocString : FMTmodelstats::outputsdata
77 // DocString : FMTmodelstats::constraints
80 // DocString : FMTmodelstats::constraintsdata
83 // DocString : FMTmodelstats(const size_t,const size_t,const size_t, const size_t,const size_t,const size_t, const size_t, const size_t,const size_t, const size_t,const size_t,const size_t)
87 FMTmodelstats(const size_t& lthemes,const size_t& lthemesdata, const size_t& lactions, const size_t& lactionsdata,
88 const size_t& ltransitions, const size_t& ltransitionsdata, const size_t& lyieldsdata,const size_t& llifespansdata,
89 const size_t& loutputs, const size_t& loutputsdata,const size_t& lconstraints, const size_t& lconstraintsdata);
90 // DocString : FMTmodelstats()
94 FMTmodelstats() = default;
95 // DocString : FMTmodelstats(const FMTmodelstats)
99 FMTmodelstats(const FMTmodelstats& rhs) = default;
100 // DocString : ~FMTmodelstats()
104 ~FMTmodelstats() = default;
105 // DocString : FMTmodelstats::operator=
109 FMTmodelstats& operator = (const FMTmodelstats& rhs) = default;
110 // DocString : FMTmodelstats::operator+=
114 FMTmodelstats& operator += (const FMTmodelstats& rhs);
115 // DocString : FMTmodelstats::operator-=
119 FMTmodelstats& operator -= (const FMTmodelstats& rhs);
120 // DocString : FMTmodelstats::operator+
124 FMTmodelstats operator + (const FMTmodelstats& rhs);
125 // DocString : FMTmodelstats::operator-
129 FMTmodelstats operator - (const FMTmodelstats& rhs);
130 // DocString : FMTmodelstats::operator==
134 bool operator == (const FMTmodelstats& rhs) const;
135 // DocString : FMTmodelstats::operator!=
139 bool operator != (const FMTmodelstats& rhs) const;
140 // DocString : FMTmodelstats::operator std::string()
144 operator std::string() const;
145
146 };
147}
148
149#endif
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTmodelstats.hpp:24
int actionsdata
The actions's data size.
Definition: FMTmodelstats.hpp:58
int transitionsdata
The transitions's data size.
Definition: FMTmodelstats.hpp:64
int outputs
The number of outputs of the FMTmodel.
Definition: FMTmodelstats.hpp:73
int constraintsdata
The constraintsdata's data size.
Definition: FMTmodelstats.hpp:82
FMTmodelstats(const size_t &lthemes, const size_t &lthemesdata, const size_t &lactions, const size_t &lactionsdata, const size_t &ltransitions, const size_t &ltransitionsdata, const size_t &lyieldsdata, const size_t &llifespansdata, const size_t &loutputs, const size_t &loutputsdata, const size_t &lconstraints, const size_t &lconstraintsdata)
int themes
The number of themes the FMTmodel.
Definition: FMTmodelstats.hpp:49
int actions
The number of actions of the FMTmodel.
Definition: FMTmodelstats.hpp:55
int lifespansdata
The lifespans's data size.
Definition: FMTmodelstats.hpp:70
int transitions
The number of transitions of the FMTmodel.
Definition: FMTmodelstats.hpp:61
int constraints
The number of constraints of the FMTmodel.
Definition: FMTmodelstats.hpp:79
int outputsdata
The outputsdata's data size.
Definition: FMTmodelstats.hpp:76
int themesdata
The themes's data size.
Definition: FMTmodelstats.hpp:52
int yieldsdata
The yields's data size.
Definition: FMTmodelstats.hpp:67
FMTmodelstats(const FMTmodelstats &rhs)=default
Namespace containing all enumerator and classes used to construct or manipulate the different type of...
Definition: FMTareaparser.hpp:50