FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
RexportGraph.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
8#ifndef REXPORTGRAPH_H_INCLUDED
9#define REXPORTGRAPH_H_INCLUDED
10
11#include "Rdefinitions.h"
12#include "FMTGraphStats.h"
13//#include "FMTGraph.hpp"
14#include <Rcpp.h>
15
19RCPP_EXPOSED_ENUM_NODECL(Graph::FMTgraphbuild);
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_WRAP(Graph::FMTGraphStats)
RCPP_EXPOSED_ENUM_NODECL(Core::FMToutputlevel)
Statistics about a FMTGraph and its FMTLpSolver: their size, elements and type of elements.
Definition: FMTGraphStats.h:28
int rows
Number of rows in the matrix of FMTLpSolver.
Definition: FMTGraphStats.h:54
int output_cols
Number of output cols in the FMTLpSolver.
Definition: FMTGraphStats.h:69
int transfer_rows
Number of area transfer rows in the FMTLpSolver.
Definition: FMTGraphStats.h:63
int cols
Number of columns in the matrix of FMTLpSolver.
Definition: FMTGraphStats.h:51
int edges
Number of edges in the FMTGraph.
Definition: FMTGraphStats.h:60
int vertices
Number of vertices in the FMTGraph.
Definition: FMTGraphStats.h:57
int output_rows
Number of output rows in the FMTLpSolver.
Definition: FMTGraphStats.h:66
FMToutputlevel
Enumerator describing the level of detail of an output (standard, total only, development).
Definition: FMTutility.h:22
Definition: RexportCore.h:153
void exportGraph()
Definition: RexportGraph.h:25