IOFormat Class Reference
Stores a set of parameters controlling the way matrices are printed.
More...
#include <IO.h>
List of all members.
Public Member Functions |
| IOFormat (int _precision=4, int _flags=Raw, const std::string &_coeffSeparator=" ", const std::string &_rowSeparator="\n", const std::string &_rowPrefix="", const std::string &_rowSuffix="", const std::string &_matPrefix="", const std::string &_matSuffix="") |
Public Attributes |
std::string | coeffSeparator |
int | flags |
std::string | matPrefix |
std::string | matSuffix |
int | precision |
std::string | rowPrefix |
std::string | rowSeparator |
std::string | rowSpacer |
std::string | rowSuffix |
Detailed Description
Stores a set of parameters controlling the way matrices are printed.
List of available parameters:
- precision number of digits for floating point values
- flags can be either Raw (default) or AlignCols which aligns all the columns
- coeffSeparator string printed between two coefficients of the same row
- rowSeparator string printed between two rows
- rowPrefix string printed at the beginning of each row
- rowSuffix string printed at the end of each row
- matPrefix string printed at the beginning of the matrix
- matSuffix string printed at the end of the matrix
Example:
Output:
- See also:
- MatrixBase::format(), class WithFormat
Definition at line 50 of file IO.h.
Constructor & Destructor Documentation
IOFormat::IOFormat |
( |
int |
_precision = 4 , |
|
|
int |
_flags = Raw , |
|
|
const std::string & |
_coeffSeparator = " " , |
|
|
const std::string & |
_rowSeparator = "\n" , |
|
|
const std::string & |
_rowPrefix = "" , |
|
|
const std::string & |
_rowSuffix = "" , |
|
|
const std::string & |
_matPrefix = "" , |
|
|
const std::string & |
_matSuffix = "" | |
|
) |
| | [inline] |
Default contructor, see class IOFormat for the meaning of the parameters
Definition at line 53 of file IO.h.
Member Data Documentation
Definition at line 70 of file IO.h.
Definition at line 72 of file IO.h.
Definition at line 68 of file IO.h.
Definition at line 68 of file IO.h.
Definition at line 71 of file IO.h.
Definition at line 69 of file IO.h.
Definition at line 69 of file IO.h.
Definition at line 69 of file IO.h.
Definition at line 69 of file IO.h.
The documentation for this class was generated from the following file: