8#ifndef FMTvertexproperties_Hm_included
9#define FMTvertexproperties_Hm_included
12#include <boost/serialization/serialization.hpp>
13#include <boost/functional/hash.hpp>
15#include <boost/serialization/export.hpp>
20 class FMTFuturDevelopment;
21 class FMTActualDevelopment;
34 friend class boost::serialization::access;
42 template<
class Archive>
43 void serialize(Archive& ar,
const unsigned int version)
45 ar & boost::serialization::make_nvp(
"FMTbasevertexproperties", boost::serialization::base_object<FMTBaseVertexProperties>(*
this));
46 ar & BOOST_SERIALIZATION_NVP(constraintID);
80 const int& lconstraintID);
88 const int& lconstraintID);
96 const int& lconstraintID);
126 struct hash<
Graph::FMTVertexProperties>
130 return vertex_properties.
hash();
#define FMTEXPORT
Definition: FMTutility.h:125
Child class of FMTDevelopment representing an actual forest stand, holding the area of the stand.
Definition: FMTActualDevelopment.h:24
Base class of FMTActualDevelopment and FMTFuturDevelopment representing a forest stand.
Definition: FMTDevelopment.h:44
Child class of FMTDevelopment representing a future stand generated by growth or transition,...
Definition: FMTFuturDevelopment.h:23
Definition: FMTBaseVertexProperties.h:33
size_t hash() const
Hash the development of the vertex.
Vertex properties of a FMTGraph, extending the base vertex properties with a constraint id.
Definition: FMTVertexProperties.h:33
FMTVertexProperties(const FMTVertexProperties &rhs)
Copy constructor for FMTVertexProperties.
int getConstraintId() const override
Return the constraint id of the vertex.
Definition: FMTVertexProperties.h:108
FMTVertexProperties(const Core::FMTFuturDevelopment &ldevelopment, const int &lconstraintID)
Construct a FMTVertexProperties from a futur development and a constraint id.
void setConstraintId(const int &ID)
Set the constraint id of the vertex.
~FMTVertexProperties()=default
Default destructor for FMTVertexProperties.
FMTVertexProperties()=default
Default constructor for FMTVertexProperties.
FMTVertexProperties(const Core::FMTActualDevelopment &ldevelopment, const int &lconstraintID)
Construct a FMTVertexProperties from an actual development and a constraint id.
FMTVertexProperties(const Core::FMTDevelopment &ldevelopment, const int &lconstraintID)
Construct a FMTVertexProperties from a development and a constraint id.
std::string constraintName() const
Return the name of the constraint of the vertex.
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTAction.h:34
Definition: FMTAreaParser.h:35
Definition: FMTAction.h:463
std::size_t operator()(const Graph::FMTVertexProperties &vertex_properties) const
Definition: FMTVertexProperties.h:128