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

Pseudo formatter for integral type arrays. More...

#include <formatters.hpp>

Public Member Functions

ecl::PushAndPop< Type, N > & operator() (const ecl::PushAndPop< Type, N > &container)
virtual ~PushAndPopFormatter ()

Detailed Description

template<typename Type, size_t N>
class ecl::formatters::PushAndPopFormatter< 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
Format< PushAndPop<int,4> > format_2; // same thing
// dynamic array
PushAndPop<int>::Formatter float_dynamic_formatter_1;
Format< PushAndPop<int> > format_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 66 of file push_and_pop/formatters.hpp.

Constructor & Destructor Documentation

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

Definition at line 69 of file push_and_pop/formatters.hpp.

Member Function Documentation

template<typename Type , size_t N>
ecl::PushAndPop<Type,N>& ecl::formatters::PushAndPopFormatter< Type, N >::operator() ( const ecl::PushAndPop< Type, N > &  container)

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

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

Definition at line 77 of file push_and_pop/formatters.hpp.

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

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