Stan  2.14.0
probability, sampling & optimization
arg_decl.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_ARG_DECL_HPP
2 #define STAN_LANG_AST_NODE_ARG_DECL_HPP
3 
6 #include <string>
7 
8 namespace stan {
9  namespace lang {
10 
14  struct arg_decl {
18  arg_decl();
19 
27  arg_decl(const expr_type& arg_type, const std::string& name);
28 
36 
41 
45  std::string name_;
46  };
47 
48  }
49 }
50 #endif
AST node for the type delclaration for function arguments.
Definition: arg_decl.hpp:14
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::string name_
Name of the argument variable.
Definition: arg_decl.hpp:45
base_var_decl base_variable_declaration() const
Return the base declaration corresponding to this argument declaration.
AST base class for variable declarations, which share most of their structure.
expr_type arg_type_
Type of the argument variable.
Definition: arg_decl.hpp:40
arg_decl()
Construct an uninitialized argument declaration.

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