Stan  2.14.0
probability, sampling & optimization
for_statement_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_FOR_STATEMENT_DEF_HPP
2 #define STAN_LANG_AST_NODE_FOR_STATEMENT_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 #include <string>
6 
7 namespace stan {
8  namespace lang {
9 
11 
13  const range& range, const statement& stmt)
14  : variable_(variable), range_(range), statement_(stmt) { }
15 
16  }
17 }
18 #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

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