FMT 0.9.8
Forest management tools for forest planning
|
#include <FMTfork.hpp>
Public Member Functions | |
FMTfork () | |
FMTfork (const FMTfork &rhs) | |
~FMTfork () | |
FMTfork & | operator= (const FMTfork &rhs) |
void | add (const FMTtransitionmask &transition) |
void | clear () |
std::vector< FMTdevelopmentpath > | getpaths (const Core::FMTdevelopment &base, const Core::FMTyields &ylds, const std::vector< FMTtheme > &themes, const bool &reset_age) const |
FMTdevelopment | getmax (const FMTdevelopment &base, const FMTyields &ylds, const std::vector< FMTtheme > &themes, const bool &reset_age) const |
std::vector< FMTtransitionmask > | getmasktrans () const |
bool | operator== (const FMTfork &rhs) const |
FMTfork | single () const |
double | sumprop () const |
size_t | size () const |
FMTfork | presolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &presolvedthemes) const |
operator std::string () const override | |
Public Member Functions inherited from Core::FMTspec | |
FMTspec () | |
virtual | ~FMTspec ()=default |
FMTspec (const FMTspec &rhs) | |
FMTspec & | operator= (const FMTspec &rhs) |
bool | add (const FMTspec &rhs) |
bool | setbounds (const FMTperbounds &bound) |
bool | addbounds (const FMTagebounds &bound) |
bool | addbounds (const FMTyldbounds &bound) |
bool | addbounds (const FMTlockbounds &bound) |
bool | allowwithoutyield (const int &tperiod, const int &tage, const int &tlock) const |
const FMTyldbounds & | getyieldbound (const std::string &name) const |
bool | allowyields (const std::vector< double > &values) const |
bool | allow (const int &tperiod, const int &tage, const int &tlock, const std::vector< double > &values) const |
const std::vector< std::string > & | getylds () const |
const std::vector< FMTyldbounds > & | getyldbounds () const |
virtual | operator std::string () const |
bool | operator== (const FMTspec &rhs) const |
bool | operator< (const FMTspec &rhs) const |
size_t | hash () const |
bool | empty () const |
bool | emptyage () const |
bool | emptyylds () const |
bool | emptyperiod () const |
bool | emptylock () const |
int | getageupperbound () const |
int | getagelowerbound () const |
int | getperiodupperbound () const |
int | getperiodlowerbound () const |
int | getlockupperbound () const |
int | getlocklowerbound () const |
bool | issubsetof (const FMTspec &rhs) const |
Public Member Functions inherited from Core::FMTobject | |
FMTobject () | |
virtual | ~FMTobject () |
FMTobject (const std::shared_ptr< Exception::FMTexceptionhandler > exhandler) | |
FMTobject (const FMTobject &rhs) | |
FMTobject & | operator= (const FMTobject &rhs) |
virtual void | passinlogger (const std::shared_ptr< Logging::FMTlogger > &logger) |
void | passinexceptionhandler (const std::shared_ptr< Exception::FMTexceptionhandler > &exhandler) |
void | redirectlogtofile (const std::string &location) |
virtual void | setdefaultlogger () |
virtual void | setquietlogger () |
virtual void | settasklogger () |
virtual void | setdebuglogger () |
void | setdefaultexceptionhandler () |
void | setquietexceptionhandler () |
void | setdebugexceptionhandler () |
void | setfreeexceptionhandler () |
void | disablenestedexceptions () |
void | enablenestedexceptions () |
void | seterrorstowarnings (const std::vector< Exception::FMTexc > &errors) |
void | setmaxwarningsbeforesilenced (const size_t &maxwarningcount) |
Friends | |
class | boost::serialization::access |
Additional Inherited Members | |
Static Public Member Functions inherited from Core::FMTobject | |
static std::string | getruntimelocation () |
static unsigned long long | getavailablememory () |
Protected Member Functions inherited from Core::FMTobject | |
template<class Archive > | |
void | forcesave (Archive &ar, const unsigned int version) const |
template<class Archive > | |
void | forceload (Archive &ar, const unsigned int version) |
void | checksignals () const |
void | setCPLhandler () |
Static Protected Member Functions inherited from Core::FMTobject | |
static std::chrono::time_point< std::chrono::high_resolution_clock > | getclock () |
template<class chrono > | |
static double | getduration (const std::chrono::time_point< std::chrono::high_resolution_clock > &startclock) |
static std::string | getdurationinseconds (const std::chrono::time_point< std::chrono::high_resolution_clock > &startclock) |
Protected Attributes inherited from Core::FMTspec | |
FMTperbounds | per |
Period bounds so lower >= period <= upper. | |
FMTagebounds | age |
Age bounds so lower >= age <= upper. | |
FMTlockbounds | lock |
Lock bounds so lower >= lock <= upper. | |
std::vector< std::string > | yieldnames |
The names of each yield in the vector of yieldbounds. | |
std::vector< FMTyldbounds > | yieldbounds |
the yields bounds vector lower>=y1<=upper,lower>=y2<=upper | |
Static Protected Attributes inherited from Core::FMTobject | |
static std::shared_ptr< Exception::FMTexceptionhandler > | _exhandler |
A shared pointer to the exception handler. | |
static std::shared_ptr< Logging::FMTlogger > | _logger |
A shared pointer to the logger. | |
Core::FMTfork::FMTfork | ( | ) |
Core::FMTfork::FMTfork | ( | const FMTfork & | rhs | ) |
Core::FMTfork::~FMTfork | ( | ) |
void Core::FMTfork::add | ( | const FMTtransitionmask & | transition | ) |
void Core::FMTfork::clear | ( | ) |
std::vector< FMTtransitionmask > Core::FMTfork::getmasktrans | ( | ) | const |
FMTdevelopment Core::FMTfork::getmax | ( | const FMTdevelopment & | base, |
const FMTyields & | ylds, | ||
const std::vector< FMTtheme > & | themes, | ||
const bool & | reset_age | ||
) | const |
std::vector< FMTdevelopmentpath > Core::FMTfork::getpaths | ( | const Core::FMTdevelopment & | base, |
const Core::FMTyields & | ylds, | ||
const std::vector< FMTtheme > & | themes, | ||
const bool & | reset_age | ||
) | const |
|
overridevirtual |
Returns the string reprensentation of the FMTspec like _age >= lower and _Age <= upper and ....
Reimplemented from Core::FMTspec.
bool Core::FMTfork::operator== | ( | const FMTfork & | rhs | ) | const |
FMTfork Core::FMTfork::presolve | ( | const FMTmaskfilter & | filter, |
const std::vector< FMTtheme > & | presolvedthemes | ||
) | const |
FMTfork Core::FMTfork::single | ( | ) | const |
size_t Core::FMTfork::size | ( | ) | const |
double Core::FMTfork::sumprop | ( | ) | const |
|
friend |