Stan  2.14.0
probability, sampling & optimization
base_var_decl.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_BASE_VAR_DECL_HPP
2 #define STAN_LANG_AST_NODE_BASE_VAR_DECL_HPP
3 
6 #include <string>
7 #include <vector>
8 
9 namespace stan {
10  namespace lang {
11 
16  struct base_var_decl {
20  std::string name_;
21 
25  std::vector<expression> dims_;
26 
31 
36 
40  base_var_decl();
41 
47  base_var_decl(const base_expr_type& base_type); // NOLINT
48 
58  base_var_decl(const std::string& name,
59  const std::vector<expression>& dims,
60  const base_expr_type& base_type);
61 
71  base_var_decl(const std::string& name,
72  const std::vector<expression>& dims,
73  const base_expr_type& base_type,
74  const expression& def);
75  };
76 
77  }
78 }
79 #endif
std::vector< expression > dims_
Dimension sizes for variable.
Probability, optimization and sampling library.
int base_expr_type
The type of a base expression.
base_var_decl()
Construct a default base variable declaration.
std::string name_
Name of the variable.
base_expr_type base_type_
Base type for variable.
AST base class for variable declarations, which share most of their structure.
expression def_
Definition for variable (nil if undefined).

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