![]() |
Stan
2.14.0
probability, sampling & optimization
|
AST node for a function declaration and definition including return type name, arguments, and body. More...
#include <function_decl_def.hpp>
Public Member Functions | |
| function_decl_def () | |
| Construct an uninitialized function declaration and definition. More... | |
| function_decl_def (const expr_type &return_type, const std::string &name, const std::vector< arg_decl > &arg_decls, const statement &body) | |
| Construct a function declaration and definition with the specified return type, function name, argument declarations and function body. More... | |
Public Attributes | |
| expr_type | return_type_ |
| Tyep of value returned by function. More... | |
| std::string | name_ |
| Name of the function. More... | |
| std::vector< arg_decl > | arg_decls_ |
| Sequence of argument declarations. More... | |
| statement | body_ |
| Body of the function. More... | |
AST node for a function declaration and definition including return type name, arguments, and body.
Definition at line 17 of file function_decl_def.hpp.
| stan::lang::function_decl_def::function_decl_def | ( | ) |
Construct an uninitialized function declaration and definition.
Definition at line 11 of file function_decl_def_def.hpp.
| stan::lang::function_decl_def::function_decl_def | ( | const expr_type & | return_type, |
| const std::string & | name, | ||
| const std::vector< arg_decl > & | arg_decls, | ||
| const statement & | body | ||
| ) |
Construct a function declaration and definition with the specified return type, function name, argument declarations and function body.
| [in] | return_type | type of return value of function |
| [in] | name | function name |
| [in] | arg_decls | sequence of argument declarations |
| [in] | body | function body |
Definition at line 13 of file function_decl_def_def.hpp.
| std::vector<arg_decl> stan::lang::function_decl_def::arg_decls_ |
Sequence of argument declarations.
Definition at line 52 of file function_decl_def.hpp.
| statement stan::lang::function_decl_def::body_ |
Body of the function.
Definition at line 57 of file function_decl_def.hpp.
| std::string stan::lang::function_decl_def::name_ |
Name of the function.
Definition at line 47 of file function_decl_def.hpp.
| expr_type stan::lang::function_decl_def::return_type_ |
Tyep of value returned by function.
Definition at line 42 of file function_decl_def.hpp.