Public Member Functions | List of all members
ecl::Converter< Output, Input > Class Template Reference

Primary template and general fallback for converter classes. More...

#include <converter.hpp>

Inheritance diagram for ecl::Converter< Output, Input >:
Inheritance graph
[legend]

Public Member Functions

Output operator() (const Input &input)
 
virtual ~Converter ()
 

Detailed Description

template<typename Output, typename Input = void>
class ecl::Converter< Output, Input >

Primary template and general fallback for converter classes.

This is the primary template for all converter classes. It also provides a default fallback for a single type conversion where both input and output types are defined in as template parameters.

See also
Converter<Output,void>

Definition at line 62 of file converter.hpp.

Constructor & Destructor Documentation

◆ ~Converter()

template<typename Output , typename Input = void>
virtual ecl::Converter< Output, Input >::~Converter ( )
inlinevirtual

Definition at line 72 of file converter.hpp.

Member Function Documentation

◆ operator()()

template<typename Output , typename Input >
Output ecl::Converter< Output, Input >::operator() ( const Input &  input)

The default fallback for converting a specific input type to a specific output type. This looks inside the output template argument's class for the required converter.

Parameters
input: the input value to be converted.
Returns
Output : the converted type.

Definition at line 97 of file converter.hpp.


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


ecl_converters
Author(s): Daniel Stonier
autogenerated on Sun Aug 2 2020 03:12:09