![]() |
FMT 1.2.0
Forest management tools for forest planning
|
Edge properties of a FMTGraph, extending the base edge properties with a variable id and a proportion. More...
#include <FMTEdgeProperties.h>
Public Member Functions | |
| ~FMTEdgeProperties ()=default | |
| Default destructor for FMTEdgeProperties. | |
| FMTEdgeProperties ()=default | |
| Default constructor for FMTEdgeProperties. | |
| FMTEdgeProperties (const FMTEdgeProperties &rhs)=default | |
| Copy constructor for FMTEdgeProperties. | |
| FMTEdgeProperties & | operator= (const FMTEdgeProperties &rhs)=default |
| Copy assignment operator for FMTEdgeProperties. | |
| int | getVariableID () const override |
| Return the variable id of the edge. | |
| void | setVariableID (const int &newvariableID) |
| Set the variable id of the edge. | |
| double | getProportion () const override |
| Return the proportion of the edge. | |
| FMTEdgeProperties (const int &laction, const int &lvariableID, const double &lproportion) | |
| Construct a FMTEdgeProperties from an action, a variable id and a proportion. | |
| bool | operator== (const FMTEdgeProperties &rhs) const |
| Comparison operator for FMTEdgeProperties. | |
| bool | operator!= (const FMTEdgeProperties &rhs) const |
| Comparison operator for FMTEdgeProperties. | |
| std::string | variableName () const |
| Return the name of the variable of the edge. | |
| const int * | getVariablePtr () const |
| Return a pointer to the variable id of the edge. | |
Public Member Functions inherited from Graph::FMTBaseEdgeProperties | |
| virtual | ~FMTBaseEdgeProperties ()=default |
| Default virtual destructor for FMTBaseEdgeProperties. | |
| FMTBaseEdgeProperties ()=default | |
| Default constructor for FMTBaseEdgeProperties. | |
| FMTBaseEdgeProperties (const FMTBaseEdgeProperties &rhs)=default | |
| Copy constructor for FMTBaseEdgeProperties. | |
| FMTBaseEdgeProperties & | operator= (const FMTBaseEdgeProperties &rhs)=default |
| Copy assignment operator for FMTBaseEdgeProperties. | |
| FMTBaseEdgeProperties (const int &laction, const int &lvariableID, const double &lproportion) | |
| Construct a FMTBaseEdgeProperties from an action, a variable id and a proportion. | |
| constexpr | FMTBaseEdgeProperties (const int &laction) |
| Construct a FMTBaseEdgeProperties from an action. | |
| virtual int | getVariableID () const |
| Return the variable id of the edge. | |
| virtual double | getProportion () const |
| Return the proportion of the edge. | |
| int | getActionID () const |
| Return the action id of the edge. | |
| int8_t | getShortActionID () const |
| Return the short (int8) action id of the edge. | |
| void | setActionID (const int &newid) |
| Set the action id of the edge. | |
| bool | isAction (const std::vector< Core::FMTAction > &actions, const Core::FMTAction &rhsaction) const |
| Return true if the edge action matches a given action. | |
| bool | operator== (const FMTBaseEdgeProperties &rhs) const |
| Comparison operator for FMTBaseEdgeProperties. | |
| bool | operator!= (const FMTBaseEdgeProperties &rhs) const |
| Comparison operator for FMTBaseEdgeProperties. | |
| bool | operator< (const FMTBaseEdgeProperties &rhs) const |
| Less than operator for FMTBaseEdgeProperties. | |
Friends | |
| class | boost::serialization::access |
Additional Inherited Members | |
Protected Attributes inherited from Graph::FMTBaseEdgeProperties | |
| int8_t | action |
Edge properties of a FMTGraph, extending the base edge properties with a variable id and a proportion.
|
default |
Default destructor for FMTEdgeProperties.
|
default |
Default constructor for FMTEdgeProperties.
|
default |
Copy constructor for FMTEdgeProperties.
| [in] | rhs | the FMTEdgeProperties to copy. |
| Graph::FMTEdgeProperties::FMTEdgeProperties | ( | const int & | laction, |
| const int & | lvariableID, | ||
| const double & | lproportion | ||
| ) |
Construct a FMTEdgeProperties from an action, a variable id and a proportion.
| [in] | laction | the action. |
| [in] | lvariableID | the variable id. |
| [in] | lproportion | the proportion. |
|
inlineoverridevirtual |
Return the proportion of the edge.
Reimplemented from Graph::FMTBaseEdgeProperties.
|
inlineoverridevirtual |
Return the variable id of the edge.
Reimplemented from Graph::FMTBaseEdgeProperties.
|
inline |
Return a pointer to the variable id of the edge.
| bool Graph::FMTEdgeProperties::operator!= | ( | const FMTEdgeProperties & | rhs | ) | const |
Comparison operator for FMTEdgeProperties.
| [in] | rhs | the FMTEdgeProperties to compare to. |
|
default |
Copy assignment operator for FMTEdgeProperties.
| [in] | rhs | the FMTEdgeProperties to copy. |
| bool Graph::FMTEdgeProperties::operator== | ( | const FMTEdgeProperties & | rhs | ) | const |
Comparison operator for FMTEdgeProperties.
| [in] | rhs | the FMTEdgeProperties to compare to. |
| void Graph::FMTEdgeProperties::setVariableID | ( | const int & | newvariableID | ) |
Set the variable id of the edge.
| [in] | newvariableID | the new variable id. |
|
inline |
Return the name of the variable of the edge.
|
friend |