![]() |
FMT 1.2.0
Forest management tools for forest planning
|
Data of a yield holding the values, sources and operators used to compute complex yields. More...
#include <FMTData.h>
Public Member Functions | |
| FMTData () | |
| Default constructor for FMTData. | |
| ~FMTData ()=default | |
| Default destructor for FMTData. | |
| FMTData (const FMTData &rhs) | |
| Copy constructor for FMTData. | |
| FMTData (const std::vector< double > &lvalues, const FMTyieldparserop &lops, const std::vector< std::string > &lsource) | |
| Construct a FMTData from values, an operator and sources. | |
| FMTData (const std::vector< double > &lvalues, const FMTyieldparserop &lops, const std::vector< std::string > &lsource, const std::vector< bool > &varstack) | |
| Construct a FMTData from values, an operator, sources and a stacking. | |
| FMTData & | operator= (const FMTData &rhs) |
| Copy assignment operator for FMTData. | |
| FMTyieldparserop | getOp () const |
| Return the yield parser operator of the data. | |
| void | clearCache () |
| Clear the cached values of the data. | |
| bool | constant () const |
| Return true if the data is constant. | |
| bool | nullData () const |
| Return true if the data is null. | |
| bool | cacheValue (const FMTYieldRequest &request) const |
| Return true if the value for a yield request is cached. | |
| double | get (const FMTYieldRequest &request) const |
| Get the value of the data for a yield request. | |
| void | set (const double &value, const FMTYieldRequest &request, const bool &age_only) const |
| Cache the value of the data for a yield request. | |
| std::vector< const std::string * > | getSources () const |
| Return pointers to the sources of the data. | |
| std::vector< std::string > | getSourcesCopy () const |
| Return a copy of the sources of the data. | |
| std::vector< const double * > | getValues () const |
| Return pointers to the values of the data. | |
| FMTExpression | toExpression () const |
| Convert the data to an FMTExpression. | |
| bool | operator== (const FMTData &rhs) const |
| Equality comparison operator of FMTData. | |
| operator std::string () const | |
| Convert the data to its string representation. | |
| FMTData | operator* (const double &factor) const |
| Multiply the data values by a factor. | |
Public Attributes | |
| std::vector< double > | data |
Friends | |
| class | boost::serialization::access |
Data of a yield holding the values, sources and operators used to compute complex yields.
| Core::FMTData::FMTData | ( | ) |
Default constructor for FMTData.
|
default |
Default destructor for FMTData.
| Core::FMTData::FMTData | ( | const FMTData & | rhs | ) |
| Core::FMTData::FMTData | ( | const std::vector< double > & | lvalues, |
| const FMTyieldparserop & | lops, | ||
| const std::vector< std::string > & | lsource | ||
| ) |
Construct a FMTData from values, an operator and sources.
| [in] | lvalues | the values. |
| [in] | lops | the yield parser operator. |
| [in] | lsource | the sources. |
| Core::FMTData::FMTData | ( | const std::vector< double > & | lvalues, |
| const FMTyieldparserop & | lops, | ||
| const std::vector< std::string > & | lsource, | ||
| const std::vector< bool > & | varstack | ||
| ) |
Construct a FMTData from values, an operator, sources and a stacking.
| [in] | lvalues | the values. |
| [in] | lops | the yield parser operator. |
| [in] | lsource | the sources. |
| [in] | varstack | the stacking of the sources (string = true, number = false). |
| bool Core::FMTData::cacheValue | ( | const FMTYieldRequest & | request | ) | const |
Return true if the value for a yield request is cached.
| [in] | request | the yield request. |
| void Core::FMTData::clearCache | ( | ) |
Clear the cached values of the data.
| bool Core::FMTData::constant | ( | ) | const |
Return true if the data is constant.
| double Core::FMTData::get | ( | const FMTYieldRequest & | request | ) | const |
Get the value of the data for a yield request.
| [in] | request | the yield request. |
| FMTyieldparserop Core::FMTData::getOp | ( | ) | const |
Return the yield parser operator of the data.
| std::vector< const std::string * > Core::FMTData::getSources | ( | ) | const |
Return pointers to the sources of the data.
| std::vector< std::string > Core::FMTData::getSourcesCopy | ( | ) | const |
Return a copy of the sources of the data.
| std::vector< const double * > Core::FMTData::getValues | ( | ) | const |
Return pointers to the values of the data.
| bool Core::FMTData::nullData | ( | ) | const |
Return true if the data is null.
| Core::FMTData::operator std::string | ( | ) | const |
Convert the data to its string representation.
| FMTData Core::FMTData::operator* | ( | const double & | factor | ) | const |
Multiply the data values by a factor.
| [in] | factor | the factor to multiply by. |
| bool Core::FMTData::operator== | ( | const FMTData & | rhs | ) | const |
| void Core::FMTData::set | ( | const double & | value, |
| const FMTYieldRequest & | request, | ||
| const bool & | age_only | ||
| ) | const |
Cache the value of the data for a yield request.
| [in] | value | the value to cache. |
| [in] | request | the yield request. |
| [in] | age_only | if true caches on age only. |
| FMTExpression Core::FMTData::toExpression | ( | ) | const |
Convert the data to an FMTExpression.
|
friend |
| std::vector<double> Core::FMTData::data |