FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTGraphValues.h
Go to the documentation of this file.
1/*
2Copyright (c) 2019 Gouvernement du Québec
3
4SPDX-License-Identifier: LiLiQ-R-1.1
5License-Filename: LICENSES/EN/LiLiQ-R11unicode.txt
6*/
7#ifndef FMTGRAPHVALUES_H
8#define FMTGRAPHVALUES_H
9
10#include <vector>
11#include <boost/functional/hash.hpp>
12
13
14namespace Spatial
15 {
16 // DocString: FMTGraphValues
21 {
22 std::vector<double> m_Values;
23 public:
24 // DocString: FMTGraphValues()
28 FMTGraphValues() = default;
29 // DocString: FMTGraphValues(const std::vector<double>&)
34 FMTGraphValues(const std::vector<double>& p_values);
35 // DocString: FMTGraphValues::operator==
41 bool operator == (const FMTGraphValues& p_Other) const;
42 // DocString: FMTGraphValues::getValues
47 const std::vector<double>& getValues() const;
48 // DocString: FMTGraphValues::hash
53 size_t hash() const;
54 };
55 }
56
57#endif
Wrapper around a vector of constraint values, hashable and comparable so that identical value vectors...
Definition: FMTGraphValues.h:21
size_t hash() const
Hash the values.
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.
FMTGraphValues()=default
Default constructor for FMTGraphValues.
Definition: FMTAreaParser.h:40