Stan  2.14.0
probability, sampling & optimization
printable.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_PRINTABLE_HPP
2 #define STAN_LANG_AST_PRINTABLE_HPP
3 
4 
5 
6 #include <boost/variant/recursive_variant.hpp>
7 #include <string>
8 
9 namespace stan {
10  namespace lang {
11 
12  struct expression;
13 
17  struct printable {
21  typedef boost::variant<boost::recursive_wrapper<std::string>,
22  boost::recursive_wrapper<expression> >
24 
28  printable();
29 
35  printable(const expression& expr); // NOLINT(runtime/explicit)
36 
42  printable(const std::string& msg); // NOLINT(runtime/explicit)
43 
50  printable(const printable_t& printable); // NOLINT(runtime/explicit)
51 
57  printable(const printable& printable); // NOLINT(runtime/explicit)
58 
63  };
64 
65  }
66 }
67 #endif
Probability, optimization and sampling library.
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.