8#ifndef FMTedgeproperties_H_INCLUDED
9#define FMTedgeproperties_H_INCLUDED
11#include <boost/serialization/serialization.hpp>
12#include <boost/serialization/nvp.hpp>
22 template<
class Archive>
23 void serialize(Archive& ar,
const unsigned int version)
25 ar & boost::serialization::make_nvp(
"FMTbaseedgeproperties", boost::serialization::base_object<FMTbaseedgeproperties>(*
this));
26 ar & BOOST_SERIALIZATION_NVP(variableID);
27 ar & BOOST_SERIALIZATION_NVP(proportion);
43 return static_cast<double>(proportion);
46 const int& lvariableID,
47 const double& lproportion);
Definition: FMTbaseedgeproperties.hpp:26
Definition: FMTedgeproperties.hpp:20
bool operator!=(const FMTedgeproperties &rhs) const
const int * getvariableptr() const
Definition: FMTedgeproperties.hpp:51
int getvariableID() const override
Definition: FMTedgeproperties.hpp:36
std::string variablename() const
void setvariableID(const int &newvariableID)
~FMTedgeproperties()=default
FMTedgeproperties(const FMTedgeproperties &rhs)=default
FMTedgeproperties & operator=(const FMTedgeproperties &rhs)=default
FMTedgeproperties()=default
friend class boost::serialization::access
Definition: FMTedgeproperties.hpp:21
FMTedgeproperties(const int &laction, const int &lvariableID, const double &lproportion)
bool operator==(const FMTedgeproperties &rhs) const
double getproportion() const override
Definition: FMTedgeproperties.hpp:41
Namespace for using/building unidirectional graphs in FMT.
Definition: FMTareaparser.hpp:31