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

#include <FMTyieldhandler.hpp>

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

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
 
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)
 

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.
 

Constructor & Destructor Documentation

◆ ~FMTyieldhandler()

virtual Core::FMTyieldhandler::~FMTyieldhandler ( )
virtualdefault

◆ FMTyieldhandler() [1/3]

Core::FMTyieldhandler::FMTyieldhandler ( )
default

◆ FMTyieldhandler() [2/3]

Core::FMTyieldhandler::FMTyieldhandler ( const FMTyieldhandler rhs)
default

◆ FMTyieldhandler() [3/3]

Core::FMTyieldhandler::FMTyieldhandler ( const FMTmask lmask)

Member Function Documentation

◆ at()

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

◆ basepush_data() [1/2]

bool Core::FMTyieldhandler::basepush_data ( std::map< std::string, FMTdata > &  elements,
const std::string &  yld,
const double &  value 
)
protected

◆ basepush_data() [2/2]

bool Core::FMTyieldhandler::basepush_data ( std::map< std::string, FMTdata > &  elements,
const std::string &  yld,
const FMTdata data 
)
protected

◆ clearcache()

virtual void Core::FMTyieldhandler::clearcache ( )
virtual

◆ clone()

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

◆ compare()

virtual std::vector< std::string > Core::FMTyieldhandler::compare ( const std::vector< std::string > &  keys) const
virtual

◆ containsyield()

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

◆ empty()

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

◆ get()

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

◆ getage()

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

◆ getallyieldsdata()

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

◆ getbases()

const std::vector< int > & Core::FMTyieldhandler::getbases ( ) const

◆ getchangesfrom()

double Core::FMTyieldhandler::getchangesfrom ( const int &  targetage,
const int &  peakstep 
) const
protected

◆ getendpoint()

virtual int Core::FMTyieldhandler::getendpoint ( const std::string &  yld,
const int &  lowerstep,
const double &  bound,
const double &  value 
) const
virtual

Reimplemented in Core::FMTageyieldhandler.

◆ getfromfactor()

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

◆ getlastbase()

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

Reimplemented in Core::FMTcomplexyieldhandler.

◆ getlastvalue()

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

◆ getlinearvalue()

double Core::FMTyieldhandler::getlinearvalue ( const std::vector< double > &  dls,
const int &  agetarget,
bool  allowoutofrange 
) const

◆ getmask()

FMTmask Core::FMTyieldhandler::getmask ( ) const

◆ getmaxbase()

int Core::FMTyieldhandler::getmaxbase ( const FMTyieldrequest request) const
protected

◆ getoverrideindex()

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

Reimplemented in Core::FMTcomplexyieldhandler.

◆ getpeak()

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

◆ gettabous()

virtual std::vector< size_t > Core::FMTyieldhandler::gettabous ( ) const
virtual

Reimplemented in Core::FMTcomplexyieldhandler.

◆ gettype()

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

◆ getyieldlinearvalue()

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

◆ getyieldnames()

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

◆ indexes()

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

Reimplemented in Core::FMTcomplexyieldhandler.

◆ inlookat()

bool Core::FMTyieldhandler::inlookat ( const std::string &  yld) const

◆ isnullyield()

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

Reimplemented in Core::FMTmodelyieldhandler.

◆ operator std::string()

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

◆ operator=()

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

◆ operator==()

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

◆ operator[]()

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

◆ postsolve()

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

Reimplemented in Core::FMTmodelyieldhandler.

◆ presolve()

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

Reimplemented in Core::FMTmodelyieldhandler.

◆ push_base()

bool Core::FMTyieldhandler::push_base ( const int &  base)

◆ push_data() [1/2]

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

◆ push_data() [2/2]

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

◆ setbase()

void Core::FMTyieldhandler::setbase ( const std::vector< int > &  allvalues)

◆ setoverrideindex()

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

Reimplemented in Core::FMTcomplexyieldhandler.

◆ size()

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Member Data Documentation

◆ bases

std::vector<int> Core::FMTyieldhandler::bases
protected

◆ lookat

std::unordered_set<std::string> Core::FMTyieldhandler::lookat
mutableprotected

◆ mask

FMTmask Core::FMTyieldhandler::mask
protected

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