![]() |
Stan
2.14.0
probability, sampling & optimization
|
AST node for representing a for statement. More...
#include <for_statement.hpp>
Public Member Functions | |
| for_statement () | |
| Construct an uninitialized for statement. More... | |
| for_statement (const std::string &variable, const range &range, const statement &stmt) | |
| Construct a for statement that loops the specified variable over the specified range to execute the specified statement. More... | |
Public Attributes | |
| std::string | variable_ |
| The loop variable. More... | |
| range | range_ |
| The range of values for the loop variable. More... | |
| statement | statement_ |
| The body of the for loop. More... | |
AST node for representing a for statement.
Definition at line 15 of file for_statement.hpp.
| stan::lang::for_statement::for_statement | ( | ) |
Construct an uninitialized for statement.
Definition at line 10 of file for_statement_def.hpp.
| stan::lang::for_statement::for_statement | ( | const std::string & | variable, |
| const range & | range, | ||
| const statement & | stmt | ||
| ) |
Construct a for statement that loops the specified variable over the specified range to execute the specified statement.
| [in] | variable | loop variable |
| [in] | range | value range for loop variable |
| [in] | stmt | body of the for loop |
Definition at line 12 of file for_statement_def.hpp.
| range stan::lang::for_statement::range_ |
The range of values for the loop variable.
Definition at line 40 of file for_statement.hpp.
| statement stan::lang::for_statement::statement_ |
The body of the for loop.
Definition at line 45 of file for_statement.hpp.
| std::string stan::lang::for_statement::variable_ |
The loop variable.
Definition at line 35 of file for_statement.hpp.