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. More... | |
Public Attributes | |
std::string | elemDelim_ |
Delimiter string between matrix elements. More... | |
std::string | endDelim_ |
Ending string after last matrix element. More... | |
unsigned | precision_ |
Number of significant digits to output. More... | |
std::string | rowDelim_ |
Delimiter string at the end of each row. More... | |
bool | skipElemDelim_ |
Must we skip a word between elements ? More... | |
bool | skipEndDelim_ |
Must we skip a word at end of vector ? More... | |
bool | skipRowDelim_ |
Must we skip a word at the end of the row ? More... | |
bool | skipStartDelim_ |
Must we skip a word at start of vector ? More... | |
std::string | startDelim_ |
Starting string before first matrix element. More... | |
unsigned | width_ |
Width of output field for nice alignment. More... | |
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.
|
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.
unsigned Kalman::KMatrixContextImpl::precision_ |
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.
bool Kalman::KMatrixContextImpl::skipElemDelim_ |
Must we skip a word between elements ?
Definition at line 82 of file kmatrix_impl.hpp.
bool Kalman::KMatrixContextImpl::skipEndDelim_ |
Must we skip a word at end of vector ?
Definition at line 85 of file kmatrix_impl.hpp.
bool Kalman::KMatrixContextImpl::skipRowDelim_ |
Must we skip a word at the end of the row ?
Definition at line 83 of file kmatrix_impl.hpp.
bool Kalman::KMatrixContextImpl::skipStartDelim_ |
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.