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

AST node for a complete Stan program. More...

#include <program.hpp>

Public Types

typedef std::vector< function_decl_deffunction_decls_t
 Type of a sequence of function declarations. More...
 
typedef std::vector< var_declvar_decls_t
 Type of a sequence of variable declarations. More...
 
typedef std::vector< statementstatements_t
 Type of a sequence of statements. More...
 
typedef std::pair< var_decls_t, statements_tvar_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 &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. More...
 

Public Attributes

std::vector< function_decl_deffunction_decl_defs_
 Functions block. More...
 
std::vector< var_decldata_decl_
 Data block. More...
 
std::pair< std::vector< var_decl >, std::vector< statement > > derived_data_decl_
 Transformed data block. More...
 
std::vector< var_declparameter_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...
 

Detailed Description

AST node for a complete Stan program.

Definition at line 17 of file program.hpp.

Member Typedef Documentation

§ function_decls_t

Type of a sequence of function declarations.

Definition at line 21 of file program.hpp.

§ statements_t

Type of a sequence of statements.

Definition at line 31 of file program.hpp.

§ var_decls_statements_t

Type of pair of variable declaration sequence and statement sequence.

Definition at line 36 of file program.hpp.

§ var_decls_t

Type of a sequence of variable declarations.

Definition at line 26 of file program.hpp.

Constructor & Destructor Documentation

§ program() [1/2]

stan::lang::program::program ( )

Construct an uninitialized program.

Definition at line 9 of file program_def.hpp.

§ program() [2/2]

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.

Parameters
[in]functionsfunctions block
[in]datadata block
[in]transformed_datatransformed data block
[in]parametersparameters block
[in]transformed_parameterstransformed parameters block
[in]modelmodel block
[in]generated_quantitiesgenerated quantities block

Definition at line 11 of file program_def.hpp.

Member Data Documentation

§ data_decl_

std::vector<var_decl> stan::lang::program::data_decl_

Data block.

Definition at line 70 of file program.hpp.

§ derived_data_decl_

std::pair<std::vector<var_decl>, std::vector<statement> > stan::lang::program::derived_data_decl_

Transformed data block.

Definition at line 76 of file program.hpp.

§ derived_decl_

std::pair<std::vector<var_decl>, std::vector<statement> > stan::lang::program::derived_decl_

Transformed parameters block.

Definition at line 86 of file program.hpp.

§ function_decl_defs_

std::vector<function_decl_def> stan::lang::program::function_decl_defs_

Functions block.

Definition at line 65 of file program.hpp.

§ generated_decl_

std::pair<std::vector<var_decl>, std::vector<statement> > stan::lang::program::generated_decl_

Generated quantities block.

Definition at line 96 of file program.hpp.

§ parameter_decl_

std::vector<var_decl> stan::lang::program::parameter_decl_

Parameters block.

Definition at line 81 of file program.hpp.

§ statement_

statement stan::lang::program::statement_

Model block.

Definition at line 91 of file program.hpp.


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

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