Stan  2.14.0
probability, sampling & optimization
function_decl_def_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_FUNCTION_DECL_DEF_DEF_HPP
2 #define STAN_LANG_AST_NODE_FUNCTION_DECL_DEF_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 #include <string>
6 #include <vector>
7 
8 namespace stan {
9  namespace lang {
10 
12 
14  const std::string& name,
15  const std::vector<arg_decl>& arg_decls,
16  const statement& body)
17  : return_type_(return_type), name_(name), arg_decls_(arg_decls),
18  body_(body) {
19  }
20 
21  }
22 }
23 #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.
statement body_
Body of the function.
function_decl_def()
Construct an uninitialized function declaration and definition.

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