![]() |
Stan
2.14.0
probability, sampling & optimization
|
AST node for a complete Stan program. More...
#include <program.hpp>
Public Types | |
typedef std::vector< function_decl_def > | function_decls_t |
Type of a sequence of function declarations. More... | |
typedef std::vector< var_decl > | var_decls_t |
Type of a sequence of variable declarations. More... | |
typedef std::vector< statement > | statements_t |
Type of a sequence of statements. More... | |
typedef std::pair< var_decls_t, statements_t > | var_decls_statements_t |
Type of pair of variable declaration sequence and statement sequence. More... | |
Public Member Functions | |
program () | |
Construct an uninitialized program. More... | |
program (const function_decls_t &functions, const var_decls_t &data, const var_decls_statements_t &transformed_data, const var_decls_t ¶meters, const var_decls_statements_t &transformed_parameters, const statement &model, const var_decls_statements_t &generated_quantities) | |
Construct a program with the specified components. More... | |
Public Attributes | |
std::vector< function_decl_def > | function_decl_defs_ |
Functions block. More... | |
std::vector< var_decl > | data_decl_ |
Data block. More... | |
std::pair< std::vector< var_decl >, std::vector< statement > > | derived_data_decl_ |
Transformed data block. More... | |
std::vector< var_decl > | parameter_decl_ |
Parameters block. More... | |
std::pair< std::vector< var_decl >, std::vector< statement > > | derived_decl_ |
Transformed parameters block. More... | |
statement | statement_ |
Model block. More... | |
std::pair< std::vector< var_decl >, std::vector< statement > > | generated_decl_ |
Generated quantities block. More... | |
AST node for a complete Stan program.
Definition at line 17 of file program.hpp.
typedef std::vector<function_decl_def> stan::lang::program::function_decls_t |
Type of a sequence of function declarations.
Definition at line 21 of file program.hpp.
typedef std::vector<statement> stan::lang::program::statements_t |
Type of a sequence of statements.
Definition at line 31 of file program.hpp.
typedef std::pair<var_decls_t, statements_t> stan::lang::program::var_decls_statements_t |
Type of pair of variable declaration sequence and statement sequence.
Definition at line 36 of file program.hpp.
typedef std::vector<var_decl> stan::lang::program::var_decls_t |
Type of a sequence of variable declarations.
Definition at line 26 of file program.hpp.
stan::lang::program::program | ( | ) |
Construct an uninitialized program.
Definition at line 9 of file program_def.hpp.
stan::lang::program::program | ( | const function_decls_t & | functions, |
const var_decls_t & | data, | ||
const var_decls_statements_t & | transformed_data, | ||
const var_decls_t & | parameters, | ||
const var_decls_statements_t & | transformed_parameters, | ||
const statement & | model, | ||
const var_decls_statements_t & | generated_quantities | ||
) |
Construct a program with the specified components.
[in] | functions | functions block |
[in] | data | data block |
[in] | transformed_data | transformed data block |
[in] | parameters | parameters block |
[in] | transformed_parameters | transformed parameters block |
[in] | model | model block |
[in] | generated_quantities | generated quantities block |
Definition at line 11 of file program_def.hpp.
std::vector<var_decl> stan::lang::program::data_decl_ |
Data block.
Definition at line 70 of file program.hpp.
Transformed data block.
Definition at line 76 of file program.hpp.
Transformed parameters block.
Definition at line 86 of file program.hpp.
std::vector<function_decl_def> stan::lang::program::function_decl_defs_ |
Functions block.
Definition at line 65 of file program.hpp.
Generated quantities block.
Definition at line 96 of file program.hpp.
std::vector<var_decl> stan::lang::program::parameter_decl_ |
Parameters block.
Definition at line 81 of file program.hpp.
statement stan::lang::program::statement_ |
Model block.
Definition at line 91 of file program.hpp.