Public Member Functions | List of all members
ecl::formatters::ArrayFormatter< double, N > Class Template Reference

Formatter for fixed size double arrays. More...

#include <formatters.hpp>

Inheritance diagram for ecl::formatters::ArrayFormatter< double, N >:
Inheritance graph
[legend]

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< double, N > >
 FloatContainerFormatter (const unsigned int p=2, const int w=-1)
 
FloatContainerFormatteroperator() (const unsigned int p, const int w)
 
FloatContainerFormatteroperator() (const Array< double, N > &c)
 
FloatContainerFormatteroperator() (Array< double, N > &c, const unsigned int p, const int w)
 
FloatContainerFormatterprecision (const unsigned int p)
 Sets the precision format parameter. More...
 
unsigned int precision () const
 Access the current precision used by this formatter. More...
 
FloatContainerFormatterwidth (const int w)
 Sets the width format parameter. More...
 
virtual ~FloatContainerFormatter ()
 

Additional Inherited Members

- Public Types inherited from ecl::formatters::FloatContainerFormatter< Array< double, N > >
typedef Array< double, N >::value_type value_type
 Catches the container element's type. More...
 

Detailed Description

template<size_t N>
class ecl::formatters::ArrayFormatter< double, N >

Formatter for fixed size double arrays.

Allows precision settings for formatting of fixed size double arrays.

Template Parameters
N: the size of the fixed size double array to be formatted.
See also
FloatContainerFormatter.

Definition at line 308 of file array/formatters.hpp.

Constructor & Destructor Documentation

template<size_t N>
ecl::formatters::ArrayFormatter< double, N >::ArrayFormatter ( const int  p = 2,
const int  w = -1 
)
inline

Default constructor.

Optionally accepts a precision setting for the contents of the array.

Parameters
p: the number of decimal places of precision [default : 2].
w: width [default : no width constraint]

Definition at line 319 of file array/formatters.hpp.

template<size_t N>
virtual ecl::formatters::ArrayFormatter< double, N >::~ArrayFormatter ( )
inlinevirtual

Definition at line 321 of file array/formatters.hpp.


The documentation for this class was generated from the following file:


ecl_containers
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:08:31