FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
Core::FMTmodelyieldhandler Class Referencefinal

#include <FMTmodelyieldhandler.hpp>

Inheritance diagram for Core::FMTmodelyieldhandler:
[legend]
Collaboration diagram for Core::FMTmodelyieldhandler:
[legend]

Public Member Functions

virtual double get (const std::string &yld, const FMTyieldrequest &request) const
 
virtual operator std::string () const
 
 ~FMTmodelyieldhandler ()=default
 
 FMTmodelyieldhandler ()
 
 FMTmodelyieldhandler (const FMTmodelyieldhandler &rhs)
 
FMTmodelyieldhandleroperator= (const FMTmodelyieldhandler &rhs)
 
 FMTmodelyieldhandler (const FMTmask &mask)
 
std::map< std::string, size_t > getmodelsnamebyindex () const
 
void push_backmodel (const std::unique_ptr< FMTyieldmodel > &model)
 
void setyield (const size_t &modelid, const size_t &yieldid, const std::string &yldname)
 
virtual std::unique_ptr< FMTyieldhandlerclone () const
 
virtual bool operator== (const FMTmodelyieldhandler &rhs) const
 
virtual bool empty () const
 
virtual size_t size () const
 
virtual FMTyldtype gettype () 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::unique_ptr< FMTyieldhandlerpresolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &newthemes) const
 
virtual std::unique_ptr< FMTyieldhandlerpostsolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &basethemes) const
 
FMTtimeyieldhandler totimehandler () const
 
- Public Member Functions inherited from Core::FMTyieldhandler
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
 
FMTyieldhandleroperator= (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< FMTyieldhandlerclone () const
 
virtual bool operator== (const FMTyieldhandler &rhs) const
 
virtual bool empty () const
 
virtual size_t size () const
 
virtual FMTyldtype gettype () const
 
virtual FMTdataoperator[] (const std::string &yldname)
 
virtual const FMTdataat (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< FMTyieldhandlerpresolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &newthemes) const
 
virtual std::unique_ptr< FMTyieldhandlerpostsolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &basethemes) const
 
virtual std::unique_ptr< FMTyieldhandlergetfromfactor (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)
 
FMTobjectoperator= (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::FMTyieldhandler
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 ()
 
- 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::FMTyieldhandler
FMTmask mask
 
std::vector< int > bases
 
std::unordered_set< std::string > lookat
 
- 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.
 

Constructor & Destructor Documentation

◆ ~FMTmodelyieldhandler()

Core::FMTmodelyieldhandler::~FMTmodelyieldhandler ( )
default

◆ FMTmodelyieldhandler() [1/3]

Core::FMTmodelyieldhandler::FMTmodelyieldhandler ( )

◆ FMTmodelyieldhandler() [2/3]

Core::FMTmodelyieldhandler::FMTmodelyieldhandler ( const FMTmodelyieldhandler rhs)

◆ FMTmodelyieldhandler() [3/3]

Core::FMTmodelyieldhandler::FMTmodelyieldhandler ( const FMTmask mask)

Member Function Documentation

◆ clearcache()

virtual void Core::FMTmodelyieldhandler::clearcache ( )
virtual

Reimplemented from Core::FMTyieldhandler.

◆ clone()

virtual std::unique_ptr< FMTyieldhandler > Core::FMTmodelyieldhandler::clone ( ) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ containsyield()

virtual bool Core::FMTmodelyieldhandler::containsyield ( const std::string &  yldname) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ empty()

virtual bool Core::FMTmodelyieldhandler::empty ( ) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ get()

virtual double Core::FMTmodelyieldhandler::get ( const std::string &  yld,
const FMTyieldrequest request 
) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ getmodelsnamebyindex()

std::map< std::string, size_t > Core::FMTmodelyieldhandler::getmodelsnamebyindex ( ) const

◆ gettype()

virtual FMTyldtype Core::FMTmodelyieldhandler::gettype ( ) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ getyieldnames()

virtual std::vector< std::string > Core::FMTmodelyieldhandler::getyieldnames ( ) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ isnullyield()

virtual bool Core::FMTmodelyieldhandler::isnullyield ( const std::string &  yldname) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ operator std::string()

virtual Core::FMTmodelyieldhandler::operator std::string ( ) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ operator=()

FMTmodelyieldhandler & Core::FMTmodelyieldhandler::operator= ( const FMTmodelyieldhandler rhs)

◆ operator==()

virtual bool Core::FMTmodelyieldhandler::operator== ( const FMTmodelyieldhandler rhs) const
virtual

◆ postsolve()

virtual std::unique_ptr< FMTyieldhandler > Core::FMTmodelyieldhandler::postsolve ( const FMTmaskfilter filter,
const std::vector< FMTtheme > &  basethemes 
) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ presolve()

virtual std::unique_ptr< FMTyieldhandler > Core::FMTmodelyieldhandler::presolve ( const FMTmaskfilter filter,
const std::vector< FMTtheme > &  newthemes 
) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ push_backmodel()

void Core::FMTmodelyieldhandler::push_backmodel ( const std::unique_ptr< FMTyieldmodel > &  model)

◆ setyield()

void Core::FMTmodelyieldhandler::setyield ( const size_t &  modelid,
const size_t &  yieldid,
const std::string &  yldname 
)

◆ size()

virtual size_t Core::FMTmodelyieldhandler::size ( ) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ totimehandler()

FMTtimeyieldhandler Core::FMTmodelyieldhandler::totimehandler ( ) const

If you can turn all your yieldmodel to time then you can return a timeyieldhandler.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

The documentation for this class was generated from the following file: