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

#include <FMTtimeyieldhandler.hpp>

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

Public Member Functions

virtual double get (const std::string &yld, const FMTyieldrequest &request) const
 
virtual operator std::string () const
 
 ~FMTtimeyieldhandler ()=default
 
 FMTtimeyieldhandler ()=default
 
 FMTtimeyieldhandler (const FMTtimeyieldhandler &rhs)=default
 
FMTtimeyieldhandleroperator= (const FMTtimeyieldhandler &rhs)=default
 
 FMTtimeyieldhandler (const FMTmask &mask)
 
virtual void setyieldvalues (const std::string &yldname, const int &startingperiod, const std::vector< double > &values)
 
virtual double getlastvalue (const std::string yld) 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::unique_ptr< FMTyieldhandlerclone () const
 
virtual bool operator== (const FMTtimeyieldhandler &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 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< FMTyieldhandlergetfromfactor (const double &factor, std::vector< std::string >yieldnames=std::vector< std::string >()) 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

◆ ~FMTtimeyieldhandler()

Core::FMTtimeyieldhandler::~FMTtimeyieldhandler ( )
default

◆ FMTtimeyieldhandler() [1/3]

Core::FMTtimeyieldhandler::FMTtimeyieldhandler ( )
default

◆ FMTtimeyieldhandler() [2/3]

Core::FMTtimeyieldhandler::FMTtimeyieldhandler ( const FMTtimeyieldhandler rhs)
default

◆ FMTtimeyieldhandler() [3/3]

Core::FMTtimeyieldhandler::FMTtimeyieldhandler ( const FMTmask mask)

Constructor for FMTtimeyieldhandler with a FMTmask

Member Function Documentation

◆ at()

virtual const FMTdata & Core::FMTtimeyieldhandler::at ( const std::string &  yldname) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ clearcache()

virtual void Core::FMTtimeyieldhandler::clearcache ( )
virtual

Reimplemented from Core::FMTyieldhandler.

◆ clone()

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

Reimplemented from Core::FMTyieldhandler.

◆ containsyield()

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

Reimplemented from Core::FMTyieldhandler.

◆ empty()

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

Reimplemented from Core::FMTyieldhandler.

◆ get()

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

Reimplemented from Core::FMTyieldhandler.

◆ getallyieldsdata()

virtual std::map< std::string, std::vector< double > > Core::FMTtimeyieldhandler::getallyieldsdata ( const int &  maxbase) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ getfromfactor()

virtual std::unique_ptr< FMTyieldhandler > Core::FMTtimeyieldhandler::getfromfactor ( const double &  factor,
std::vector< std::string >  yieldnames = std::vector< std::string >() 
) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ getlastvalue()

virtual double Core::FMTtimeyieldhandler::getlastvalue ( const std::string  yld) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ gettype()

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

Reimplemented from Core::FMTyieldhandler.

◆ getyieldnames()

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

Reimplemented from Core::FMTyieldhandler.

◆ operator std::string()

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

Reimplemented from Core::FMTyieldhandler.

◆ operator=()

FMTtimeyieldhandler & Core::FMTtimeyieldhandler::operator= ( const FMTtimeyieldhandler rhs)
default

◆ operator==()

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

◆ operator[]()

virtual FMTdata & Core::FMTtimeyieldhandler::operator[] ( const std::string &  yldname)
virtual

Reimplemented from Core::FMTyieldhandler.

◆ push_data() [1/2]

virtual bool Core::FMTtimeyieldhandler::push_data ( const std::string &  yld,
const double &  value 
)
virtual

Reimplemented from Core::FMTyieldhandler.

◆ push_data() [2/2]

virtual bool Core::FMTtimeyieldhandler::push_data ( const std::string &  yld,
const FMTdata data 
)
virtual

Reimplemented from Core::FMTyieldhandler.

◆ setyieldvalues()

virtual void Core::FMTtimeyieldhandler::setyieldvalues ( const std::string &  yldname,
const int &  startingperiod,
const std::vector< double > &  values 
)
virtual

Set the values for given yield name.

◆ size()

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

Reimplemented from Core::FMTyieldhandler.

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: