FMT 0.9.8
Forest management tools for forest planning
|
#include <FMTyieldhandler.hpp>
Public Member Functions | |
virtual size_t | getoverrideindex () const |
virtual std::vector< size_t > | gettabous () const |
virtual void | setoverrideindex (const size_t &newindex) |
virtual | ~FMTyieldhandler ()=default |
FMTyieldhandler ()=default | |
FMTyieldhandler (const FMTyieldhandler &rhs)=default | |
FMTyieldhandler & | operator= (const FMTyieldhandler &rhs)=default |
FMTyieldhandler (const FMTmask &lmask) | |
double | getlinearvalue (const std::vector< double > &dls, const int &agetarget, bool allowoutofrange) const |
virtual int | getlastbase () const |
const std::vector< int > & | getbases () const |
FMTmask | getmask () const |
bool | push_base (const int &base) |
void | setbase (const std::vector< int > &allvalues) |
bool | inlookat (const std::string &yld) const |
virtual double | getlastvalue (const std::string yld) const |
virtual double | get (const std::string &yld, const FMTyieldrequest &request) const |
virtual bool | push_data (const std::string &yld, const double &value) |
virtual bool | push_data (const std::string &yld, const FMTdata &data) |
virtual std::vector< std::string > | indexes (const std::vector< std::string > &names) const |
virtual | operator std::string () const |
virtual std::vector< std::string > | compare (const std::vector< std::string > &keys) const |
virtual std::unique_ptr< FMTyieldhandler > | clone () const |
virtual bool | operator== (const FMTyieldhandler &rhs) const |
virtual bool | empty () const |
virtual size_t | size () const |
virtual FMTyldtype | gettype () const |
virtual FMTdata & | operator[] (const std::string &yldname) |
virtual const FMTdata & | at (const std::string &yldname) const |
virtual bool | containsyield (const std::string &yldname) const |
virtual bool | isnullyield (const std::string &yldname) const |
virtual std::vector< std::string > | getyieldnames () const |
virtual void | clearcache () |
virtual std::map< std::string, std::vector< double > > | getallyieldsdata (const int &maxbase) const |
virtual std::unique_ptr< FMTyieldhandler > | presolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &newthemes) const |
virtual std::unique_ptr< FMTyieldhandler > | postsolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &basethemes) const |
virtual std::unique_ptr< FMTyieldhandler > | getfromfactor (const double &factor, std::vector< std::string >yieldnames=std::vector< std::string >()) const |
virtual int | getendpoint (const std::string &yld, const int &lowerstep, const double &bound, const double &value) const |
virtual double | getpeak (const FMTyieldrequest &request, const std::string &yld, const int &targetage) const |
virtual int | getage (const FMTyieldrequest &request, const FMTspec &spec) const |
virtual double | getyieldlinearvalue (const std::string &yldname, const FMTyieldrequest &request, bool allowoutofrange=true) 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) |
Protected Member Functions | |
bool | basepush_data (std::map< std::string, FMTdata > &elements, const std::string &yld, const double &value) |
bool | basepush_data (std::map< std::string, FMTdata > &elements, const std::string &yld, const FMTdata &data) |
double | getchangesfrom (const int &targetage, const int &peakstep) const |
int | getmaxbase (const FMTyieldrequest &request) const |
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 () |
Protected Attributes | |
FMTmask | mask |
std::vector< int > | bases |
std::unordered_set< std::string > | lookat |
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 () |
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) |
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. | |
|
virtualdefault |
|
default |
|
default |
Core::FMTyieldhandler::FMTyieldhandler | ( | const FMTmask & | lmask | ) |
|
virtual |
Reimplemented in Core::FMTageyieldhandler, Core::FMTcomplexyieldhandler, and Core::FMTtimeyieldhandler.
|
protected |
|
protected |
|
virtual |
Reimplemented in Core::FMTageyieldhandler, Core::FMTcomplexyieldhandler, Core::FMTmodelyieldhandler, and Core::FMTtimeyieldhandler.
|
virtual |
Reimplemented in Core::FMTageyieldhandler, Core::FMTcomplexyieldhandler, Core::FMTmodelyieldhandler, and Core::FMTtimeyieldhandler.
|
virtual |
|
virtual |
Reimplemented in Core::FMTageyieldhandler, Core::FMTcomplexyieldhandler, Core::FMTmodelyieldhandler, and Core::FMTtimeyieldhandler.
|
virtual |
Reimplemented in Core::FMTageyieldhandler, Core::FMTcomplexyieldhandler, Core::FMTmodelyieldhandler, and Core::FMTtimeyieldhandler.
|
virtual |
Reimplemented in Core::FMTageyieldhandler, Core::FMTcomplexyieldhandler, Core::FMTmodelyieldhandler, and Core::FMTtimeyieldhandler.
|
virtual |
Reimplemented in Core::FMTageyieldhandler, and Core::FMTcomplexyieldhandler.
|
virtual |
Reimplemented in Core::FMTageyieldhandler, and Core::FMTtimeyieldhandler.
const std::vector< int > & Core::FMTyieldhandler::getbases | ( | ) | const |
|
protected |
|
virtual |
Reimplemented in Core::FMTageyieldhandler.
|
virtual |
Reimplemented in Core::FMTageyieldhandler, and Core::FMTtimeyieldhandler.
|
virtual |
Reimplemented in Core::FMTcomplexyieldhandler.
|
virtual |
Reimplemented in Core::FMTageyieldhandler, and Core::FMTtimeyieldhandler.
double Core::FMTyieldhandler::getlinearvalue | ( | const std::vector< double > & | dls, |
const int & | agetarget, | ||
bool | allowoutofrange | ||
) | const |
FMTmask Core::FMTyieldhandler::getmask | ( | ) | const |
|
protected |
|
virtual |
Reimplemented in Core::FMTcomplexyieldhandler.
|
virtual |
Reimplemented in Core::FMTageyieldhandler, and Core::FMTcomplexyieldhandler.
|
virtual |
Reimplemented in Core::FMTcomplexyieldhandler.
|
virtual |
Reimplemented in Core::FMTageyieldhandler, Core::FMTcomplexyieldhandler, Core::FMTmodelyieldhandler, and Core::FMTtimeyieldhandler.
|
virtual |
Reimplemented in Core::FMTageyieldhandler, and Core::FMTcomplexyieldhandler.
|
virtual |
Reimplemented in Core::FMTageyieldhandler, Core::FMTcomplexyieldhandler, Core::FMTmodelyieldhandler, and Core::FMTtimeyieldhandler.
|
virtual |
Reimplemented in Core::FMTcomplexyieldhandler.
bool Core::FMTyieldhandler::inlookat | ( | const std::string & | yld | ) | const |
|
virtual |
Reimplemented in Core::FMTmodelyieldhandler.
|
virtual |
Reimplemented in Core::FMTageyieldhandler, Core::FMTcomplexyieldhandler, Core::FMTmodelyieldhandler, and Core::FMTtimeyieldhandler.
|
default |
|
virtual |
|
virtual |
Reimplemented in Core::FMTageyieldhandler, Core::FMTcomplexyieldhandler, and Core::FMTtimeyieldhandler.
|
virtual |
Reimplemented in Core::FMTmodelyieldhandler.
|
virtual |
Reimplemented in Core::FMTmodelyieldhandler.
bool Core::FMTyieldhandler::push_base | ( | const int & | base | ) |
|
virtual |
Reimplemented in Core::FMTageyieldhandler, Core::FMTcomplexyieldhandler, and Core::FMTtimeyieldhandler.
|
virtual |
Reimplemented in Core::FMTageyieldhandler, Core::FMTcomplexyieldhandler, and Core::FMTtimeyieldhandler.
void Core::FMTyieldhandler::setbase | ( | const std::vector< int > & | allvalues | ) |
|
virtual |
Reimplemented in Core::FMTcomplexyieldhandler.
|
virtual |
Reimplemented in Core::FMTageyieldhandler, Core::FMTcomplexyieldhandler, Core::FMTmodelyieldhandler, and Core::FMTtimeyieldhandler.
|
friend |
|
protected |
|
mutableprotected |
|
protected |