FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
RexportParallel.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 REXPORTPARALLEL_H_INCLUDED
9#define REXPORTPARALLEL_H_INCLUDED
10
11#include "FMTtask.hpp"
12#include "FMTtaskhandler.hpp"
13#include "FMTreplanningtask.hpp"
14#include "FMTplanningtask.hpp"
15#if defined FMTWITHOSI
17#endif
18#include "FMTmodel.hpp"
19#include "FMToutput.hpp"
20#include "FMTutility.hpp"
21#include <Rcpp.h>
22#include <vector>
23
27
31
35#if defined FMTWITHOSI
39#endif
40
44
45
46namespace R
47{
48
50 {
51
52 Rcpp::class_<Parallel::FMTtask>("FMTtask", "@DocString(FMTtask)")
53 .derives<Core::FMTobject>("FMTobject")
54 .constructor("@DocString(FMTtask())");
55
56 Rcpp::class_<Parallel::FMTreplanningtask>("FMTreplanningtask", "@DocString(FMTreplanningtask)")
57 .derives<Parallel::FMTtask>("FMTtask")
58 .constructor("@DocString(FMTreplanningtask::FMTreplanningtask(...))")
59 .constructor<const Models::FMTmodel&,
60 const Models::FMTmodel&,
61 const Models::FMTmodel&,
62 std::string,
63 std::string,
64 std::vector<std::string>,
65 Core::FMToutputlevel>("@DocString(FMTreplanningtask())")
66 .method("setreplicates", &Parallel::FMTreplanningtask::setreplicates,
67 "@DocString(FMTreplanningtask::setreplicates)")
68 .method("setreplanningperiods", &Parallel::FMTreplanningtask::setreplanningperiods,
69 "@DocString(FMTreplanningtask::setreplanningperiods)");
70
71
72 Rcpp::class_<Parallel::FMTplanningtask>("FMTplanningtask", "@DocString(FMTplanningtask)")
73 .derives<Parallel::FMTtask>("FMTtask")
74 .constructor("@DocString(FMTplanningtask::FMTplanningtask())")
75 .constructor<int,
76 int,
77 std::string,
78 std::string,
79 std::vector<std::string>,
81 std::string>("@DocString(FMTplanningtask::FMTplanningtask(...))")
82 .method("push_back", &Parallel::FMTplanningtask::push_back,
83 "@DocString(FMTplanningtask::push_back");
84#if defined FMTWITHOSI
85 Rcpp::class_<Parallel::FMTopareaschedulertask>("FMTopareaschedulertask", "@DocString(FMTopareaschedulertask)")
86 .derives<Parallel::FMTtask>("FMTtask")
87 .constructor("@DocString(FMTopareaschedulertask::FMTopareaschedulertask())")
88 .constructor<Models::FMTlpmodel,
89 std::vector<Heuristics::FMToperatingareascheme>,
90 Core::FMToutputnode,std::string,
91 std::string,unsigned int,double>("@DocString(FMTopareaschedulertask::FMTopareaschedulertask(...))");
92#endif
93
94 Rcpp::class_<Parallel::FMTtaskhandler>("FMTtaskhandler", "@DocString(FMTtaskhandler)")
95 .derives<Core::FMTobject>("FMTobject")
96 .constructor("@DocString(FMTtaskhandler())")
97 .constructor<const Parallel::FMTtask&,unsigned int>("@DocString(FMTtaskhandler(const Parallel::FMTtask&,unsigned int))")
98 .method("conccurentrun", &Parallel::FMTtaskhandler::conccurentrun,
99 "@DocString(FMTtaskhandler::conccurentrun)")
100 .method("ondemandrun", &Parallel::FMTtaskhandler::ondemandrun,
101 "@DocString(FMTtaskhandler::ondemandrun)");
102
103 }
104}
105#endif // PYEXPORTPARALLEL_H_INCLUDED
RCPP_EXPOSED_WRAP(Parallel::FMTtask)
RCPP_EXPOSED_AS(Parallel::FMTtask)
RCPP_DEFINEVECTOR(Parallel::FMTtask)
Definition: FMTobject.hpp:50
Definition: FMToutputnode.hpp:20
Definition: FMTlpmodel.hpp:57
Definition: FMTmodel.hpp:60
Definition: FMTopareaschedulertask.hpp:48
Definition: FMTplanningtask.hpp:39
void push_back(const Models::FMTmodel &model, std::vector< Core::FMTschedule >schedules=std::vector< Core::FMTschedule >(), std::vector< Core::FMToutput >louputs=std::vector< Core::FMToutput >())
Definition: FMTreplanningtask.hpp:44
void setreplicates(const int &replicatesnumber)
void setreplanningperiods(const int &periodsnumber)
Definition: FMTtask.hpp:28
Definition: FMTtaskhandler.hpp:22
FMToutputlevel
Definition: FMTutility.hpp:17
Definition: RexportCore.hpp:153
void exportParallel()
Definition: RexportParallel.hpp:49