Pseudo formatter for integral type arrays. More...
#include <formatters.hpp>
Public Member Functions | |
ecl::Array< Type, N > & | operator() (ecl::Array< Type, N > &array) |
virtual | ~ArrayFormatter () |
Pseudo formatter for integral type arrays.
These do nothing but pass the array back for streaming. Do not use this class directly, rather call it via either the Array or Format classes explicitly. This makes the code more readable. e.g.
// fixed array Array<int, 5>::Formatter format_array_1; Format< Array<int,4> > format_array_2; // same thing // dynamic array Array<int>::Formatter float_array_dynamic_formatter_1; Format< Array<int> > format_array_dynamic_formatter_2;
Type | : the value type of the fixed size Array. |
N | : the size of the container to be formatted. |
Definition at line 64 of file array/formatters.hpp.
virtual ecl::formatters::ArrayFormatter< Type, N >::~ArrayFormatter | ( | ) | [inline, virtual] |
Definition at line 67 of file array/formatters.hpp.
ecl::Array<Type,N>& ecl::formatters::ArrayFormatter< Type, N >::operator() | ( | ecl::Array< Type, N > & | array | ) | [inline] |
Pseudo formatter method, simply returns the underlying array which has its own stream operator.
array | : the array to be formatted. |
Definition at line 75 of file array/formatters.hpp.