Stan  2.14.0
probability, sampling & optimization
conditional_statement.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_CONDITIONAL_STATEMENT_HPP
2 #define STAN_LANG_AST_NODE_CONDITIONAL_STATEMENT_HPP
3 
6 #include <vector>
7 
8 namespace stan {
9  namespace lang {
10 
19 
30  conditional_statement(const std::vector<expression>& conditions,
31  const std::vector<statement>& statements);
35  std::vector<expression> conditions_;
36 
41  std::vector<statement> bodies_;
42  };
43 
44  }
45 }
46 #endif
Holder for local variable declarations and a sequence of statements.
Definition: statements.hpp:16
Probability, optimization and sampling library.
std::vector< statement > bodies_
The sequence of bodies to execute.
conditional_statement()
Construct an empty conditional statement.
std::vector< expression > conditions_
The sequence of conditions (parallel with bodies).
AST node for conditional statements.

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