Stan  2.14.0
probability, sampling & optimization
function_decl_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_FUNCTION_DECL_DEF_HPP
2 #define STAN_LANG_AST_NODE_FUNCTION_DECL_DEF_HPP
3 
7 #include <string>
8 #include <vector>
9 
10 namespace stan {
11  namespace lang {
12 
23 
35  function_decl_def(const expr_type& return_type, const std::string& name,
36  const std::vector<arg_decl>& arg_decls,
37  const statement& body);
38 
43 
47  std::string name_;
48 
52  std::vector<arg_decl> arg_decls_;
53 
58  };
59 
60  }
61 }
62 #endif
Structure to wrap the variant type of statements.
Definition: statement.hpp:29
expr_type return_type_
Tyep of value returned by function.
Probability, optimization and sampling library.
Structure of the type of an expression, which consists of a base type and a number of dimensions...
Definition: expr_type.hpp:14
std::vector< arg_decl > arg_decls_
Sequence of argument declarations.
std::string name_
Name of the function.
AST node for a function declaration and definition including return type name, arguments, and body.
statement body_
Body of the function.
function_decl_def()
Construct an uninitialized function declaration and definition.

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