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

Pseudo formatter for integral type arrays. More...

#include <array_dynamic_mem_check.hpp>

Public Member Functions

ecl::Array< Type, N > & operator() (ecl::Array< Type, N > &array)
virtual ~ArrayFormatter ()

Detailed Description

template<typename Type, size_t N>
class ecl::formatters::ArrayFormatter< Type, N >

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;
Template Parameters
Type: the value type of the fixed size Array.
N: the size of the container to be formatted.
Specialise the formatting for these integral type arrays so that they return formatting possibilities equivalent to their base type.

Definition at line 49 of file array_dynamic_mem_check.hpp.

Constructor & Destructor Documentation

template<typename Type , size_t N>
virtual ecl::formatters::ArrayFormatter< Type, N >::~ArrayFormatter ( )

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

Member Function Documentation

template<typename Type , size_t N>
ecl::Array<Type,N>& ecl::formatters::ArrayFormatter< Type, N >::operator() ( ecl::Array< Type, N > &  array)

Pseudo formatter method, simply returns the underlying array which has its own stream operator.

array: the array to be formatted.
Array<Type,N> : just returns the input array.

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

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

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