8#ifndef FMTedgeproperties_Hm_included
9#define FMTedgeproperties_Hm_included
11#include <boost/serialization/serialization.hpp>
12#include <boost/serialization/nvp.hpp>
33 template<
class Archive>
34 void serialize(Archive& ar,
const unsigned int version)
36 ar& boost::serialization::make_nvp(
"FMTbaseedgeproperties", boost::serialization::base_object<FMTBaseEdgeProperties>(*
this));
37 ar& BOOST_SERIALIZATION_NVP(variableID);
38 ar& BOOST_SERIALIZATION_NVP(proportion);
88 return static_cast<double>(proportion);
98 const int& lvariableID,
99 const double& lproportion);
Base edge properties of a FMTGraph, holding the action of the edge.
Definition: FMTBaseEdgeProperties.h:31
Edge properties of a FMTGraph, extending the base edge properties with a variable id and a proportion...
Definition: FMTEdgeProperties.h:24
const int * getVariablePtr() const
Return a pointer to the variable id of the edge.
Definition: FMTEdgeProperties.h:125
int getVariableID() const override
Return the variable id of the edge.
Definition: FMTEdgeProperties.h:71
bool operator!=(const FMTEdgeProperties &rhs) const
Comparison operator for FMTEdgeProperties.
FMTEdgeProperties(const FMTEdgeProperties &rhs)=default
Copy constructor for FMTEdgeProperties.
void setVariableID(const int &newvariableID)
Set the variable id of the edge.
double getProportion() const override
Return the proportion of the edge.
Definition: FMTEdgeProperties.h:86
std::string variableName() const
Return the name of the variable of the edge.
FMTEdgeProperties & operator=(const FMTEdgeProperties &rhs)=default
Copy assignment operator for FMTEdgeProperties.
FMTEdgeProperties()=default
Default constructor for FMTEdgeProperties.
bool operator==(const FMTEdgeProperties &rhs) const
Comparison operator for FMTEdgeProperties.
friend class boost::serialization::access
Definition: FMTEdgeProperties.h:25
~FMTEdgeProperties()=default
Default destructor for FMTEdgeProperties.
FMTEdgeProperties(const int &laction, const int &lvariableID, const double &lproportion)
Construct a FMTEdgeProperties from an action, a variable id and a proportion.
Definition: FMTAreaParser.h:35