Stan
2.14.0
probability, sampling & optimization
src
stan
lang
ast
node
while_statement_def.hpp
Go to the documentation of this file.
1
#ifndef STAN_LANG_AST_NODE_WHILE_STATEMENT_DEF_HPP
2
#define STAN_LANG_AST_NODE_WHILE_STATEMENT_DEF_HPP
3
4
#include <
stan/lang/ast.hpp
>
5
6
namespace
stan
{
7
namespace
lang {
8
9
while_statement::while_statement
() { }
10
11
while_statement::while_statement
(
const
expression
& condition,
12
const
statement
& body)
13
:
condition_
(condition),
body_
(body) { }
14
15
}
16
}
17
#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
ast.hpp
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.