#include <genesis/utils/containers/matrix/writer.hpp>
template<typename T>
class genesis::utils::MatrixWriter< T >
Definition at line 53 of file utils/containers/matrix/writer.hpp.
◆ MatrixWriter() [1/3]
◆ ~MatrixWriter()
◆ MatrixWriter() [2/3]
◆ MatrixWriter() [3/3]
◆ format() [1/2]
◆ format() [2/2]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ separator_string() [1/2]
std::string const& separator_string |
( |
| ) |
const |
|
inline |
◆ separator_string() [2/2]
◆ write()
void write |
( |
Matrix< T > const & |
matrix, |
|
|
std::shared_ptr< utils::BaseOutputTarget > |
target, |
|
|
std::vector< std::string > |
row_names = {} , |
|
|
std::vector< std::string > |
col_names = {} , |
|
|
std::string |
corner = "" |
|
) |
| const |
|
inline |
Write a Matrix to an output target, using a specific MatrixWriter::Format and separator string.
The format and separator string can either be set in the constructor, or using the methods format( Format ) and separator_string( std::string const& ).
The write() function takes optional row and column names, and a corner element that is used if both row and column names are givenm, as the upper left entry of the written output. Alternatively, either the row_names
or the col_names
can contain an additional element in the beginning, which is then used as the "corner" top left element when writing. This allows maximum flexibility in the setup when using this writer class.
Definition at line 102 of file utils/containers/matrix/writer.hpp.
◆ write_value_functor()
MatrixWriter& write_value_functor |
( |
std::function< std::string(T const &)> |
functor | ) |
|
|
inline |
◆ Format
The documentation for this class was generated from the following file: