Writes out a vector as string.
More...
#include <csv.hpp>
Writes out a vector as string.
Definition at line 19 of file csv.hpp.
| stan::common::recorder::csv::csv |
( |
std::ostream * |
o, |
|
|
std::string |
prefix |
|
) |
| |
|
inline |
Construct an object.
- Parameters
-
| o | pointer to stream. Will accept 0. |
Definition at line 31 of file csv.hpp.
| bool stan::common::recorder::csv::is_recording |
( |
| ) |
const |
|
inline |
Indicator function for whether the instance is recording.
For this class, returns true if it has a stream.
Definition at line 89 of file csv.hpp.
template<class T >
| void stan::common::recorder::csv::operator() |
( |
const std::vector< T > & |
x | ) |
|
|
inline |
Print vector as csv.
Uses the insertion operator to write out the elements as comma separated values, flushing the buffer after the line is complete
- Template Parameters
-
- Parameters
-
Definition at line 45 of file csv.hpp.
| void stan::common::recorder::csv::operator() |
( |
const std::string |
x | ) |
|
|
inline |
Print single string with a prefix.
Uses the insertion operator to write out a string as comma separated values, flushing the buffer after the line is complete
- Parameters
-
| x | string to print with prefix in front |
Definition at line 68 of file csv.hpp.
| void stan::common::recorder::csv::operator() |
( |
| ) |
|
|
inline |
Prints a blank line.
No prefix, no nothing.
Definition at line 78 of file csv.hpp.
The documentation for this class was generated from the following file: