Stan  2.14.0
probability, sampling & optimization
is_no_op_statement_vis.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_IS_NO_OP_STATEMENT_VIS_HPP
2 #define STAN_LANG_AST_FUN_IS_NO_OP_STATEMENT_VIS_HPP
3 
4 #include <boost/variant/static_visitor.hpp>
5 
6 namespace stan {
7  namespace lang {
8 
9  struct nil;
10  struct assignment;
11  struct assgn;
12  struct sample;
13  struct increment_log_prob_statement;
14  struct expression;
15  struct statements;
16  struct for_statement;
17  struct conditional_statement;
18  struct while_statement;
19  struct break_continue_statement;
20  struct print_statement;
21  struct reject_statement;
22  struct no_op_statement;
23  struct return_statement;
24 
28  struct is_no_op_statement_vis : public boost::static_visitor<bool> {
35  bool operator()(const nil& st) const;
36 
43  bool operator()(const assignment& st) const;
44 
51  bool operator()(const assgn& st) const;
52 
59  bool operator()(const sample& st) const;
60 
67  bool operator()(const increment_log_prob_statement& st) const;
68 
75  bool operator()(const expression& st) const;
76 
83  bool operator()(const statements& st) const;
84 
91  bool operator()(const for_statement& st) const;
92 
99  bool operator()(const conditional_statement& st) const;
100 
107  bool operator()(const while_statement& st) const;
108 
115  bool operator()(const break_continue_statement& st) const;
116 
123  bool operator()(const print_statement& st) const;
124 
131  bool operator()(const reject_statement& st) const;
132 
139  bool operator()(const no_op_statement& st) const;
140 
147  bool operator()(const return_statement& st) const;
148  };
149 
150  }
151 }
152 #endif
AST node for print statements.
Holder for local variable declarations and a sequence of statements.
Definition: statements.hpp:16
AST node for assignment to variable with multi-indexing.
Definition: assgn.hpp:15
void sample(stan::mcmc::base_mcmc *sampler, int num_warmup, int num_samples, int num_thin, int refresh, bool save, stan::services::sample::mcmc_writer< Model, SampleRecorder, DiagnosticRecorder, MessageRecorder > &mcmc_writer, stan::mcmc::sample &init_s, Model &model, RNG &base_rng, const std::string &prefix, const std::string &suffix, std::ostream &o, StartTransitionCallback &callback, interface_callbacks::writer::base_writer &info_writer, interface_callbacks::writer::base_writer &error_writer)
Definition: sample.hpp:17
AST node for the increment log prob (deprecated) and target increment statements. ...
Probability, optimization and sampling library.
AST node for the reject statement.
AST structure for break and continue statements.
AST node for sampling statements.
Definition: sample.hpp:17
bool operator()(const nil &st) const
Return true if the specified statement is a no-op statement.
AST node for representing while statements.
Visitor to determine if a statement is a no-op statement.
AST node for the no-operation statement.
AST node for the return statement.
The nil structure used as a placeholder for undefined or empty values in several structures.
Definition: nil.hpp:11
AST node for representing a for statement.
AST node for conditional statements.
AST node for assignment statements.
Definition: assignment.hpp:14

     [ Stan Home Page ] © 2011–2016, Stan Development Team.