1 #ifndef STAN__COMMON__RECORDER__MESSAGES_HPP
2 #define STAN__COMMON__RECORDER__MESSAGES_HPP
14 const bool has_stream_;
15 const std::string prefix_;
19 : o_(o), has_stream_(o != 0), prefix_(prefix) { }
22 : o_(o), has_stream_(o != 0), prefix_(
"") { }
32 *o_ << prefix_ << x << std::endl;
void operator()(const std::string x)
messages(std::ostream *o)
bool is_recording() const
void operator()(const std::vector< T > &x)
messages(std::ostream *o, std::string prefix)