8#ifndef FMTDATA_H_INCLUDED
9#define FMTDATA_H_INCLUDED
16#include <boost/serialization/serialization.hpp>
17#include <boost/serialization/nvp.hpp>
18#include <boost/serialization/map.hpp>
19#include <boost/serialization/vector.hpp>
20#include <boost/serialization/binary_object.hpp>
21#include <boost/serialization/export.hpp>
22#include <boost/unordered/unordered_map_fwd.hpp>
33 friend class boost::serialization::access;
34 template<
class Archive>
35 void serialize(Archive& ar,
const unsigned int version)
37 ar & BOOST_SERIALIZATION_NVP(ops);
38 ar & BOOST_SERIALIZATION_NVP(source);
39 ar & BOOST_SERIALIZATION_NVP(stacking);
40 ar & BOOST_SERIALIZATION_NVP(data);
43 std::vector<std::string>source;
44 std::vector<bool>stacking;
46 mutable boost::unordered_map<FMTdevelopment,double>* _cache;
47 mutable bool _agebase;
55 FMTdata(
const std::vector<double>& lvalues,
57 const std::vector<std::string>& lsource);
58 FMTdata(
const std::vector<double>& lvalues,
60 const std::vector<std::string>& lsource,
61 const std::vector<bool>& varstack);
71 std::vector<double>
tovalues(
const std::map<std::string, double>& sources)
const;
73 bool operator == (
const FMTdata& rhs)
const;
74 operator std::string()
const;
75 FMTdata operator * (
const double& factor)
const;
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTdata.hpp:32
FMTyieldparserop getop() const
std::vector< double > data
Definition: FMTdata.hpp:51
FMTdata(const FMTdata &rhs)
std::vector< std::string > getsource() const
FMTexpression toexpression() const
FMTdata(const std::vector< double > &lvalues, const FMTyieldparserop &lops, const std::vector< std::string > &lsource, const std::vector< bool > &varstack)
void set(const double &value, const FMTyieldrequest &request, const bool &age_only) const
std::vector< double > tovalues(const std::map< std::string, double > &sources) const
double get(const FMTyieldrequest &request) const
FMTdata(const std::vector< double > &lvalues, const FMTyieldparserop &lops, const std::vector< std::string > &lsource)
bool cachevalue(const FMTyieldrequest &request) const
Definition: FMTdevelopment.hpp:44
Definition: FMTexpression.hpp:19
Definition: FMTyieldrequest.hpp:36
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTaction.hpp:31
FMTyieldparserop
Definition: FMTutility.hpp:53