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

#include <FMTfork.hpp>

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

Public Member Functions

 FMTfork ()
 
 FMTfork (const FMTfork &rhs)
 
 ~FMTfork ()
 
FMTforkoperator= (const FMTfork &rhs)
 
void add (const FMTtransitionmask &transition)
 
void clear ()
 
std::vector< FMTdevelopmentpathgetpaths (const Core::FMTdevelopment &base, const Core::FMTyields &ylds, const std::vector< FMTtheme > &themes, const bool &reset_age) const
 
FMTdevelopment getmax (const FMTdevelopment &base, const FMTyields &ylds, const std::vector< FMTtheme > &themes, const bool &reset_age) const
 
std::vector< FMTtransitionmaskgetmasktrans () const
 
bool operator== (const FMTfork &rhs) const
 
FMTfork single () const
 
double sumprop () const
 
size_t size () const
 
FMTfork presolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &presolvedthemes) const
 
 operator std::string () const override
 
- Public Member Functions inherited from Core::FMTspec
 FMTspec ()
 
virtual ~FMTspec ()=default
 
 FMTspec (const FMTspec &rhs)
 
FMTspecoperator= (const FMTspec &rhs)
 
bool add (const FMTspec &rhs)
 
bool setbounds (const FMTperbounds &bound)
 
bool addbounds (const FMTagebounds &bound)
 
bool addbounds (const FMTyldbounds &bound)
 
bool addbounds (const FMTlockbounds &bound)
 
bool allowwithoutyield (const int &tperiod, const int &tage, const int &tlock) const
 
const FMTyldboundsgetyieldbound (const std::string &name) const
 
bool allowyields (const std::vector< double > &values) const
 
bool allow (const int &tperiod, const int &tage, const int &tlock, const std::vector< double > &values) const
 
const std::vector< std::string > & getylds () const
 
const std::vector< FMTyldbounds > & getyldbounds () const
 
virtual operator std::string () const
 
bool operator== (const FMTspec &rhs) const
 
bool operator< (const FMTspec &rhs) const
 
size_t hash () const
 
bool empty () const
 
bool emptyage () const
 
bool emptyylds () const
 
bool emptyperiod () const
 
bool emptylock () const
 
int getageupperbound () const
 
int getagelowerbound () const
 
int getperiodupperbound () const
 
int getperiodlowerbound () const
 
int getlockupperbound () const
 
int getlocklowerbound () const
 
bool issubsetof (const FMTspec &rhs) 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::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::FMTspec
FMTperbounds per
 Period bounds so lower >= period <= upper.
 
FMTagebounds age
 Age bounds so lower >= age <= upper.
 
FMTlockbounds lock
 Lock bounds so lower >= lock <= upper.
 
std::vector< std::string > yieldnames
 The names of each yield in the vector of yieldbounds.
 
std::vector< FMTyldboundsyieldbounds
 the yields bounds vector lower>=y1<=upper,lower>=y2<=upper
 
- 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

◆ FMTfork() [1/2]

Core::FMTfork::FMTfork ( )

◆ FMTfork() [2/2]

Core::FMTfork::FMTfork ( const FMTfork rhs)

◆ ~FMTfork()

Core::FMTfork::~FMTfork ( )

Member Function Documentation

◆ add()

void Core::FMTfork::add ( const FMTtransitionmask transition)

◆ clear()

void Core::FMTfork::clear ( )

◆ getmasktrans()

std::vector< FMTtransitionmask > Core::FMTfork::getmasktrans ( ) const

◆ getmax()

FMTdevelopment Core::FMTfork::getmax ( const FMTdevelopment base,
const FMTyields ylds,
const std::vector< FMTtheme > &  themes,
const bool &  reset_age 
) const

◆ getpaths()

std::vector< FMTdevelopmentpath > Core::FMTfork::getpaths ( const Core::FMTdevelopment base,
const Core::FMTyields ylds,
const std::vector< FMTtheme > &  themes,
const bool &  reset_age 
) const

◆ operator std::string()

Core::FMTfork::operator std::string ( ) const
overridevirtual

Returns the string reprensentation of the FMTspec like _age >= lower and _Age <= upper and ....

Reimplemented from Core::FMTspec.

◆ operator=()

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

◆ operator==()

bool Core::FMTfork::operator== ( const FMTfork rhs) const

◆ presolve()

FMTfork Core::FMTfork::presolve ( const FMTmaskfilter filter,
const std::vector< FMTtheme > &  presolvedthemes 
) const

◆ single()

FMTfork Core::FMTfork::single ( ) const

◆ size()

size_t Core::FMTfork::size ( ) const

◆ sumprop()

double Core::FMTfork::sumprop ( ) const

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: