Stan  2.14.0
probability, sampling & optimization
printable_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_PRINTABLE_DEF_HPP
2 #define STAN_LANG_AST_NODE_PRINTABLE_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 #include <string>
6 
7 namespace stan {
8  namespace lang {
9 
10  printable::printable() : printable_(std::string()) { }
11 
12  printable::printable(const expression& expr) : printable_(expr) { }
13 
14  printable::printable(const std::string& msg) : printable_(msg) { }
15 
17  : printable_(printable) { }
18 
20  : printable_(printable.printable_) { }
21 
22  }
23 }
24 #endif
Probability, optimization and sampling library.
Template specification of functions in std for Stan.
printable()
Construct a printable object with an empty string.
boost::variant< boost::recursive_wrapper< std::string >, boost::recursive_wrapper< expression > > printable_t
Variant type for member variable to store.
Definition: printable.hpp:23
printable_t printable_
The stored printable object.
Definition: printable.hpp:62
A printable object is either an expression or a string.
Definition: printable.hpp:17

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