Partial specialisation of the stencil formatter for float containers. More...
#include <formatters.hpp>
Public Member Functions | |
StencilFormatter (const int p=2, const int w=-1) | |
Default constructor. More... | |
virtual | ~StencilFormatter () |
Public Member Functions inherited from ecl::formatters::FloatContainerFormatter< ecl::Stencil< Container > > | |
FloatContainerFormatter (const unsigned int p=2, const int w=-1) | |
FloatContainerFormatter & | operator() (const ecl::Stencil< Container > &c) |
FloatContainerFormatter & | operator() (const unsigned int p, const int w) |
FloatContainerFormatter & | operator() (ecl::Stencil< Container > &c, 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< ecl::Stencil< Container > > | |
typedef ecl::Stencil< Container > ::value_type | value_type |
Catches the container element's type. More... | |
Partial specialisation of the stencil formatter for float containers.
Allows precision settings for formatting of float stencils.
N | : the size of the fixed size float array to be formatted. |
Definition at line 111 of file stencil/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 124 of file stencil/formatters.hpp.
|
inlinevirtual |
Definition at line 125 of file stencil/formatters.hpp.