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

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_declarg_decls_
 Sequence of argument declarations. More...
 
statement body_
 Body of the function. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

§ function_decl_def() [1/2]

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.

§ function_decl_def() [2/2]

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.

Parameters
[in]return_typetype of return value of function
[in]namefunction name
[in]arg_declssequence of argument declarations
[in]bodyfunction body

Definition at line 13 of file function_decl_def_def.hpp.

Member Data Documentation

§ arg_decls_

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.

§ body_

statement stan::lang::function_decl_def::body_

Body of the function.

Definition at line 57 of file function_decl_def.hpp.

§ name_

std::string stan::lang::function_decl_def::name_

Name of the function.

Definition at line 47 of file function_decl_def.hpp.

§ return_type_

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.


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

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