Stan  2.14.0
probability, sampling & optimization
for_statement.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_FOR_STATEMENT_HPP
2 #define STAN_LANG_AST_NODE_FOR_STATEMENT_HPP
3 
7 #include <string>
8 
9 namespace stan {
10  namespace lang {
11 
15  struct for_statement {
19  for_statement();
20 
29  for_statement(const std::string& variable, const range& range,
30  const statement& stmt);
31 
35  std::string variable_;
36 
40  range range_;
41 
46  };
47 
48  }
49 }
50 #endif
Structure to wrap the variant type of statements.
Definition: statement.hpp:29
range range_
The range of values for the loop variable.
Probability, optimization and sampling library.
std::string variable_
The loop variable.
AST structure for a range object with a low and high value.
Definition: range.hpp:14
statement statement_
The body of the for loop.
for_statement()
Construct an uninitialized for statement.
Structure to hold a variable.
Definition: variable.hpp:14
AST node for representing a for statement.

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