![]() |
Stan
2.10.0
probability, sampling & optimization
|
base_writer is an abstract base class defining the interface for Stan writer callbacks. More...
#include <base_writer.hpp>
Public Member Functions | |
virtual void | operator() (const std::string &key, double value)=0 |
Writes a key, value pair. More... | |
virtual void | operator() (const std::string &key, int value)=0 |
Writes a key, value pair. More... | |
virtual void | operator() (const std::string &key, const std::string &value)=0 |
Writes a key, value pair. More... | |
virtual void | operator() (const std::string &key, const double *values, int n_values)=0 |
Writes a key, value pair. More... | |
virtual void | operator() (const std::string &key, const double *values, int n_rows, int n_cols)=0 |
Writes a key, value pair. More... | |
virtual void | operator() (const std::vector< std::string > &names)=0 |
Writes a set of names. More... | |
virtual void | operator() (const std::vector< double > &state)=0 |
Writes a set of values. More... | |
virtual void | operator() ()=0 |
Writes blank input. More... | |
virtual void | operator() (const std::string &message)=0 |
Writes a string. More... | |
virtual | ~base_writer () |
Destructor. More... | |
base_writer is an abstract base class defining the interface for Stan writer callbacks.
The Stan API writes structured output to implementations of this class defined by a given interface.
Definition at line 20 of file base_writer.hpp.
|
inlinevirtual |
Destructor.
Virtual destructor to avoid compiler warnings
Definition at line 107 of file base_writer.hpp.
|
pure virtual |
Writes a key, value pair.
[in] | key | A string |
[in] | value | A double value |
Implemented in stan::interface_callbacks::writer::stream_writer, and stan::interface_callbacks::writer::noop_writer.
|
pure virtual |
Writes a key, value pair.
[in] | key | A string |
[in] | value | An integer value |
Implemented in stan::interface_callbacks::writer::stream_writer, and stan::interface_callbacks::writer::noop_writer.
|
pure virtual |
Writes a key, value pair.
[in] | key | A string |
[in] | value | A string |
Implemented in stan::interface_callbacks::writer::stream_writer, and stan::interface_callbacks::writer::noop_writer.
|
pure virtual |
Writes a key, value pair.
[in] | key | A string |
[in] | values | A double array, typically used with contiguous Eigen vectors |
[in] | n_values | Length of the array |
Implemented in stan::interface_callbacks::writer::stream_writer, and stan::interface_callbacks::writer::noop_writer.
|
pure virtual |
Writes a key, value pair.
[in] | key | A string |
[in] | values | A double array assumed to represent a 2d matrix stored in column major order, typically used with contiguous Eigen matrices |
[in] | n_rows | Rows |
[in] | n_cols | Columns |
Implemented in stan::interface_callbacks::writer::stream_writer, and stan::interface_callbacks::writer::noop_writer.
|
pure virtual |
Writes a set of names.
[in] | names | Names in a std::vector |
Implemented in stan::interface_callbacks::writer::stream_writer, and stan::interface_callbacks::writer::noop_writer.
|
pure virtual |
Writes a set of values.
[in] | state | Values in a std::vector |
Implemented in stan::interface_callbacks::writer::stream_writer, and stan::interface_callbacks::writer::noop_writer.
|
pure virtual |
Writes blank input.
Implemented in stan::interface_callbacks::writer::stream_writer, and stan::interface_callbacks::writer::noop_writer.
|
pure virtual |
Writes a string.
[in] | message | A string |
Implemented in stan::interface_callbacks::writer::stream_writer, and stan::interface_callbacks::writer::noop_writer.