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

AST node for representing while statements. More...

#include <while_statement.hpp>

Public Member Functions

 while_statement ()
 Construct an unitialized while statement with nil condition and body. More...
 
 while_statement (const expression &condition, const statement &body)
 Construct a while statement with the specified loop condition and loop body. More...
 

Public Attributes

expression condition_
 The loop condition. More...
 
statement body_
 The loop body. More...
 

Detailed Description

AST node for representing while statements.

Definition at line 14 of file while_statement.hpp.

Constructor & Destructor Documentation

§ while_statement() [1/2]

stan::lang::while_statement::while_statement ( )

Construct an unitialized while statement with nil condition and body.

Definition at line 9 of file while_statement_def.hpp.

§ while_statement() [2/2]

stan::lang::while_statement::while_statement ( const expression condition,
const statement body 
)

Construct a while statement with the specified loop condition and loop body.

Parameters
[in]conditionloop condition
[in]bodyloop body

Definition at line 11 of file while_statement_def.hpp.

Member Data Documentation

§ body_

statement stan::lang::while_statement::body_

The loop body.

Definition at line 38 of file while_statement.hpp.

§ condition_

expression stan::lang::while_statement::condition_

The loop condition.

Definition at line 33 of file while_statement.hpp.


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

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