FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTSerie.hpp
Go to the documentation of this file.
1/*
2Copyright (c) 2024 Gouvernement du Québec
3
4SPDX-License-Identifier: LiLiQ-R-1.1
5License-Filename: LICENSES/EN/LiLiQ-R11unicode.txt
6*/
7
8#ifndef FMTSerie_H_INCLUDED
9#define FMTSerie_H_INCLUDED
10
11#include <string>
12
13
14namespace Core
15{
16// DocString: FMTSerie
22 {
23 public:
24 // DocString: FMTSerie(const std::string&,int)
30 FMTSerie(const std::string& p_serie, int p_length);
31 // DocString: FMTSerie::getLength
36 int getLength() const;
37 // DocString: FMTSerie::getSerie
42 std::string getSerie() const;
43 // DocString: FMTSerie::operator==
48 bool operator == (const FMTSerie& p_RHS) const;
49 // DocString: FMTSerie::operator!=
54 bool operator != (const FMTSerie& p_RHS) const;
55 // DocString: FMTSerie::operator<
60 bool operator < (const FMTSerie & p_RHS) const;
61 // DocString: FMTSerie::operator>
66 bool operator > (const FMTSerie& p_RHS) const;
67 private:
68 // DocString: FMTSerie::m_serie
70 std::string m_serie;
71 // DocString: FMTSerie::m_length
73 int m_length;
74 };
75
76}
77
78#endif // FMTSerie_H_INCLUDED
The class keep information of a serie of actions in a given order.
Definition: FMTSerie.hpp:22
bool operator!=(const FMTSerie &p_RHS) const
Check if two series are not equal.
std::string getSerie() const
Return the string of the serie.
bool operator==(const FMTSerie &p_RHS) const
Check if two series are equal.
bool operator<(const FMTSerie &p_RHS) const
Check if this serie is less then the p_RHS serie.
FMTSerie(const std::string &p_serie, int p_length)
Initialize a FMTSerie using the string description and the length of the serie.
bool operator>(const FMTSerie &p_RHS) const
Check if this serie is greater then the p_RHS serie.
int getLength() const
Return the length of the serie.
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTaction.hpp:31