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

#include <FMTlifespans.hpp>

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

Public Member Functions

void swap (FMTlifespans &rhs)
 
 FMTlifespans ()
 
 ~FMTlifespans ()=default
 
 FMTlifespans (const FMTlifespans &rhs)
 
FMTlifespansoperator= (const FMTlifespans &rhs)
 
bool operator== (const FMTlifespans &rhs) const
 
bool operator!= (const FMTlifespans &rhs) const
 
 operator std::string () const
 
void update () override
 
FMTlifespans presolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &originalthemes, std::vector< FMTtheme > &newthemes, bool compressdata=false) const
 
- Public Member Functions inherited from Core::FMTlist< int >
Core::FMTlist< int > & operator+= (const Core::FMTlist< int > &OtherList)
 append OtherList to this list actions both list had to be non shrinked, will throw exception if shrinked.
 
void swap (Core::FMTlist< int > &rhs)
 
FMTmask getunion (const std::vector< FMTtheme > &themes) const
 
 FMTlist ()
 
 FMTlist (const FMTlist< int > &rhs)
 
FMTlistoperator= (const FMTlist< int > &rhs)
 
bool operator== (const FMTlist< int > &rhs) const
 
 ~FMTlist ()=default
 
bool empty () const
 
bool canshrink () const
 
virtual void clearcache ()
 
size_t size () const
 
std::vector< const int * > findsets (const FMTmask &mask) const
 
std::vector< const int * > findsetswithfiltered (const FMTmask &newkey) const
 
FMTmask filtermask (const FMTmask &basemask) const
 
void shrink ()
 
void unshrink (const std::vector< FMTtheme > &themes)
 
void APIpush_back (const FMTmask &mask, const int &value)
 
void push_back (const FMTmask &mask, const int &value)
 
void push_back (const FMTlist< int > &rhs)
 
void push_back (const FMTmask &mask, const std::unique_ptr< Core::FMTyieldhandler > &value)
 
virtual void update ()
 
void push_front (const FMTmask &mask, const int &value)
 
void pop_back ()
 
void erase (const size_t &location)
 
void insert (const size_t &location, const FMTmask &mask, const int &value)
 
void insert (const size_t &location, const FMTmask &mask, const std::unique_ptr< Core::FMTyieldhandler > &value)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () 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

- Public Types inherited from Core::FMTlist< int >
typedef std::vector< std::pair< FMTmask, int > >::value_type value_type
 Value typedef of the FMTlist.
 
typedef std::vector< std::pair< FMTmask, int > >::iterator iterator
 Iterator typedef of the FMTlist.
 
typedef std::vector< std::pair< FMTmask, int > >::const_iterator const_iterator
 Const_Iterator typedef of the FMTlist.
 
- Static Public Member Functions inherited from Core::FMTobject
static std::string getruntimelocation ()
 
static unsigned long long getavailablememory ()
 
- Protected Member Functions inherited from Core::FMTlist< int >
void compressmasks (std::vector< FMTtheme > &newthemes)
 
void compressmasks (std::vector< FMTtheme > &newthemes)
 
void presolvelist (const FMTmaskfilter &filter, const std::vector< FMTtheme > &originalthemes, const std::vector< FMTtheme > &newthemes)
 
void copydata (const Core::FMTlist< int > &rhs)
 
void copydata (const FMTlist< std::unique_ptr< Core::FMTyieldhandler > > &rhs)
 
- 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)
 
- 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.
 

Detailed Description

FMTlifespans class keeps the information about the maximum age of an aggregate of FMTdevelopements. It's derived from FMTlist<int> each element of the FMTlist is a maximum age given for a FMTmask. The class is used by the FMTparser but also into the when generating the default _DEATH action and transition.

Constructor & Destructor Documentation

◆ FMTlifespans() [1/2]

Core::FMTlifespans::FMTlifespans ( )

Default constructor for FMTlifespans.

◆ ~FMTlifespans()

Core::FMTlifespans::~FMTlifespans ( )
default

Default destructor for FMTlifespans.

◆ FMTlifespans() [2/2]

Core::FMTlifespans::FMTlifespans ( const FMTlifespans rhs)

Default copy constructor for FMTlifespans.

Member Function Documentation

◆ operator std::string()

Core::FMTlifespans::operator std::string ( ) const

Returns a string representation of FMTlifespans section (.lif).

◆ operator!=()

bool Core::FMTlifespans::operator!= ( const FMTlifespans rhs) const

Comparison !operator of FMTlifespans.

◆ operator=()

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

Default copy assignment for FMTlifespans.

◆ operator==()

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

Comparison operator of FMTlifespans.

◆ presolve()

FMTlifespans Core::FMTlifespans::presolve ( const FMTmaskfilter filter,
const std::vector< FMTtheme > &  originalthemes,
std::vector< FMTtheme > &  newthemes,
bool  compressdata = false 
) const

Eliminate FMTlist elements and presolve all masks based on a basemask a preolved mask and presolved themes.

◆ swap()

void Core::FMTlifespans::swap ( FMTlifespans rhs)

◆ update()

void Core::FMTlifespans::update ( )
overridevirtual

Override the FMTlist update function. It needs to be called if any changes is done to the FMTlist.

Reimplemented from Core::FMTlist< int >.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialize function is for serialization, used to do multiprocessing across multiple cpus (pickle in Pyhton)


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