Stan  2.10.0
probability, sampling & optimization
base_writer.hpp
Go to the documentation of this file.
1 #ifndef STAN_INTERFACE_CALLBACKS_WRITER_BASE_WRITER_HPP
2 #define STAN_INTERFACE_CALLBACKS_WRITER_BASE_WRITER_HPP
3 
4 #include <boost/lexical_cast.hpp>
5 #include <string>
6 #include <vector>
7 
8 namespace stan {
9  namespace interface_callbacks {
10  namespace writer {
11 
12 
20  class base_writer {
21  public:
28  virtual void operator()(const std::string& key,
29  double value) = 0;
30 
37  virtual void operator()(const std::string& key,
38  int value) = 0;
39 
46  virtual void operator()(const std::string& key,
47  const std::string& value) = 0;
48 
57  virtual void operator()(const std::string& key,
58  const double* values,
59  int n_values) = 0;
60 
71  virtual void operator()(const std::string& key,
72  const double* values,
73  int n_rows, int n_cols) = 0;
74 
80  virtual void operator()(const std::vector<std::string>& names) = 0;
81 
87  virtual void operator()(const std::vector<double>& state) = 0;
88 
92  virtual void operator()() = 0;
93 
99  virtual void operator()(const std::string& message) = 0;
100 
107  virtual ~base_writer() {}
108  };
109 
110  }
111  }
112 }
113 
114 #endif
Probability, optimization and sampling library.
base_writer is an abstract base class defining the interface for Stan writer callbacks.
Definition: base_writer.hpp:20
virtual void operator()()=0
Writes blank input.

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