All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
paal::utils::array_to_functor< Array > Class Template Reference

Adapts array as function, providing operator()(). More...

#include <functors.hpp>

Public Member Functions

 array_to_functor (const Array &array, int offset=0)
 constructor More...
 
Value operator() (int a) const
 operator More...
 

Public Attributes

decltype(std::declval< const
Array >()[0]) typedef 
Value
 Value type.
 

Detailed Description

template<typename Array>
class paal::utils::array_to_functor< Array >

Adapts array as function, providing operator()().

Template Parameters
Array

Definition at line 326 of file functors.hpp.

Constructor & Destructor Documentation

template<typename Array>
paal::utils::array_to_functor< Array >::array_to_functor ( const Array &  array,
int  offset = 0 
)
inline

constructor

Parameters
array
offset

Definition at line 334 of file functors.hpp.

Member Function Documentation

template<typename Array>
Value paal::utils::array_to_functor< Array >::operator() ( int  a) const
inline

operator

Parameters
a
Returns

Definition at line 347 of file functors.hpp.


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