Contains necessary informations to print a formatted KMatrix
.
More...
#include <kmatrix_impl.hpp>
Public Member Functions | |
KMatrixContextImpl (std::string elemDelim=" ", std::string rowDelim="\n", std::string startDelim=std::string(), std::string endDelim=std::string(), unsigned prec=4) | |
Constructor. | |
Public Attributes | |
std::string | elemDelim_ |
Delimiter string between matrix elements. | |
std::string | endDelim_ |
Ending string after last matrix element. | |
unsigned | precision_ |
Number of significant digits to output. | |
std::string | rowDelim_ |
Delimiter string at the end of each row. | |
bool | skipElemDelim_ |
Must we skip a word between elements ? | |
bool | skipEndDelim_ |
Must we skip a word at end of vector ? | |
bool | skipRowDelim_ |
Must we skip a word at the end of the row ? | |
bool | skipStartDelim_ |
Must we skip a word at start of vector ? | |
std::string | startDelim_ |
Starting string before first matrix element. | |
unsigned | width_ |
Width of output field for nice alignment. |
Contains necessary informations to print a formatted KMatrix
.
Instances of this class defines the behaviour of input/output operations of KMatrix
instances from/to streams. That is to say, get()
and put()
as well as corresponding operator>>()
and operator<<()
depend of the KMatrixContextImpl
that has been selected by calling selectKMatrixContext()
.
Definition at line 45 of file kmatrix_impl.hpp.
Kalman::KMatrixContextImpl::KMatrixContextImpl | ( | std::string | elemDelim = " " , |
|
std::string | rowDelim = "\n" , |
|||
std::string | startDelim = std::string() , |
|||
std::string | endDelim = std::string() , |
|||
unsigned | prec = 4 | |||
) | [inline] |
Constructor.
elemDelim | Delimiter string between matrix elements. | |
rowDelim | Delimiter string at the end of each row. | |
startDelim | Starting string before first matrix element. | |
endDelim | Ending string after last matrix element. | |
prec | Number of significant digits to output |
createKMatrixContext()
function instead. Definition at line 57 of file kmatrix_impl.hpp.
std::string Kalman::KMatrixContextImpl::elemDelim_ |
Delimiter string between matrix elements.
Definition at line 76 of file kmatrix_impl.hpp.
std::string Kalman::KMatrixContextImpl::endDelim_ |
Ending string after last matrix element.
Definition at line 79 of file kmatrix_impl.hpp.
Number of significant digits to output.
Definition at line 80 of file kmatrix_impl.hpp.
std::string Kalman::KMatrixContextImpl::rowDelim_ |
Delimiter string at the end of each row.
Definition at line 77 of file kmatrix_impl.hpp.
Must we skip a word between elements ?
Definition at line 82 of file kmatrix_impl.hpp.
Must we skip a word at end of vector ?
Definition at line 85 of file kmatrix_impl.hpp.
Must we skip a word at the end of the row ?
Definition at line 83 of file kmatrix_impl.hpp.
Must we skip a word at start of vector ?
Definition at line 84 of file kmatrix_impl.hpp.
std::string Kalman::KMatrixContextImpl::startDelim_ |
Starting string before first matrix element.
Definition at line 78 of file kmatrix_impl.hpp.
unsigned Kalman::KMatrixContextImpl::width_ |
Width of output field for nice alignment.
Definition at line 81 of file kmatrix_impl.hpp.