|
Tiny Vector Matrix library using Expression Templates | Sourceforge Project Page |
Determines the number of digits regarding the sign of the container. More...
#include <tvmet/Io.h>
Static Public Member Functions | |
static std::streamsize | width (dispatch< true >, const C &e) |
static std::streamsize | width (dispatch< false >, const C &e) |
Private Member Functions | |
IoPrintHelper () | |
IoPrintHelper (const IoPrintHelper &) | |
IoPrintHelper & | operator= (const IoPrintHelper &) |
Static Private Member Functions | |
static std::streamsize | width (const C &e) |
Determines the number of digits regarding the sign of the container.
This class is nesessary due to the complex type and the function min(), which are not defined for this type. So we have to dispatch between pod and complex types to get an information about the extra space for signs.
tvmet::IoPrintHelper< C >::IoPrintHelper | ( | ) | [private] |
tvmet::IoPrintHelper< C >::IoPrintHelper | ( | const IoPrintHelper< C > & | ) | [private] |
IoPrintHelper& tvmet::IoPrintHelper< C >::operator= | ( | const IoPrintHelper< C > & | ) | [private] |
static std::streamsize tvmet::IoPrintHelper< C >::width | ( | dispatch< false > | , |
const C & | e | ||
) | [inline, static] |
References tvmet::min(), and tvmet::IoPrintHelper< C >::width().
static std::streamsize tvmet::IoPrintHelper< C >::width | ( | dispatch< true > | , |
const C & | e | ||
) | [inline, static] |
References tvmet::IoPrintHelper< C >::width().
static std::streamsize tvmet::IoPrintHelper< C >::width | ( | const C & | e | ) | [inline, static, private] |
References tvmet::max().
Referenced by tvmet::Vector< T, Sz >::print_on(), tvmet::Matrix< T, NRows, NCols >::print_on(), and tvmet::IoPrintHelper< C >::width().
Author: |