Formatter for fixed size float arrays. More...
#include <formatters.hpp>
Public Member Functions | |
ArrayFormatter (const int p=2, const int w=-1) | |
Default constructor. More... | |
virtual | ~ArrayFormatter () |
Public Member Functions inherited from ecl::formatters::FloatContainerFormatter< Array< float, N > > | |
FloatContainerFormatter (const unsigned int p=2, const int w=-1) | |
FloatContainerFormatter & | operator() (Array< float, N > &c, const unsigned int p, const int w) |
FloatContainerFormatter & | operator() (const Array< float, N > &c) |
FloatContainerFormatter & | operator() (const unsigned int p, const int w) |
unsigned int | precision () const |
Access the current precision used by this formatter. More... | |
FloatContainerFormatter & | precision (const unsigned int p) |
Sets the precision format parameter. More... | |
FloatContainerFormatter & | width (const int w) |
Sets the width format parameter. More... | |
virtual | ~FloatContainerFormatter () |
Additional Inherited Members | |
Public Types inherited from ecl::formatters::FloatContainerFormatter< Array< float, N > > | |
typedef Array< float, N > ::value_type | value_type |
Catches the container element's type. More... | |
Formatter for fixed size float arrays.
Allows precision settings for formatting of fixed size float arrays.
N | : the size of the fixed size float array to be formatted. |
Definition at line 292 of file array/formatters.hpp.
|
inline |
Default constructor.
Optionally accepts a precision setting for the contents of the array.
p | : the number of decimal places of precision [default : 2]. |
w | : width [default : no width constraint] |
Definition at line 303 of file array/formatters.hpp.
|
inlinevirtual |
Definition at line 305 of file array/formatters.hpp.