FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Spatial::FMTGraphValues Class Reference

Wrapper around a vector of constraint values, hashable and comparable so that identical value vectors can be interned and shared. More...

#include <FMTGraphValues.h>

Public Member Functions

 FMTGraphValues ()=default
 Default constructor for FMTGraphValues.
 
 FMTGraphValues (const std::vector< double > &p_values)
 Construct a FMTGraphValues from a vector of values.
 
bool operator== (const FMTGraphValues &p_Other) const
 Comparison operator for FMTGraphValues.
 
const std::vector< double > & getValues () const
 Return the values.
 
size_t hash () const
 Hash the values.
 

Detailed Description

Wrapper around a vector of constraint values, hashable and comparable so that identical value vectors can be interned and shared.

Constructor & Destructor Documentation

◆ FMTGraphValues() [1/2]

Spatial::FMTGraphValues::FMTGraphValues ( )
default

Default constructor for FMTGraphValues.

◆ FMTGraphValues() [2/2]

Spatial::FMTGraphValues::FMTGraphValues ( const std::vector< double > &  p_values)

Construct a FMTGraphValues from a vector of values.

Parameters
[in]p_valuesthe values.

Member Function Documentation

◆ getValues()

const std::vector< double > & Spatial::FMTGraphValues::getValues ( ) const

Return the values.

Returns
the values.

◆ hash()

size_t Spatial::FMTGraphValues::hash ( ) const

Hash the values.

Returns
the hash of the values.

◆ operator==()

bool Spatial::FMTGraphValues::operator== ( const FMTGraphValues p_Other) const

Comparison operator for FMTGraphValues.

Parameters
[in]p_Otherthe FMTGraphValues to compare to.
Returns
true if both value vectors are equal else false.

The documentation for this class was generated from the following file: