write_base_expr_type_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_WRITE_BASE_EXPR_TYPE_DEF_HPP
2 #define STAN_LANG_AST_FUN_WRITE_BASE_EXPR_TYPE_DEF_HPP
3 
5 
6 namespace stan {
7  namespace lang {
8 
9  std::ostream& write_base_expr_type(std::ostream& o, base_expr_type type) {
10  if (type.is_int_type())
11  o << "int";
12  else if (type.is_double_type())
13  o << "real";
14  else if (type.is_vector_type())
15  o << "vector";
16  else if (type.is_row_vector_type())
17  o << "row vector";
18  else if (type.is_matrix_type())
19  o << "matrix";
20  else if (type.is_ill_formed_type())
21  o << "ill formed";
22  else if (type.is_void_type())
23  o << "void";
24  else
25  o << "UNKNOWN";
26 
27  return o;
28  }
29  }
30 }
31 
32 #endif
::xsd::cxx::tree::type type
Definition: Database.h:110
double lang
Definition: runWimpSim.h:113
std::ostream & write_base_expr_type(std::ostream &o, base_expr_type type)