Stan  2.14.0
probability, sampling & optimization
int_literal_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_INT_LITERAL_DEF_HPP
2 #define STAN_LANG_AST_NODE_INT_LITERAL_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 
6 namespace stan {
7  namespace lang {
8 
9 
10 
12 
13  int_literal::int_literal(int val) : val_(val), type_(INT_T) { }
14 
16  : val_(il.val_), type_(il.type_) { }
17 
19  val_ = il.val_;
20  type_ = il.type_;
21  return *this;
22  }
23 
24  }
25 }
26 #endif
Probability, optimization and sampling library.
int_literal()
Construct a default int literal.
int val_
Value of literal.
Definition: int_literal.hpp:13
expr_type type_
Expression type of literal.
Definition: int_literal.hpp:18
const int INT_T
Integer type.
int_literal & operator=(const int_literal &il)
Assignment for int literals.

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