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

#include <FMTcomplexyieldhandler.hpp>

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

Public Member Functions

void settabou (const size_t &index)
 
void settabou (const FMTcomplexyieldhandler &rhs)
 
std::vector< size_t > gettabous () const override
 
virtual void setoverrideindex (const size_t &newindex)
 
virtual size_t getoverrideindex () const
 
virtual int getlastbase () const
 
virtual double get (const std::string &yld, const FMTyieldrequest &request) const
 
bool comparesources (const std::string &yield, const FMTcomplexyieldhandler &overridedyield) const
 
virtual operator std::string () const
 
 ~FMTcomplexyieldhandler ()=default
 
 FMTcomplexyieldhandler ()
 
 FMTcomplexyieldhandler (const FMTcomplexyieldhandler &rhs)=default
 
FMTcomplexyieldhandleroperator= (const FMTcomplexyieldhandler &rhs)=default
 
 FMTcomplexyieldhandler (const FMTmask &mask)
 
const std::map< std::string, FMTdata > & getdataelements () const
 
virtual std::vector< std::string > indexes (const std::vector< std::string > &names) const
 
virtual double getpeak (const FMTyieldrequest &request, const std::string &yld, const int &targetage) const
 
std::unique_ptr< FMTyieldhandlercomplexyldtoageyld (const FMTyieldrequest &request, const FMTspec &lspec) 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 FMTcomplexyieldhandler &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 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::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

◆ ~FMTcomplexyieldhandler()

Core::FMTcomplexyieldhandler::~FMTcomplexyieldhandler ( )
default

◆ FMTcomplexyieldhandler() [1/3]

Core::FMTcomplexyieldhandler::FMTcomplexyieldhandler ( )

◆ FMTcomplexyieldhandler() [2/3]

Core::FMTcomplexyieldhandler::FMTcomplexyieldhandler ( const FMTcomplexyieldhandler rhs)
default

◆ FMTcomplexyieldhandler() [3/3]

Core::FMTcomplexyieldhandler::FMTcomplexyieldhandler ( const FMTmask mask)

Member Function Documentation

◆ at()

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

Reimplemented from Core::FMTyieldhandler.

◆ clearcache()

virtual void Core::FMTcomplexyieldhandler::clearcache ( )
virtual

Reimplemented from Core::FMTyieldhandler.

◆ clone()

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

Reimplemented from Core::FMTyieldhandler.

◆ comparesources()

bool Core::FMTcomplexyieldhandler::comparesources ( const std::string &  yield,
const FMTcomplexyieldhandler overridedyield 
) const

◆ complexyldtoageyld()

std::unique_ptr< FMTyieldhandler > Core::FMTcomplexyieldhandler::complexyldtoageyld ( const FMTyieldrequest request,
const FMTspec lspec 
) const

◆ containsyield()

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

Reimplemented from Core::FMTyieldhandler.

◆ empty()

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

Reimplemented from Core::FMTyieldhandler.

◆ get()

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

Reimplemented from Core::FMTyieldhandler.

◆ getage()

virtual int Core::FMTcomplexyieldhandler::getage ( const FMTyieldrequest request,
const FMTspec spec 
) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ getdataelements()

const std::map< std::string, FMTdata > & Core::FMTcomplexyieldhandler::getdataelements ( ) const

◆ getlastbase()

virtual int Core::FMTcomplexyieldhandler::getlastbase ( ) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ getoverrideindex()

virtual size_t Core::FMTcomplexyieldhandler::getoverrideindex ( ) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ getpeak()

virtual double Core::FMTcomplexyieldhandler::getpeak ( const FMTyieldrequest request,
const std::string &  yld,
const int &  targetage 
) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ gettabous()

std::vector< size_t > Core::FMTcomplexyieldhandler::gettabous ( ) const
overridevirtual

Reimplemented from Core::FMTyieldhandler.

◆ gettype()

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

Reimplemented from Core::FMTyieldhandler.

◆ getyieldlinearvalue()

virtual double Core::FMTcomplexyieldhandler::getyieldlinearvalue ( const std::string &  yldname,
const FMTyieldrequest request,
bool  allowoutofrange = true 
) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ getyieldnames()

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

Reimplemented from Core::FMTyieldhandler.

◆ indexes()

virtual std::vector< std::string > Core::FMTcomplexyieldhandler::indexes ( const std::vector< std::string > &  names) const
virtual

Reimplemented from Core::FMTyieldhandler.

◆ operator std::string()

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

Reimplemented from Core::FMTyieldhandler.

◆ operator=()

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

◆ operator==()

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

◆ operator[]()

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

Reimplemented from Core::FMTyieldhandler.

◆ push_data() [1/2]

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

Reimplemented from Core::FMTyieldhandler.

◆ push_data() [2/2]

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

Reimplemented from Core::FMTyieldhandler.

◆ setoverrideindex()

virtual void Core::FMTcomplexyieldhandler::setoverrideindex ( const size_t &  newindex)
virtual

Reimplemented from Core::FMTyieldhandler.

◆ settabou() [1/2]

void Core::FMTcomplexyieldhandler::settabou ( const FMTcomplexyieldhandler rhs)

◆ settabou() [2/2]

void Core::FMTcomplexyieldhandler::settabou ( const size_t &  index)

◆ size()

virtual size_t Core::FMTcomplexyieldhandler::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: