Stan
2.14.0
probability, sampling & optimization
src
stan
lang
ast
node
while_statement.hpp
Go to the documentation of this file.
1
#ifndef STAN_LANG_AST_NODE_WHILE_STATEMENT_HPP
2
#define STAN_LANG_AST_NODE_WHILE_STATEMENT_HPP
3
4
#include <
stan/lang/ast/node/expression.hpp
>
5
#include <
stan/lang/ast/node/statement.hpp
>
6
7
8
namespace
stan
{
9
namespace
lang {
10
14
struct
while_statement
{
19
while_statement
();
20
28
while_statement
(
const
expression
& condition,
const
statement
& body);
29
33
expression
condition_
;
34
38
statement
body_
;
39
};
40
41
}
42
}
43
#endif
stan::lang::statement
Structure to wrap the variant type of statements.
Definition:
statement.hpp:29
stan
Probability, optimization and sampling library.
Definition:
base_interrupt.hpp:4
stan::lang::expression
Definition:
expression.hpp:41
statement.hpp
expression.hpp
stan::lang::while_statement
AST node for representing while statements.
Definition:
while_statement.hpp:14
stan::lang::while_statement::while_statement
while_statement()
Construct an unitialized while statement with nil condition and body.
Definition:
while_statement_def.hpp:9
stan::lang::while_statement::body_
statement body_
The loop body.
Definition:
while_statement.hpp:38
stan::lang::while_statement::condition_
expression condition_
The loop condition.
Definition:
while_statement.hpp:33
[
Stan Home Page
]
© 2011–2016, Stan Development Team.