8#ifndef FMTTRA_H_INCLUDED
9#define FMTTRA_H_INCLUDED
13#include <boost/serialization/serialization.hpp>
14#include <boost/serialization/string.hpp>
15#include <boost/serialization/export.hpp>
75 operator std::string()
const;
120 unsigned int age_after(
const std::vector<FMTdevelopment>& devs,
123 const std::vector<FMTtheme>& themes)
const;
136 std::map<std::string, std::vector<FMTdevelopment>>
attribute_targets(
const std::vector<FMTdevelopment>& devs,
137 const FMTyields& ylds,
const std::vector<FMTtheme>& themes)
const;
159 const std::vector<FMTtheme>& originalthemes,
160 std::vector<FMTtheme>& newthemes,
bool compressdata=
false)
const;
170 friend class boost::serialization::access;
171 template<
class Archive>
172 void serialize(Archive& ar,
const unsigned int version)
175 ar& boost::serialization::make_nvp(
"data", boost::serialization::base_object<
FMTlist<FMTfork>>(*
this));
176 ar& BOOST_SERIALIZATION_NVP(name);
180 _exhandler->printexceptions(
"",
"FMTtransition::serialize", __LINE__, __FILE__);
193 std::string transition_name;
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTaction.hpp:42
Definition: FMTdevelopment.hpp:44
Definition: FMTfork.hpp:34
Definition: FMTlist.hpp:46
Definition: FMTmask.hpp:96
Definition: FMTmaskfilter.hpp:27
Definition: FMTtransition.hpp:37
FMTtransition(const std::string &lname)
FMTtransition(const FMTtransition &rhs)
std::vector< Core::FMTmask > canproduce(const Core::FMTmask &testmask, const std::vector< Core::FMTtheme > &themes) const
std::vector< FMTtheme > getstaticthemes(const std::vector< FMTtheme > &themes) const
std::map< std::string, std::vector< FMTdevelopment > > attribute_targets(const std::vector< FMTdevelopment > &devs, const FMTyields &ylds, const std::vector< FMTtheme > &themes) const
const FMTfork * getfork(const Core::FMTdevelopment &developement, const FMTyields &ylds) const
std::string getname() const
Definition: FMTtransition.hpp:87
FMTmask main_target(const std::vector< FMTdevelopment > &devs, const FMTyields &ylds) const
FMTtransition & operator+=(const FMTtransition &OtherTransition)
append OtherTransition to this transition needs to be unskrink or it will throw an exception.
std::string name
name of the FMTtranstion same name seen in FMTaction
Definition: FMTtransition.hpp:164
FMTtransition single() const
FMTtransition presolve(const FMTmaskfilter &filter, const std::vector< FMTtheme > &originalthemes, std::vector< FMTtheme > &newthemes, bool compressdata=false) const
unsigned int age_after(const std::vector< FMTdevelopment > &devs, const FMTaction &action, const FMTyields &ylds, const std::vector< FMTtheme > &themes) const
Definition: FMTtransition.hpp:190
bool operator()(const FMTtransition &transition) const
FMTtransitioncomparator(std::string name)
Definition: FMTyields.hpp:40
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTaction.hpp:31