FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
RexportGraph.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 REXPORTGRAPH_H_INCLUDED
9#define REXPORTGRAPH_H_INCLUDED
10
11#include "Rdefinitions.hpp"
12#include "FMTgraphstats.hpp"
13//#include "FMTgraph.hpp"
14#include <Rcpp.h>
15
20//RCPP_EXPOSED_WRAP(Graph::FMTgraph);
21//RCPP_EXPOSED_AS(Graph::FMTgraph);
22
23namespace R
24{
26 {
27 Rcpp::class_<Graph::FMTgraphstats>("FMTgraphstats", "@DocString(FMTgraphstats)")
28 .constructor("@DocString(FMTgraphstats())")
29 .method("str", &Graph::FMTgraphstats::operator std::string,
30 "@DocString(FMTgraphstats::operator std::string)")
31 .field("cols", &Graph::FMTgraphstats::cols,
32 "@DocString(FMTgraphstats::cols)")
33 .field("rows", &Graph::FMTgraphstats::rows,
34 "@DocString(FMTgraphstats::rows)")
35 .field("vertices", &Graph::FMTgraphstats::vertices,
36 "@DocString(FMTgraphstats::vertices)")
37 .field("edges", &Graph::FMTgraphstats::edges,
38 "@DocString(FMTgraphstats::edges)")
39 .field("transfer_rows", &Graph::FMTgraphstats::transfer_rows,
40 "@DocString(FMTgraphstats::transfer_rows)")
41 .field("output_rows", &Graph::FMTgraphstats::output_rows,
42 "@DocString(FMTgraphstats::output_rows)")
43 .field("output_cols", &Graph::FMTgraphstats::output_cols,
44 "@DocString(FMTgraphstats::output_cols)");
45
46 //Rcpp::class_<Graph::FMTgraph>("FMTgraph", "@DocString(FMTgraph)")
47 // .constructor("@DocString(FMTgraph())");
48
49 }
50
51}
52
53#endif // PYEXPORTGRAPH_H_INCLUDED
RCPP_EXPOSED_AS(Graph::FMTgraphstats)
RCPP_EXPOSED_ENUM_NODECL(Core::FMToutputlevel)
RCPP_EXPOSED_WRAP(Graph::FMTgraphstats)
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
int rows
Number of rows in the matrix of FMTlpsolver.
Definition: FMTgraphstats.hpp:51
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
FMToutputlevel
Definition: FMTutility.hpp:17
FMTgraphbuild
Definition: FMTgraph.hpp:67
Definition: RexportCore.hpp:153
void exportGraph()
Definition: RexportGraph.hpp:25