1 #ifndef STAN_LANG_AST_FUN_RETURNS_TYPE_VIS_HPP 2 #define STAN_LANG_AST_FUN_RETURNS_TYPE_VIS_HPP 5 #include <boost/variant/static_visitor.hpp> 15 struct increment_log_prob_statement;
19 struct conditional_statement;
20 struct while_statement;
21 struct break_continue_statement;
22 struct print_statement;
23 struct reject_statement;
24 struct no_op_statement;
25 struct return_statement;
AST node for print statements.
Holder for local variable declarations and a sequence of statements.
AST node for assignment to variable with multi-indexing.
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)
bool operator()(const nil &st) const
Return true if the specified statement is a return statement with an expression of the type specified...
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.
Structure of the type of an expression, which consists of a base type and a number of dimensions...
AST node for sampling statements.
Visitor for reporting an error message if the statement is not a return statement with a type specifi...
expr_type return_type_
The type of the returned expression expected.
AST node for representing while statements.
AST node for the no-operation statement.
AST node for the return statement.
returns_type_vis(const expr_type &return_type, std::ostream &error_msgs)
Construct visitor expecting a return statement with an expression of the specified type...
The nil structure used as a placeholder for undefined or empty values in several structures.
AST node for representing a for statement.
AST node for conditional statements.
std::ostream & error_msgs_
Stream to which error messages are written.
AST node for assignment statements.