Stan  2.14.0
probability, sampling & optimization
Public Member Functions | Public Attributes | List of all members
stan::lang::for_statement Struct Reference

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...
 

Detailed Description

AST node for representing a for statement.

Definition at line 15 of file for_statement.hpp.

Constructor & Destructor Documentation

§ for_statement() [1/2]

stan::lang::for_statement::for_statement ( )

Construct an uninitialized for statement.

Definition at line 10 of file for_statement_def.hpp.

§ for_statement() [2/2]

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.

Parameters
[in]variableloop variable
[in]rangevalue range for loop variable
[in]stmtbody of the for loop

Definition at line 12 of file for_statement_def.hpp.

Member Data Documentation

§ range_

range stan::lang::for_statement::range_

The range of values for the loop variable.

Definition at line 40 of file for_statement.hpp.

§ statement_

statement stan::lang::for_statement::statement_

The body of the for loop.

Definition at line 45 of file for_statement.hpp.

§ variable_

std::string stan::lang::for_statement::variable_

The loop variable.

Definition at line 35 of file for_statement.hpp.


The documentation for this struct was generated from the following files:

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