FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTgraphstats.hpp
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
8#ifndef FMTgraphstats_H_INCLUDED
9#define FMTgraphstats_H_INCLUDED
10
11/*#ifdef FMTWITHOSI
12 #include "OsiSolverInterface.hpp"
13#endif*/
14#include <boost/serialization/serialization.hpp>
15#include <boost/serialization/nvp.hpp>
16#include <boost/serialization/export.hpp>
17#include <memory>
18#include <string>
19#include "FMTobject.hpp"
20
21namespace Graph
22{
23// DocString: FMTgraphstats
28 {
29 friend class boost::serialization::access;
30 // DocString: FMTgraphstats::serialize
34 template<class Archive>
35 void serialize(Archive& ar, const unsigned int version)
36 {
37 ar & BOOST_SERIALIZATION_NVP(cols);
38 ar & BOOST_SERIALIZATION_NVP(rows);
39 ar & BOOST_SERIALIZATION_NVP(vertices);
40 ar & BOOST_SERIALIZATION_NVP(edges);
41 ar & BOOST_SERIALIZATION_NVP(transfer_rows);
42 ar & BOOST_SERIALIZATION_NVP(output_rows);
43 ar & BOOST_SERIALIZATION_NVP(output_cols);
44 }
45 public:
46 // DocString: FMTgraphstats::cols
48 int cols;
49 // DocString: FMTgraphstats::rows
51 int rows;
52 // DocString: FMTgraphstats::vertices
55 // DocString: FMTgraphstats::edges
57 int edges;
58 // DocString: FMTgraphstats::transfer_rows
61 // DocString: FMTgraphstats::output_rows
64 // DocString: FMTgraphstats::output_cols
67 // DocString: FMTgraphstats()
72 // DocString: FMTgraphstats(const FMTgraphstats&)
77 // DocString: FMTgraphstats::operator=
81 FMTgraphstats& operator = (const FMTgraphstats& rhs);
82 // DocString: FMTgraphstats::operator+=
86 FMTgraphstats& operator += (const FMTgraphstats& rhs);
87 // DocString: FMTgraphstats::operator-=
91 FMTgraphstats& operator -= (const FMTgraphstats& rhs);
92 // DocString: FMTgraphstats::operator+
96 FMTgraphstats operator + (const FMTgraphstats& rhs);
97 // DocString: FMTgraphstats::operator-
101 FMTgraphstats operator - (const FMTgraphstats& rhs);
102 // DocString: FMTgraphstats::operator==
106 bool operator == (const FMTgraphstats& rhs) const;
107 // DocString: FMTgraphstats::operator!=
111 bool operator != (const FMTgraphstats& rhs) const;
112 // DocString: FMTgraphstats:operator std::string
116 operator std::string() const;
117 // DocString: ~FMTgraphstats()
121 ~FMTgraphstats()=default;
122 };
123}
124BOOST_CLASS_EXPORT_KEY(Graph::FMTgraphstats)
125#endif
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTgraphstats.hpp:28
int output_cols
Number of output cols in the FMTlpsolver.
Definition: FMTgraphstats.hpp:66
int cols
Number of columns in the matrix of FMTlpsolver.
Definition: FMTgraphstats.hpp:48
int vertices
Number of verticies in the FMTgraph.
Definition: FMTgraphstats.hpp:54
int transfer_rows
Number of area transfer rows in the FMTlpsolver.
Definition: FMTgraphstats.hpp:60
~FMTgraphstats()=default
int rows
Number of rows in the matrix of FMTlpsolver.
Definition: FMTgraphstats.hpp:51
FMTgraphstats(const FMTgraphstats &rhs)
int output_rows
Number of output rows in the FMTlpsolver.
Definition: FMTgraphstats.hpp:63
int edges
Number of edges in the FMTgraph.
Definition: FMTgraphstats.hpp:57
Namespace for using/building unidirectional graphs in FMT.
Definition: FMTareaparser.hpp:31