![]() |
FMT 1.2.0
Forest management tools for forest planning
|
Mathematical operator usable in yield and output expressions. More...
#include <FMTOperator.h>
Public Member Functions | |
| FMTOperator () | |
| Default constructor for FMTOperator. | |
| ~FMTOperator ()=default | |
| Default destructor for FMTOperator. | |
| FMTOperator (FMTokey lkey) | |
| Construct a FMTOperator from an operator key. | |
| FMTOperator (std::string strkey) | |
| Construct a FMTOperator from a string key. | |
| bool | operator== (const FMTOperator &rhs) const |
| Equality comparison operator of FMTOperator. | |
| bool | operator!= (const FMTOperator &rhs) const |
| Inequality comparison operator of FMTOperator. | |
| double | call (const double &rhs1, const double &rhs2) const |
| Apply the operator to two values. | |
| FMTOperator (const FMTOperator &rhs) | |
| Copy constructor for FMTOperator. | |
| FMTOperator & | operator= (const FMTOperator &rhs) |
| Copy assignment operator for FMTOperator. | |
| int | precedence () const |
| Return the precedence of the operator. | |
| std::string | associativity () const |
| Return the associativity of the operator. | |
| FMTOperator | reverse () const |
| Return the reversed operator. | |
| bool | valid () const |
| Return true if the operator is valid. | |
| size_t | hash () const |
| Return the hash of the operator. | |
| bool | isFactor () const |
| Return true if the operator is a multiplication or a division. | |
| bool | isDivide () const |
| Return true if the operator is a division. | |
| FMTokey | getKey () const |
| Return the key of the operator. | |
| operator std::string () const | |
| Convert the operator to its string representation. | |
Friends | |
| class | boost::serialization::access |
Mathematical operator usable in yield and output expressions.
| Core::FMTOperator::FMTOperator | ( | ) |
Default constructor for FMTOperator.
|
default |
Default destructor for FMTOperator.
| Core::FMTOperator::FMTOperator | ( | FMTokey | lkey | ) |
Construct a FMTOperator from an operator key.
| [in] | lkey | the operator key. |
| Core::FMTOperator::FMTOperator | ( | std::string | strkey | ) |
Construct a FMTOperator from a string key.
| [in] | strkey | the string representation of the operator. |
| Core::FMTOperator::FMTOperator | ( | const FMTOperator & | rhs | ) |
Copy constructor for FMTOperator.
| [in] | rhs | the FMTOperator to copy. |
| std::string Core::FMTOperator::associativity | ( | ) | const |
Return the associativity of the operator.
| double Core::FMTOperator::call | ( | const double & | rhs1, |
| const double & | rhs2 | ||
| ) | const |
Apply the operator to two values.
| [in] | rhs1 | the first operand. |
| [in] | rhs2 | the second operand. |
| FMTokey Core::FMTOperator::getKey | ( | ) | const |
Return the key of the operator.
| size_t Core::FMTOperator::hash | ( | ) | const |
Return the hash of the operator.
| bool Core::FMTOperator::isDivide | ( | ) | const |
Return true if the operator is a division.
| bool Core::FMTOperator::isFactor | ( | ) | const |
Return true if the operator is a multiplication or a division.
| Core::FMTOperator::operator std::string | ( | ) | const |
Convert the operator to its string representation.
| bool Core::FMTOperator::operator!= | ( | const FMTOperator & | rhs | ) | const |
Inequality comparison operator of FMTOperator.
| [in] | rhs | the FMTOperator to compare with. |
| FMTOperator & Core::FMTOperator::operator= | ( | const FMTOperator & | rhs | ) |
Copy assignment operator for FMTOperator.
| [in] | rhs | the FMTOperator to copy. |
| bool Core::FMTOperator::operator== | ( | const FMTOperator & | rhs | ) | const |
Equality comparison operator of FMTOperator.
| [in] | rhs | the FMTOperator to compare with. |
| int Core::FMTOperator::precedence | ( | ) | const |
Return the precedence of the operator.
| FMTOperator Core::FMTOperator::reverse | ( | ) | const |
Return the reversed operator.
| bool Core::FMTOperator::valid | ( | ) | const |
Return true if the operator is valid.
|
friend |