8#ifndef FMTbaseedgeproperties_H_INCLUDED
9#define FMTbaseedgeproperties_H_INCLUDED
12#include <boost/serialization/serialization.hpp>
13#include <boost/serialization/nvp.hpp>
14#include <boost/serialization/export.hpp>
28 template<
class Archive>
29 void serialize(Archive& ar,
const unsigned int version)
31 ar & BOOST_SERIALIZATION_NVP(
action);
41 const int& lvariableID,
42 const double& lproportion);
54 return static_cast<int>(
action);
57 bool isaction(
const std::vector<Core::FMTaction>& actions,
Definition: FMTaction.hpp:42
Definition: FMTbaseedgeproperties.hpp:26
virtual ~FMTbaseedgeproperties()=default
bool operator==(const FMTbaseedgeproperties &rhs) const
int8_t action
Definition: FMTbaseedgeproperties.hpp:34
virtual double getproportion() const
Definition: FMTbaseedgeproperties.hpp:48
FMTbaseedgeproperties()=default
void setactionID(const int &newid)
virtual int getvariableID() const
Definition: FMTbaseedgeproperties.hpp:44
bool operator<(const FMTbaseedgeproperties &rhs) const
int getactionID() const
Definition: FMTbaseedgeproperties.hpp:52
FMTbaseedgeproperties(const FMTbaseedgeproperties &rhs)=default
bool operator!=(const FMTbaseedgeproperties &rhs) const
constexpr FMTbaseedgeproperties(const int &laction)
Definition: FMTbaseedgeproperties.hpp:43
bool isaction(const std::vector< Core::FMTaction > &actions, const Core::FMTaction &rhsaction) const
friend class boost::serialization::access
Definition: FMTbaseedgeproperties.hpp:27
FMTbaseedgeproperties(const int &laction, const int &lvariableID, const double &lproportion)
FMTbaseedgeproperties & operator=(const FMTbaseedgeproperties &rhs)=default
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTaction.hpp:31
Namespace for using/building unidirectional graphs in FMT.
Definition: FMTareaparser.hpp:31