Stan  2.10.0
probability, sampling & optimization
noop_writer.hpp
Go to the documentation of this file.
1 #ifndef STAN_INTERFACE_CALLBACKS_WRITER_NOOP_WRITER_HPP
2 #define STAN_INTERFACE_CALLBACKS_WRITER_NOOP_WRITER_HPP
3 
5 #include <string>
6 #include <vector>
7 
8 namespace stan {
9  namespace interface_callbacks {
10  namespace writer {
11 
18  class noop_writer: public base_writer {
19  public:
20  void operator()(const std::string& key, double value) {}
21  void operator()(const std::string& key, int value) {}
22  void operator()(const std::string& key, const std::string& value) {}
23  void operator()(const std::string& key,
24  const double* values,
25  int n_values) {}
26  void operator()(const std::string& key,
27  const double* values,
28  int n_rows, int n_cols) {}
29  void operator()(const std::vector<std::string>& names) {}
30  void operator()(const std::vector<double>& state) {}
31  void operator()() {}
32  void operator()(const std::string& message) {}
33  };
34 
35  }
36  }
37 }
38 
39 #endif
Probability, optimization and sampling library.
void operator()(const std::string &key, const std::string &value)
Writes a key, value pair.
Definition: noop_writer.hpp:22
void operator()(const std::vector< std::string > &names)
Writes a set of names.
Definition: noop_writer.hpp:29
void operator()(const std::string &key, double value)
Writes a key, value pair.
Definition: noop_writer.hpp:20
base_writer is an abstract base class defining the interface for Stan writer callbacks.
Definition: base_writer.hpp:20
void operator()(const std::string &key, const double *values, int n_rows, int n_cols)
Writes a key, value pair.
Definition: noop_writer.hpp:26
void operator()(const std::vector< double > &state)
Writes a set of values.
Definition: noop_writer.hpp:30
void operator()(const std::string &key, const double *values, int n_values)
Writes a key, value pair.
Definition: noop_writer.hpp:23
void operator()(const std::string &message)
Writes a string.
Definition: noop_writer.hpp:32
void operator()(const std::string &key, int value)
Writes a key, value pair.
Definition: noop_writer.hpp:21

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