Stan  2.14.0
probability, sampling & optimization
fun.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_FUN_HPP
2 #define STAN_LANG_AST_NODE_FUN_HPP
3 
5 #include <string>
6 #include <vector>
7 
8 
9 namespace stan {
10  namespace lang {
11 
12  struct expression;
13 
17  struct fun {
21  std::string name_;
22 
27  std::string original_name_;
28 
32  std::vector<expression> args_;
33 
38 
42  fun();
43 
51  fun(const std::string& name, const std::vector<expression>& args);
52  };
53 
54  }
55 }
56 #endif
expr_type type_
Type of result of applying function to arguments.
Definition: fun.hpp:37
std::string original_name_
Original name of function being applied (before name transformation).
Definition: fun.hpp:27
Probability, optimization and sampling library.
std::vector< expression > args_
Sequence of argument expressions for function.
Definition: fun.hpp:32
Structure for function application.
Definition: fun.hpp:17
fun()
Construct a default function object.
Definition: fun_def.hpp:11
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 function being applied.
Definition: fun.hpp:21

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